summaryrefslogtreecommitdiffstats
path: root/doc/html/scrollview-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/scrollview-example.html')
-rw-r--r--doc/html/scrollview-example.html142
1 files changed, 71 insertions, 71 deletions
diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html
index f20982e9..33b5df43 100644
--- a/doc/html/scrollview-example.html
+++ b/doc/html/scrollview-example.html
@@ -49,8 +49,8 @@ optimized for very large contents.
#include &lt;<a href="qscrollview-h.html">ntqscrollview.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
+#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
+#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
#include &lt;<a href="qpushbutton-h.html">ntqpushbutton.h</a>&gt;
#include &lt;<a href="qpainter-h.html">ntqpainter.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
@@ -58,7 +58,7 @@ optimized for very large contents.
#include &lt;<a href="qlayout-h.html">ntqlayout.h</a>&gt;
#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
#include &lt;<a href="qmultilineedit-h.html">ntqmultilineedit.h</a>&gt;
-#include &lt;<a href="qsizegrip-h.html">ntqsizegrip.h</a>&gt;
+#include &lt;<a href="tqsizegrip-h.html">tqsizegrip.h</a>&gt;
#include &lt;stdlib.h&gt;
@@ -241,30 +241,30 @@ public:
ScrollViewExample(int technique, TQWidget* parent=0, const char* name=0) :
<a href="tqwidget.html">TQWidget</a>(parent,name)
{
- <a href="ntqmenubar.html">TQMenuBar</a>* menubar = new <a href="ntqmenubar.html">TQMenuBar</a>(this);
+ <a href="tqmenubar.html">TQMenuBar</a>* menubar = new <a href="tqmenubar.html">TQMenuBar</a>(this);
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( menubar );
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( file );
-<a name="x634"></a> menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+<a name="x634"></a> menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Quit", tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
- vp_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ vp_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( vp_options );
-<a name="x644"></a> vp_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;ScrollView", vp_options );
-<a name="x642"></a> connect( vp_options, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
+<a name="x644"></a> vp_options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;ScrollView", vp_options );
+<a name="x642"></a> connect( vp_options, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)),
this, TQ_SLOT(doVPMenuItem(int)) );
- vauto_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Vertical Auto" );
- vaoff_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Vertical AlwaysOff" );
- vaon_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Vertical AlwaysOn" );
-<a name="x635"></a> vp_options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- hauto_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Horizontal Auto" );
- haoff_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Horizontal AlwaysOff" );
- haon_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Horizontal AlwaysOn" );
- vp_options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- corn_id = vp_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "cornerWidget" );
+ vauto_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Vertical Auto" );
+ vaoff_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Vertical AlwaysOff" );
+ vaon_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Vertical AlwaysOn" );
+<a name="x635"></a> vp_options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ hauto_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Horizontal Auto" );
+ haoff_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Horizontal AlwaysOff" );
+ haon_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Horizontal AlwaysOn" );
+ vp_options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ corn_id = vp_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "cornerWidget" );
if (technique == 1) {
vp = new <a href="ntqscrollview.html">TQScrollView</a>(this);
@@ -287,55 +287,55 @@ public:
vp-&gt;<a href="ntqscrollview.html#viewport">viewport</a>()-&gt;setBackgroundMode(NoBackground);
}
- f_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ f_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( f_options );
- f_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
- menubar-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "F&amp;rame", f_options );
- connect( f_options, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ menubar-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "F&amp;rame", f_options );
+ connect( f_options, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)),
this, TQ_SLOT(doFMenuItem(int)) );
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "No Frame", style_id );
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Box", style_id|TQFrame::Box );
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Panel", style_id|TQFrame::Panel );
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "WinPanel", style_id|TQFrame::WinPanel );
- f_options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Plain", style_id|TQFrame::Plain );
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Raised", style_id|TQFrame::Raised );
-<a name="x633"></a> f_laststyle = f_options-&gt;<a href="ntqmenudata.html#indexOf">indexOf</a>(
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Sunken", style_id|TQFrame::Sunken ));
- f_options-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- lw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "No Frame", style_id );
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Box", style_id|TQFrame::Box );
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Panel", style_id|TQFrame::Panel );
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "WinPanel", style_id|TQFrame::WinPanel );
+ f_options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Plain", style_id|TQFrame::Plain );
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Raised", style_id|TQFrame::Raised );
+<a name="x633"></a> f_laststyle = f_options-&gt;<a href="tqmenudata.html#indexOf">indexOf</a>(
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Sunken", style_id|TQFrame::Sunken ));
+ f_options-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ lw_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( lw_options );
- lw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ lw_options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int lw = 1; lw &lt;= max_lw; lw++) {
<a href="tqstring.html">TQString</a> str;
str.<a href="tqstring.html#sprintf">sprintf</a>("%d Pixels", lw);
- lw_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( str, lw_id | lw );
+ lw_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( str, lw_id | lw );
}
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Line Width", lw_options );
- connect( lw_options, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Line Width", lw_options );
+ connect( lw_options, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)),
this, TQ_SLOT(doFMenuItem(int)) );
- mlw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ mlw_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( mlw_options );
- mlw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ mlw_options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int mlw = 0; mlw &lt;= max_mlw; mlw++) {
<a href="tqstring.html">TQString</a> str;
str.<a href="tqstring.html#sprintf">sprintf</a>("%d Pixels", mlw);
- mlw_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( str, mlw_id | mlw );
+ mlw_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( str, mlw_id | mlw );
}
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Midline Width", mlw_options );
- connect( mlw_options, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Midline Width", mlw_options );
+ connect( mlw_options, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)),
this, TQ_SLOT(doFMenuItem(int)) );
- mw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ mw_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
<a href="ntqapplication.html#TQ_CHECK_PTR">TQ_CHECK_PTR</a>( mw_options );
- mw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ mw_options-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int mw = 0; mw &lt;= max_mw; mw++) {
<a href="tqstring.html">TQString</a> str;
str.<a href="tqstring.html#sprintf">sprintf</a>("%d Pixels", mw);
- mw_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( str, mw_id | mw );
+ mw_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( str, mw_id | mw );
}
- f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Margin Width", mw_options );
- connect( mw_options, TQ_SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Margin Width", mw_options );
+ connect( mw_options, TQ_SIGNAL(<a href="tqpopupmenu.html#activated">activated</a>(int)),
this, TQ_SLOT(doFMenuItem(int)) );
setVPMenuItems();
@@ -343,11 +343,11 @@ public:
<a href="qvboxlayout.html">TQVBoxLayout</a>* vbox = new <a href="qvboxlayout.html">TQVBoxLayout</a>(this);
<a name="x631"></a> vbox-&gt;<a href="ntqlayout.html#setMenuBar">setMenuBar</a>(menubar);
-<a name="x632"></a> menubar-&gt;<a href="ntqmenubar.html#setSeparator">setSeparator</a>(TQMenuBar::InWindowsStyle);
+<a name="x632"></a> menubar-&gt;<a href="tqmenubar.html#setSeparator">setSeparator</a>(TQMenuBar::InWindowsStyle);
vbox-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(vp);
<a name="x630"></a> vbox-&gt;<a href="ntqlayout.html#activate">activate</a>();
- corner = new <a href="ntqsizegrip.html">TQSizeGrip</a>(this);
+ corner = new <a href="tqsizegrip.html">TQSizeGrip</a>(this);
<a name="x658"></a> corner-&gt;<a href="tqwidget.html#hide">hide</a>();
}
@@ -378,16 +378,16 @@ private slots:
void setVPMenuItems()
{
<a name="x654"></a> TQScrollView::ScrollBarMode vm = vp-&gt;<a href="ntqscrollview.html#vScrollBarMode">vScrollBarMode</a>();
-<a name="x636"></a> vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( vauto_id, vm == TQScrollView::Auto );
- vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( vaoff_id, vm == TQScrollView::AlwaysOff );
- vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( vaon_id, vm == TQScrollView::AlwaysOn );
+<a name="x636"></a> vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( vauto_id, vm == TQScrollView::Auto );
+ vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( vaoff_id, vm == TQScrollView::AlwaysOff );
+ vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( vaon_id, vm == TQScrollView::AlwaysOn );
<a name="x649"></a> TQScrollView::ScrollBarMode hm = vp-&gt;<a href="ntqscrollview.html#hScrollBarMode">hScrollBarMode</a>();
- vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( hauto_id, hm == TQScrollView::Auto );
- vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( haoff_id, hm == TQScrollView::AlwaysOff );
- vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( haon_id, hm == TQScrollView::AlwaysOn );
+ vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( hauto_id, hm == TQScrollView::Auto );
+ vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( haoff_id, hm == TQScrollView::AlwaysOff );
+ vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( haon_id, hm == TQScrollView::AlwaysOn );
- vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( corn_id, !!vp-&gt;<a href="ntqscrollview.html#cornerWidget">cornerWidget</a>() );
+ vp_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( corn_id, !!vp-&gt;<a href="ntqscrollview.html#cornerWidget">cornerWidget</a>() );
}
void doFMenuItem(int id)
@@ -421,36 +421,36 @@ private slots:
{
int sty = vp-&gt;<a href="ntqframe.html#frameStyle">frameStyle</a>();
- f_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( style_id, !sty );
+ f_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( style_id, !sty );
for (int i=1; i &lt;= f_laststyle; i++) {
-<a name="x643"></a> int id = f_options-&gt;<a href="ntqpopupmenu.html#idAt">idAt</a>(i);
+<a name="x643"></a> int id = f_options-&gt;<a href="tqpopupmenu.html#idAt">idAt</a>(i);
if (id &amp; TQFrame::MShape)
- f_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( id,
+ f_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( id,
((id&amp;TQFrame::MShape) == (sty&amp;TQFrame::MShape)) );
else
- f_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( id,
+ f_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( id,
((id&amp;TQFrame::MShadow) == (sty&amp;TQFrame::MShadow)) );
}
for (int lw=1; lw&lt;=max_lw; lw++)
-<a name="x623"></a> lw_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( lw_id|lw, vp-&gt;<a href="ntqframe.html#lineWidth">lineWidth</a>() == lw );
+<a name="x623"></a> lw_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( lw_id|lw, vp-&gt;<a href="ntqframe.html#lineWidth">lineWidth</a>() == lw );
for (int mlw=0; mlw&lt;=max_mlw; mlw++)
-<a name="x625"></a> mlw_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( mlw_id|mlw, vp-&gt;<a href="ntqframe.html#midLineWidth">midLineWidth</a>() == mlw );
+<a name="x625"></a> mlw_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( mlw_id|mlw, vp-&gt;<a href="ntqframe.html#midLineWidth">midLineWidth</a>() == mlw );
for (int mw=0; mw&lt;=max_mw; mw++)
-<a name="x624"></a> mw_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( mw_id|mw, vp-&gt;<a href="ntqframe.html#margin">margin</a>() == mw );
+<a name="x624"></a> mw_options-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( mw_id|mw, vp-&gt;<a href="ntqframe.html#margin">margin</a>() == mw );
}
private:
<a href="ntqscrollview.html">TQScrollView</a>* vp;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* vp_options;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* f_options;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* lw_options;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* mlw_options;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* mw_options;
- <a href="ntqsizegrip.html">TQSizeGrip</a>* corner;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* vp_options;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* f_options;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* lw_options;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* mlw_options;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* mw_options;
+ <a href="tqsizegrip.html">TQSizeGrip</a>* corner;
int vauto_id, vaoff_id, vaon_id,
hauto_id, haoff_id, haon_id,