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