summaryrefslogtreecommitdiffstats
path: root/doc/html/scrollview-example.html
diff options
context:
space:
mode:
authorTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
committerTimothy Pearson <kb9vqf@pearsoncomputing.net>2012-01-26 23:32:43 -0600
commitea318d1431c89e647598c510c4245c6571aa5f46 (patch)
tree996d29b80c30d453dda86d1a23162d441628f169 /doc/html/scrollview-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/scrollview-example.html')
-rw-r--r--doc/html/scrollview-example.html344
1 files changed, 172 insertions, 172 deletions
diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html
index 31f30e80a..5f5ddd7b5 100644
--- a/doc/html/scrollview-example.html
+++ b/doc/html/scrollview-example.html
@@ -47,18 +47,18 @@ optimized for very large contents.
**
*****************************************************************************/
-#include &lt;<a href="qscrollview-h.html">qscrollview.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">qmenubar.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">qpopupmenu.h</a>&gt;
-#include &lt;<a href="qpushbutton-h.html">qpushbutton.h</a>&gt;
-#include &lt;<a href="qpainter-h.html">qpainter.h</a>&gt;
-#include &lt;<a href="qpixmap-h.html">qpixmap.h</a>&gt;
-#include &lt;<a href="qmessagebox-h.html">qmessagebox.h</a>&gt;
-#include &lt;<a href="qlayout-h.html">qlayout.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qmultilineedit-h.html">qmultilineedit.h</a>&gt;
-#include &lt;<a href="qsizegrip-h.html">qsizegrip.h</a>&gt;
+#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="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;
+#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
+#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;stdlib.h&gt;
@@ -71,28 +71,28 @@ static const int max_mlw = 5;
static const int max_mw = 10;
-class BigShrinker : public <a href="qframe.html">TQFrame</a> {
+class BigShrinker : public <a href="ntqframe.html">TQFrame</a> {
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
BigShrinker(TQWidget* parent) :
- <a href="qframe.html">TQFrame</a>(parent)
+ <a href="ntqframe.html">TQFrame</a>(parent)
{
setFrameStyle(TQFrame::Box|TQFrame::Sunken);
int h=35;
int b=0;
for (int y=0; y&lt;2000-h; y+=h+10) {
if (y == 0) {
- <a href="qbutton.html">TQButton</a>* q=new <a href="qpushbutton.html">TQPushButton</a>("Quit", this);
- connect(q, SIGNAL(<a href="qbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
+ <a href="ntqbutton.html">TQButton</a>* q=new <a href="ntqpushbutton.html">TQPushButton</a>("Quit", this);
+ connect(q, SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
} else {
- <a href="qstring.html">TQString</a> str;
+ <a href="ntqstring.html">TQString</a> str;
if ( b &gt; 0 ) {
-<a name="x656"></a> str.<a href="qstring.html#sprintf">sprintf</a>("Button %d", b++);
+<a name="x656"></a> str.<a href="ntqstring.html#sprintf">sprintf</a>("Button %d", b++);
} else {
str = "I'm shrinking!";
++b;
}
- (new <a href="qpushbutton.html">TQPushButton</a>(str, this))-&gt;move(y/2,y);
+ (new <a href="ntqpushbutton.html">TQPushButton</a>(str, this))-&gt;move(y/2,y);
}
}
resize(1000,2000);
@@ -118,14 +118,14 @@ signals:
void clicked(int,int);
};
-class BigMatrix : public <a href="qscrollview.html">TQScrollView</a> {
- <a href="qmultilineedit.html">TQMultiLineEdit</a> *dragging;
+class BigMatrix : public <a href="ntqscrollview.html">TQScrollView</a> {
+ <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *dragging;
public:
BigMatrix(TQWidget* parent) :
- <a href="qscrollview.html">TQScrollView</a>(parent,"matrix", WStaticContents),
+ <a href="ntqscrollview.html">TQScrollView</a>(parent,"matrix", WStaticContents),
bg("bg.ppm")
{
-<a name="x640"></a> bg.<a href="qpixmap.html#load">load</a>("bg.ppm");
+<a name="x640"></a> bg.<a href="ntqpixmap.html#load">load</a>("bg.ppm");
resizeContents(400000,300000);
dragging = 0;
@@ -135,9 +135,9 @@ public:
{
int x, y;
viewportToContents( e-&gt;x(), e-&gt;y(), x, y );
- dragging = new <a href="qmultilineedit.html">TQMultiLineEdit</a>(viewport(),"Another");
-<a name="x657"></a> dragging-&gt;<a href="qtextedit.html#setText">setText</a>("Thanks!");
-<a name="x650"></a> dragging-&gt;<a href="qwidget.html#resize">resize</a>(100,100);
+ dragging = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>(viewport(),"Another");
+<a name="x657"></a> dragging-&gt;<a href="ntqtextedit.html#setText">setText</a>("Thanks!");
+<a name="x650"></a> dragging-&gt;<a href="ntqwidget.html#resize">resize</a>(100,100);
addChild(dragging, x, y);
showChild(dragging);
}
@@ -156,10 +156,10 @@ public:
int cy = childY(dragging);
int w = mx - cx + 1;
int h = my - cy + 1;
- <a href="qstring.html">TQString</a> msg;
- msg.<a href="qstring.html#sprintf">sprintf</a>("at (%d,%d) %d by %d",cx,cy,w,h);
- dragging-&gt;<a href="qtextedit.html#setText">setText</a>(msg);
- dragging-&gt;<a href="qwidget.html#resize">resize</a>(w,h);
+ <a href="ntqstring.html">TQString</a> msg;
+ msg.<a href="ntqstring.html#sprintf">sprintf</a>("at (%d,%d) %d by %d",cx,cy,w,h);
+ dragging-&gt;<a href="ntqtextedit.html#setText">setText</a>(msg);
+ dragging-&gt;<a href="ntqwidget.html#resize">resize</a>(w,h);
}
}
@@ -167,11 +167,11 @@ protected:
void drawContents(TQPainter* p, int cx, int cy, int cw, int ch)
{
// The Background
-<a name="x639"></a> if ( !bg.<a href="qpixmap.html#isNull">isNull</a>() ) {
-<a name="x638"></a> int rowheight=bg.<a href="qpixmap.html#height">height</a>();
+<a name="x639"></a> if ( !bg.<a href="ntqpixmap.html#isNull">isNull</a>() ) {
+<a name="x638"></a> int rowheight=bg.<a href="ntqpixmap.html#height">height</a>();
int toprow=cy/rowheight;
int bottomrow=(cy+ch+rowheight-1)/rowheight;
-<a name="x641"></a> int colwidth=bg.<a href="qpixmap.html#width">width</a>();
+<a name="x641"></a> int colwidth=bg.<a href="ntqpixmap.html#width">width</a>();
int leftcol=cx/colwidth;
int rightcol=(cx+cw+colwidth-1)/colwidth;
for (int r=toprow; r&lt;=bottomrow; r++) {
@@ -187,20 +187,20 @@ protected:
// The Numbers
{
- <a href="qfontmetrics.html">TQFontMetrics</a> fm=p-&gt;fontMetrics();
-<a name="x620"></a> int rowheight=fm.<a href="qfontmetrics.html#lineSpacing">lineSpacing</a>();
+ <a href="ntqfontmetrics.html">TQFontMetrics</a> fm=p-&gt;fontMetrics();
+<a name="x620"></a> int rowheight=fm.<a href="ntqfontmetrics.html#lineSpacing">lineSpacing</a>();
int toprow=cy/rowheight;
int bottomrow=(cy+ch+rowheight-1)/rowheight;
-<a name="x621"></a> int colwidth=fm.<a href="qfontmetrics.html#width">width</a>("00000,000000 ")+3;
+<a name="x621"></a> int colwidth=fm.<a href="ntqfontmetrics.html#width">width</a>("00000,000000 ")+3;
int leftcol=cx/colwidth;
int rightcol=(cx+cw+colwidth-1)/colwidth;
- <a href="qstring.html">TQString</a> str;
+ <a href="ntqstring.html">TQString</a> str;
for (int r=toprow; r&lt;=bottomrow; r++) {
int py=r*rowheight;
for (int c=leftcol; c&lt;=rightcol; c++) {
int px=c*colwidth;
- str.<a href="qstring.html#sprintf">sprintf</a>("%d,%d",c,r);
-<a name="x619"></a> p-&gt;drawText(px+3, py+fm.<a href="qfontmetrics.html#ascent">ascent</a>(), str);
+ str.<a href="ntqstring.html#sprintf">sprintf</a>("%d,%d",c,r);
+<a name="x619"></a> p-&gt;drawText(px+3, py+fm.<a href="ntqfontmetrics.html#ascent">ascent</a>(), str);
}
}
@@ -208,8 +208,8 @@ protected:
if (leftcol&lt;10 &amp;&amp; toprow&lt;5) {
p-&gt;setFont(TQFont("Charter",30));
p-&gt;setPen(red);
- <a href="qstring.html">TQString</a> text;
- text.<a href="qstring.html#sprintf">sprintf</a>("HINT: Look at %d,%d",215000/colwidth,115000/rowheight);
+ <a href="ntqstring.html">TQString</a> text;
+ text.<a href="ntqstring.html#sprintf">sprintf</a>("HINT: Look at %d,%d",215000/colwidth,115000/rowheight);
p-&gt;drawText(100,50,text);
}
}
@@ -231,144 +231,144 @@ protected:
}
private:
- <a href="qpixmap.html">TQPixmap</a> bg;
+ <a href="ntqpixmap.html">TQPixmap</a> bg;
};
-class ScrollViewExample : public <a href="qwidget.html">TQWidget</a> {
+class ScrollViewExample : public <a href="ntqwidget.html">TQWidget</a> {
Q_OBJECT
public:
ScrollViewExample(int technique, TQWidget* parent=0, const char* name=0) :
- <a href="qwidget.html">TQWidget</a>(parent,name)
+ <a href="ntqwidget.html">TQWidget</a>(parent,name)
{
- <a href="qmenubar.html">TQMenuBar</a>* menubar = new <a href="qmenubar.html">TQMenuBar</a>(this);
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( menubar );
-
- <a href="qpopupmenu.html">TQPopupMenu</a>* file = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( file );
-<a name="x634"></a> menubar-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;File", file );
- file-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Quit", qApp, SLOT(<a href="qapplication.html#quit">quit</a>()) );
-
- vp_options = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( vp_options );
-<a name="x644"></a> vp_options-&gt;<a href="qpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
- menubar-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "&amp;ScrollView", vp_options );
-<a name="x642"></a> connect( vp_options, SIGNAL(<a href="qpopupmenu.html#activated">activated</a>(int)),
+ <a href="ntqmenubar.html">TQMenuBar</a>* menubar = new <a href="ntqmenubar.html">TQMenuBar</a>(this);
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( menubar );
+
+ <a href="ntqpopupmenu.html">TQPopupMenu</a>* file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_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", qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()) );
+
+ vp_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_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, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doVPMenuItem(int)) );
- vauto_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Vertical Auto" );
- vaoff_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Vertical AlwaysOff" );
- vaon_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Vertical AlwaysOn" );
-<a name="x635"></a> vp_options-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- hauto_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Horizontal Auto" );
- haoff_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Horizontal AlwaysOff" );
- haon_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Horizontal AlwaysOn" );
- vp_options-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- corn_id = vp_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "cornerWidget" );
+ 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" );
if (technique == 1) {
- vp = new <a href="qscrollview.html">TQScrollView</a>(this);
-<a name="x655"></a> BigShrinker *bs = new BigShrinker(0);//(vp-&gt;<a href="qscrollview.html#viewport">viewport</a>());
-<a name="x645"></a> vp-&gt;<a href="qscrollview.html#addChild">addChild</a>(bs);
-<a name="x659"></a> bs-&gt;<a href="qwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE);
- TQObject::<a href="qobject.html#connect">connect</a>(bs, SIGNAL(clicked(int,int)),
-<a name="x646"></a> vp, SLOT(<a href="qscrollview.html#center">center</a>(int,int)));
+ vp = new <a href="ntqscrollview.html">TQScrollView</a>(this);
+<a name="x655"></a> BigShrinker *bs = new BigShrinker(0);//(vp-&gt;<a href="ntqscrollview.html#viewport">viewport</a>());
+<a name="x645"></a> vp-&gt;<a href="ntqscrollview.html#addChild">addChild</a>(bs);
+<a name="x659"></a> bs-&gt;<a href="ntqwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE);
+ TQObject::<a href="ntqobject.html#connect">connect</a>(bs, SIGNAL(clicked(int,int)),
+<a name="x646"></a> vp, SLOT(<a href="ntqscrollview.html#center">center</a>(int,int)));
} else {
vp = new BigMatrix(this);
if ( technique == 3 )
-<a name="x648"></a> vp-&gt;<a href="qscrollview.html#enableClipper">enableClipper</a>(TRUE);
+<a name="x648"></a> vp-&gt;<a href="ntqscrollview.html#enableClipper">enableClipper</a>(TRUE);
srand(1);
for (int i=0; i&lt;30; i++) {
- <a href="qmultilineedit.html">TQMultiLineEdit</a> *l = new <a href="qmultilineedit.html">TQMultiLineEdit</a>(vp-&gt;<a href="qscrollview.html#viewport">viewport</a>(),"First");
- l-&gt;<a href="qtextedit.html#setText">setText</a>("Drag out more of these.");
- l-&gt;<a href="qwidget.html#resize">resize</a>(100,100);
- vp-&gt;<a href="qscrollview.html#addChild">addChild</a>(l, rand()%800, rand()%10000);
+ <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *l = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>(vp-&gt;<a href="ntqscrollview.html#viewport">viewport</a>(),"First");
+ l-&gt;<a href="ntqtextedit.html#setText">setText</a>("Drag out more of these.");
+ l-&gt;<a href="ntqwidget.html#resize">resize</a>(100,100);
+ vp-&gt;<a href="ntqscrollview.html#addChild">addChild</a>(l, rand()%800, rand()%10000);
}
- vp-&gt;<a href="qscrollview.html#viewport">viewport</a>()-&gt;setBackgroundMode(NoBackground);
+ vp-&gt;<a href="ntqscrollview.html#viewport">viewport</a>()-&gt;setBackgroundMode(NoBackground);
}
- f_options = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( f_options );
- f_options-&gt;<a href="qpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
- menubar-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "F&amp;rame", f_options );
- connect( f_options, SIGNAL(<a href="qpopupmenu.html#activated">activated</a>(int)),
+ f_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_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, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doFMenuItem(int)) );
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "No Frame", style_id );
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Box", style_id|TQFrame::Box );
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Panel", style_id|TQFrame::Panel );
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "WinPanel", style_id|TQFrame::WinPanel );
- f_options-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Plain", style_id|TQFrame::Plain );
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Raised", style_id|TQFrame::Raised );
-<a name="x633"></a> f_laststyle = f_options-&gt;<a href="qmenudata.html#indexOf">indexOf</a>(
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Sunken", style_id|TQFrame::Sunken ));
- f_options-&gt;<a href="qmenudata.html#insertSeparator">insertSeparator</a>();
- lw_options = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( lw_options );
- lw_options-&gt;<a href="qpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ 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 );
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( lw_options );
+ lw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int lw = 1; lw &lt;= max_lw; lw++) {
- <a href="qstring.html">TQString</a> str;
- str.<a href="qstring.html#sprintf">sprintf</a>("%d Pixels", lw);
- lw_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( str, lw_id | lw );
+ <a href="ntqstring.html">TQString</a> str;
+ str.<a href="ntqstring.html#sprintf">sprintf</a>("%d Pixels", lw);
+ lw_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( str, lw_id | lw );
}
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Line Width", lw_options );
- connect( lw_options, SIGNAL(<a href="qpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Line Width", lw_options );
+ connect( lw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doFMenuItem(int)) );
- mlw_options = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( mlw_options );
- mlw_options-&gt;<a href="qpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ mlw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( mlw_options );
+ mlw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int mlw = 0; mlw &lt;= max_mlw; mlw++) {
- <a href="qstring.html">TQString</a> str;
- str.<a href="qstring.html#sprintf">sprintf</a>("%d Pixels", mlw);
- mlw_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( str, mlw_id | mlw );
+ <a href="ntqstring.html">TQString</a> str;
+ str.<a href="ntqstring.html#sprintf">sprintf</a>("%d Pixels", mlw);
+ mlw_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( str, mlw_id | mlw );
}
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Midline Width", mlw_options );
- connect( mlw_options, SIGNAL(<a href="qpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Midline Width", mlw_options );
+ connect( mlw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doFMenuItem(int)) );
- mw_options = new <a href="qpopupmenu.html">TQPopupMenu</a>( menubar );
- <a href="qapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( mw_options );
- mw_options-&gt;<a href="qpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+ mw_options = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( menubar );
+ <a href="ntqapplication.html#Q_CHECK_PTR">Q_CHECK_PTR</a>( mw_options );
+ mw_options-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
for (int mw = 0; mw &lt;= max_mw; mw++) {
- <a href="qstring.html">TQString</a> str;
- str.<a href="qstring.html#sprintf">sprintf</a>("%d Pixels", mw);
- mw_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( str, mw_id | mw );
+ <a href="ntqstring.html">TQString</a> str;
+ str.<a href="ntqstring.html#sprintf">sprintf</a>("%d Pixels", mw);
+ mw_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( str, mw_id | mw );
}
- f_options-&gt;<a href="qmenudata.html#insertItem">insertItem</a>( "Margin Width", mw_options );
- connect( mw_options, SIGNAL(<a href="qpopupmenu.html#activated">activated</a>(int)),
+ f_options-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Margin Width", mw_options );
+ connect( mw_options, SIGNAL(<a href="ntqpopupmenu.html#activated">activated</a>(int)),
this, SLOT(doFMenuItem(int)) );
setVPMenuItems();
setFMenuItems();
<a href="qvboxlayout.html">TQVBoxLayout</a>* vbox = new <a href="qvboxlayout.html">TQVBoxLayout</a>(this);
-<a name="x631"></a> vbox-&gt;<a href="qlayout.html#setMenuBar">setMenuBar</a>(menubar);
-<a name="x632"></a> menubar-&gt;<a href="qmenubar.html#setSeparator">setSeparator</a>(TQMenuBar::InWindowsStyle);
+<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);
vbox-&gt;<a href="qboxlayout.html#addWidget">addWidget</a>(vp);
-<a name="x630"></a> vbox-&gt;<a href="qlayout.html#activate">activate</a>();
+<a name="x630"></a> vbox-&gt;<a href="ntqlayout.html#activate">activate</a>();
- corner = new <a href="qsizegrip.html">TQSizeGrip</a>(this);
-<a name="x658"></a> corner-&gt;<a href="qwidget.html#hide">hide</a>();
+ corner = new <a href="ntqsizegrip.html">TQSizeGrip</a>(this);
+<a name="x658"></a> corner-&gt;<a href="ntqwidget.html#hide">hide</a>();
}
private slots:
void doVPMenuItem(int id)
{
if (id == vauto_id ) {
-<a name="x653"></a> vp-&gt;<a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::Auto);
+<a name="x653"></a> vp-&gt;<a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::Auto);
} else if (id == vaoff_id) {
- vp-&gt;<a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOff);
+ vp-&gt;<a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOff);
} else if (id == vaon_id) {
- vp-&gt;<a href="qscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOn);
+ vp-&gt;<a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOn);
} else if (id == hauto_id) {
-<a name="x652"></a> vp-&gt;<a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::Auto);
+<a name="x652"></a> vp-&gt;<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::Auto);
} else if (id == haoff_id) {
- vp-&gt;<a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOff);
+ vp-&gt;<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOff);
} else if (id == haon_id) {
- vp-&gt;<a href="qscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOn);
+ vp-&gt;<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOn);
} else if (id == corn_id) {
-<a name="x647"></a> bool corn = !vp-&gt;<a href="qscrollview.html#cornerWidget">cornerWidget</a>();
-<a name="x651"></a> vp-&gt;<a href="qscrollview.html#setCornerWidget">setCornerWidget</a>(corn ? corner : 0);
+<a name="x647"></a> bool corn = !vp-&gt;<a href="ntqscrollview.html#cornerWidget">cornerWidget</a>();
+<a name="x651"></a> vp-&gt;<a href="ntqscrollview.html#setCornerWidget">setCornerWidget</a>(corn ? corner : 0);
} else {
return; // Not for us to process.
}
@@ -377,17 +377,17 @@ private slots:
void setVPMenuItems()
{
-<a name="x654"></a> TQScrollView::ScrollBarMode vm = vp-&gt;<a href="qscrollview.html#vScrollBarMode">vScrollBarMode</a>();
-<a name="x636"></a> vp_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( vauto_id, vm == TQScrollView::Auto );
- vp_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( vaoff_id, vm == TQScrollView::AlwaysOff );
- vp_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( vaon_id, vm == TQScrollView::AlwaysOn );
+<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="x649"></a> TQScrollView::ScrollBarMode hm = vp-&gt;<a href="qscrollview.html#hScrollBarMode">hScrollBarMode</a>();
- vp_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( hauto_id, hm == TQScrollView::Auto );
- vp_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( haoff_id, hm == TQScrollView::AlwaysOff );
- vp_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( haon_id, hm == 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="qmenudata.html#setItemChecked">setItemChecked</a>( corn_id, !!vp-&gt;<a href="qscrollview.html#cornerWidget">cornerWidget</a>() );
+ vp_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( corn_id, !!vp-&gt;<a href="ntqscrollview.html#cornerWidget">cornerWidget</a>() );
}
void doFMenuItem(int id)
@@ -398,59 +398,59 @@ private slots:
if (id == style_id) {
sty = 0;
} else if (id &amp; TQFrame::MShape) {
-<a name="x622"></a> sty = vp-&gt;<a href="qframe.html#frameStyle">frameStyle</a>()&amp;TQFrame::MShadow;
- sty = (sty ? sty : <a href="qframe.html">TQFrame</a>::Plain) | (id&amp;TQFrame::MShape);
+<a name="x622"></a> sty = vp-&gt;<a href="ntqframe.html#frameStyle">frameStyle</a>()&amp;TQFrame::MShadow;
+ sty = (sty ? sty : <a href="ntqframe.html">TQFrame</a>::Plain) | (id&amp;TQFrame::MShape);
} else {
- sty = vp-&gt;<a href="qframe.html#frameStyle">frameStyle</a>()&amp;TQFrame::MShape;
- sty = (sty ? sty : <a href="qframe.html">TQFrame</a>::Box) | (id&amp;TQFrame::MShadow);
+ sty = vp-&gt;<a href="ntqframe.html#frameStyle">frameStyle</a>()&amp;TQFrame::MShape;
+ sty = (sty ? sty : <a href="ntqframe.html">TQFrame</a>::Box) | (id&amp;TQFrame::MShadow);
}
-<a name="x626"></a> vp-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>(sty);
+<a name="x626"></a> vp-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>(sty);
} else if (id &amp; lw_id) {
-<a name="x627"></a> vp-&gt;<a href="qframe.html#setLineWidth">setLineWidth</a>(id&amp;~lw_id);
+<a name="x627"></a> vp-&gt;<a href="ntqframe.html#setLineWidth">setLineWidth</a>(id&amp;~lw_id);
} else if (id &amp; mlw_id) {
-<a name="x629"></a> vp-&gt;<a href="qframe.html#setMidLineWidth">setMidLineWidth</a>(id&amp;~mlw_id);
+<a name="x629"></a> vp-&gt;<a href="ntqframe.html#setMidLineWidth">setMidLineWidth</a>(id&amp;~mlw_id);
} else {
-<a name="x628"></a> vp-&gt;<a href="qframe.html#setMargin">setMargin</a>(id&amp;~mw_id);
+<a name="x628"></a> vp-&gt;<a href="ntqframe.html#setMargin">setMargin</a>(id&amp;~mw_id);
}
-<a name="x662"></a> vp-&gt;<a href="qwidget.html#update">update</a>();
+<a name="x662"></a> vp-&gt;<a href="ntqwidget.html#update">update</a>();
setFMenuItems();
}
void setFMenuItems()
{
- int sty = vp-&gt;<a href="qframe.html#frameStyle">frameStyle</a>();
+ int sty = vp-&gt;<a href="ntqframe.html#frameStyle">frameStyle</a>();
- f_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( style_id, !sty );
+ f_options-&gt;<a href="ntqmenudata.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="qpopupmenu.html#idAt">idAt</a>(i);
+<a name="x643"></a> int id = f_options-&gt;<a href="ntqpopupmenu.html#idAt">idAt</a>(i);
if (id &amp; TQFrame::MShape)
- f_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( id,
+ f_options-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( id,
((id&amp;TQFrame::MShape) == (sty&amp;TQFrame::MShape)) );
else
- f_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( id,
+ f_options-&gt;<a href="ntqmenudata.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="qmenudata.html#setItemChecked">setItemChecked</a>( lw_id|lw, vp-&gt;<a href="qframe.html#lineWidth">lineWidth</a>() == 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 );
for (int mlw=0; mlw&lt;=max_mlw; mlw++)
-<a name="x625"></a> mlw_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( mlw_id|mlw, vp-&gt;<a href="qframe.html#midLineWidth">midLineWidth</a>() == 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 );
for (int mw=0; mw&lt;=max_mw; mw++)
-<a name="x624"></a> mw_options-&gt;<a href="qmenudata.html#setItemChecked">setItemChecked</a>( mw_id|mw, vp-&gt;<a href="qframe.html#margin">margin</a>() == 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 );
}
private:
- <a href="qscrollview.html">TQScrollView</a>* vp;
- <a href="qpopupmenu.html">TQPopupMenu</a>* vp_options;
- <a href="qpopupmenu.html">TQPopupMenu</a>* f_options;
- <a href="qpopupmenu.html">TQPopupMenu</a>* lw_options;
- <a href="qpopupmenu.html">TQPopupMenu</a>* mlw_options;
- <a href="qpopupmenu.html">TQPopupMenu</a>* mw_options;
- <a href="qsizegrip.html">TQSizeGrip</a>* corner;
+ <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;
int vauto_id, vaoff_id, vaon_id,
hauto_id, haoff_id, haon_id,
@@ -461,21 +461,21 @@ private:
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
ScrollViewExample ve1(1,0,"ve1");
ScrollViewExample ve2(2,0,"ve2");
ScrollViewExample ve3(3,0,"ve3");
- ve1.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
- ve1.<a href="qwidget.html#show">show</a>();
- ve2.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
- ve2.<a href="qwidget.html#show">show</a>();
- ve3.<a href="qwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
- ve3.<a href="qwidget.html#show">show</a>();
+ ve1.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
+ ve1.<a href="ntqwidget.html#show">show</a>();
+ ve2.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
+ ve2.<a href="ntqwidget.html#show">show</a>();
+ ve3.<a href="ntqwidget.html#setCaption">setCaption</a>("TQt Example - Scrollviews");
+ ve3.<a href="ntqwidget.html#show">show</a>();
- TQObject::<a href="qobject.html#connect">connect</a>(qApp, SIGNAL(<a href="qapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="qapplication.html#quit">quit</a>()));
+ TQObject::<a href="ntqobject.html#connect">connect</a>(qApp, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), qApp, SLOT(<a href="ntqapplication.html#quit">quit</a>()));
- return a.<a href="qapplication.html#exec">exec</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
#include "scrollview.moc"