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.html52
1 files changed, 26 insertions, 26 deletions
diff --git a/doc/html/scrollview-example.html b/doc/html/scrollview-example.html
index 9437e1d1e..c23b0321c 100644
--- a/doc/html/scrollview-example.html
+++ b/doc/html/scrollview-example.html
@@ -47,11 +47,11 @@ optimized for very large contents.
**
*****************************************************************************/
-#include &lt;<a href="qscrollview-h.html">ntqscrollview.h</a>&gt;
+#include &lt;<a href="tqscrollview-h.html">tqscrollview.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.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="tqpushbutton-h.html">tqpushbutton.h</a>&gt;
#include &lt;<a href="tqpainter-h.html">tqpainter.h</a>&gt;
#include &lt;<a href="tqpixmap-h.html">tqpixmap.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
@@ -82,7 +82,7 @@ public:
int b=0;
for (int y=0; y&lt;2000-h; y+=h+10) {
if (y == 0) {
- <a href="ntqbutton.html">TQButton</a>* q=new <a href="ntqpushbutton.html">TQPushButton</a>("Quit", this);
+ <a href="ntqbutton.html">TQButton</a>* q=new <a href="tqpushbutton.html">TQPushButton</a>("Quit", this);
connect(q, TQ_SIGNAL(<a href="ntqbutton.html#clicked">clicked</a>()), tqApp, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()));
} else {
<a href="tqstring.html">TQString</a> str;
@@ -92,7 +92,7 @@ public:
str = "I'm shrinking!";
++b;
}
- (new <a href="ntqpushbutton.html">TQPushButton</a>(str, this))-&gt;move(y/2,y);
+ (new <a href="tqpushbutton.html">TQPushButton</a>(str, this))-&gt;move(y/2,y);
}
}
resize(1000,2000);
@@ -118,11 +118,11 @@ signals:
void clicked(int,int);
};
-class BigMatrix : public <a href="ntqscrollview.html">TQScrollView</a> {
+class BigMatrix : public <a href="tqscrollview.html">TQScrollView</a> {
<a href="ntqmultilineedit.html">TQMultiLineEdit</a> *dragging;
public:
BigMatrix(TQWidget* parent) :
- <a href="ntqscrollview.html">TQScrollView</a>(parent,"matrix", WStaticContents),
+ <a href="tqscrollview.html">TQScrollView</a>(parent,"matrix", WStaticContents),
bg("bg.ppm")
{
<a name="x640"></a> bg.<a href="tqpixmap.html#load">load</a>("bg.ppm");
@@ -267,24 +267,24 @@ public:
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);
-<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);
+ vp = new <a href="tqscrollview.html">TQScrollView</a>(this);
+<a name="x655"></a> BigShrinker *bs = new BigShrinker(0);//(vp-&gt;<a href="tqscrollview.html#viewport">viewport</a>());
+<a name="x645"></a> vp-&gt;<a href="tqscrollview.html#addChild">addChild</a>(bs);
<a name="x659"></a> bs-&gt;<a href="tqwidget.html#setAcceptDrops">setAcceptDrops</a>(TRUE);
TQObject::<a href="tqobject.html#connect">connect</a>(bs, TQ_SIGNAL(clicked(int,int)),
-<a name="x646"></a> vp, TQ_SLOT(<a href="ntqscrollview.html#center">center</a>(int,int)));
+<a name="x646"></a> vp, TQ_SLOT(<a href="tqscrollview.html#center">center</a>(int,int)));
} else {
vp = new BigMatrix(this);
if ( technique == 3 )
-<a name="x648"></a> vp-&gt;<a href="ntqscrollview.html#enableClipper">enableClipper</a>(TRUE);
+<a name="x648"></a> vp-&gt;<a href="tqscrollview.html#enableClipper">enableClipper</a>(TRUE);
srand(1);
for (int i=0; i&lt;30; i++) {
- <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *l = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>(vp-&gt;<a href="ntqscrollview.html#viewport">viewport</a>(),"First");
+ <a href="ntqmultilineedit.html">TQMultiLineEdit</a> *l = new <a href="ntqmultilineedit.html">TQMultiLineEdit</a>(vp-&gt;<a href="tqscrollview.html#viewport">viewport</a>(),"First");
l-&gt;<a href="tqtextedit.html#setText">setText</a>("Drag out more of these.");
l-&gt;<a href="tqwidget.html#resize">resize</a>(100,100);
- vp-&gt;<a href="ntqscrollview.html#addChild">addChild</a>(l, rand()%800, rand()%10000);
+ vp-&gt;<a href="tqscrollview.html#addChild">addChild</a>(l, rand()%800, rand()%10000);
}
- vp-&gt;<a href="ntqscrollview.html#viewport">viewport</a>()-&gt;setBackgroundMode(NoBackground);
+ vp-&gt;<a href="tqscrollview.html#viewport">viewport</a>()-&gt;setBackgroundMode(NoBackground);
}
f_options = new <a href="tqpopupmenu.html">TQPopupMenu</a>( menubar );
@@ -355,20 +355,20 @@ private slots:
void doVPMenuItem(int id)
{
if (id == vauto_id ) {
-<a name="x653"></a> vp-&gt;<a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::Auto);
+<a name="x653"></a> vp-&gt;<a href="tqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::Auto);
} else if (id == vaoff_id) {
- vp-&gt;<a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOff);
+ vp-&gt;<a href="tqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOff);
} else if (id == vaon_id) {
- vp-&gt;<a href="ntqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOn);
+ vp-&gt;<a href="tqscrollview.html#setVScrollBarMode">setVScrollBarMode</a>(TQScrollView::AlwaysOn);
} else if (id == hauto_id) {
-<a name="x652"></a> vp-&gt;<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::Auto);
+<a name="x652"></a> vp-&gt;<a href="tqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::Auto);
} else if (id == haoff_id) {
- vp-&gt;<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOff);
+ vp-&gt;<a href="tqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOff);
} else if (id == haon_id) {
- vp-&gt;<a href="ntqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOn);
+ vp-&gt;<a href="tqscrollview.html#setHScrollBarMode">setHScrollBarMode</a>(TQScrollView::AlwaysOn);
} else if (id == corn_id) {
-<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);
+<a name="x647"></a> bool corn = !vp-&gt;<a href="tqscrollview.html#cornerWidget">cornerWidget</a>();
+<a name="x651"></a> vp-&gt;<a href="tqscrollview.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="ntqscrollview.html#vScrollBarMode">vScrollBarMode</a>();
+<a name="x654"></a> TQScrollView::ScrollBarMode vm = vp-&gt;<a href="tqscrollview.html#vScrollBarMode">vScrollBarMode</a>();
<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>();
+<a name="x649"></a> TQScrollView::ScrollBarMode hm = vp-&gt;<a href="tqscrollview.html#hScrollBarMode">hScrollBarMode</a>();
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="tqmenudata.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="tqscrollview.html#cornerWidget">cornerWidget</a>() );
}
void doFMenuItem(int id)
@@ -444,7 +444,7 @@ private slots:
}
private:
- <a href="ntqscrollview.html">TQScrollView</a>* vp;
+ <a href="tqscrollview.html">TQScrollView</a>* vp;
<a href="tqpopupmenu.html">TQPopupMenu</a>* vp_options;
<a href="tqpopupmenu.html">TQPopupMenu</a>* f_options;
<a href="tqpopupmenu.html">TQPopupMenu</a>* lw_options;