summaryrefslogtreecommitdiffstats
path: root/doc/html/tabdialog-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/tabdialog-example.html
parentaaf89d4b48f69c9293feb187db26362e550b5561 (diff)
downloadtqt3-ea318d1431c89e647598c510c4245c6571aa5f46.tar.gz
tqt3-ea318d1431c89e647598c510c4245c6571aa5f46.zip
Update to latest tqt3 automated conversion
Diffstat (limited to 'doc/html/tabdialog-example.html')
-rw-r--r--doc/html/tabdialog-example.html144
1 files changed, 72 insertions, 72 deletions
diff --git a/doc/html/tabdialog-example.html b/doc/html/tabdialog-example.html
index a40d1b40e..70ba7cac3 100644
--- a/doc/html/tabdialog-example.html
+++ b/doc/html/tabdialog-example.html
@@ -52,20 +52,20 @@ file separated onto different tabs.
#ifndef TABDIALOG_H
#define TABDIALOG_H
-#include &lt;<a href="qtabdialog-h.html">qtabdialog.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
-#include &lt;<a href="qfileinfo-h.html">qfileinfo.h</a>&gt;
+#include &lt;<a href="qtabdialog-h.html">ntqtabdialog.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
+#include &lt;<a href="qfileinfo-h.html">ntqfileinfo.h</a>&gt;
-class TabDialog : public <a href="qtabdialog.html">TQTabDialog</a>
+class TabDialog : public <a href="ntqtabdialog.html">TQTabDialog</a>
{
<a href="metaobjects.html#Q_OBJECT">Q_OBJECT</a>
public:
- TabDialog( <a href="qwidget.html">TQWidget</a> *parent, const char *name, const <a href="qstring.html">TQString</a> &amp;_filename );
+ TabDialog( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name, const <a href="ntqstring.html">TQString</a> &amp;_filename );
protected:
- <a href="qstring.html">TQString</a> filename;
- <a href="qfileinfo.html">TQFileInfo</a> fileinfo;
+ <a href="ntqstring.html">TQString</a> filename;
+ <a href="ntqfileinfo.html">TQFileInfo</a> fileinfo;
void setupTab1();
void setupTab2();
@@ -90,104 +90,104 @@ protected:
#include "tabdialog.h"
-#include &lt;<a href="qvbox-h.html">qvbox.h</a>&gt;
-#include &lt;<a href="qlabel-h.html">qlabel.h</a>&gt;
-#include &lt;<a href="qlineedit-h.html">qlineedit.h</a>&gt;
-#include &lt;<a href="qdatetime-h.html">qdatetime.h</a>&gt;
-#include &lt;<a href="qbuttongroup-h.html">qbuttongroup.h</a>&gt;
-#include &lt;<a href="qcheckbox-h.html">qcheckbox.h</a>&gt;
-#include &lt;<a href="qlistbox-h.html">qlistbox.h</a>&gt;
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-
-<a name="f200"></a>TabDialog::TabDialog( <a href="qwidget.html">TQWidget</a> *parent, const char *name, const <a href="qstring.html">TQString</a> &amp;_filename )
- : <a href="qtabdialog.html">TQTabDialog</a>( parent, name ), filename( _filename ), fileinfo( filename )
+#include &lt;<a href="qvbox-h.html">ntqvbox.h</a>&gt;
+#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
+#include &lt;<a href="qlineedit-h.html">ntqlineedit.h</a>&gt;
+#include &lt;<a href="qdatetime-h.html">ntqdatetime.h</a>&gt;
+#include &lt;<a href="qbuttongroup-h.html">ntqbuttongroup.h</a>&gt;
+#include &lt;<a href="qcheckbox-h.html">ntqcheckbox.h</a>&gt;
+#include &lt;<a href="qlistbox-h.html">ntqlistbox.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+
+<a name="f200"></a>TabDialog::TabDialog( <a href="ntqwidget.html">TQWidget</a> *parent, const char *name, const <a href="ntqstring.html">TQString</a> &amp;_filename )
+ : <a href="ntqtabdialog.html">TQTabDialog</a>( parent, name ), filename( _filename ), fileinfo( filename )
{
setupTab1();
setupTab2();
setupTab3();
- <a href="qobject.html#connect">connect</a>( this, SIGNAL( <a href="qtabdialog.html#applyButtonPressed">applyButtonPressed</a>() ), qApp, SLOT( <a href="qapplication.html#quit">quit</a>() ) );
+ <a href="ntqobject.html#connect">connect</a>( this, SIGNAL( <a href="ntqtabdialog.html#applyButtonPressed">applyButtonPressed</a>() ), qApp, SLOT( <a href="ntqapplication.html#quit">quit</a>() ) );
}
void <a name="f201"></a>TabDialog::setupTab1()
{
- <a href="qvbox.html">TQVBox</a> *tab1 = new <a href="qvbox.html">TQVBox</a>( this );
-<a name="x53"></a> tab1-&gt;<a href="qframe.html#setMargin">setMargin</a>( 5 );
+ <a href="ntqvbox.html">TQVBox</a> *tab1 = new <a href="ntqvbox.html">TQVBox</a>( this );
+<a name="x53"></a> tab1-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 5 );
- (void)new <a href="qlabel.html">TQLabel</a>( "Filename:", tab1 );
- <a href="qlineedit.html">TQLineEdit</a> *fname = new <a href="qlineedit.html">TQLineEdit</a>( filename, tab1 );
- fname-&gt;<a href="qwidget.html#setFocus">setFocus</a>();
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Filename:", tab1 );
+ <a href="ntqlineedit.html">TQLineEdit</a> *fname = new <a href="ntqlineedit.html">TQLineEdit</a>( filename, tab1 );
+ fname-&gt;<a href="ntqwidget.html#setFocus">setFocus</a>();
- (void)new <a href="qlabel.html">TQLabel</a>( "Path:", tab1 );
- <a href="qlabel.html">TQLabel</a> *path = new <a href="qlabel.html">TQLabel</a>( fileinfo.dirPath( TRUE ), tab1 );
-<a name="x52"></a> path-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Path:", tab1 );
+ <a href="ntqlabel.html">TQLabel</a> *path = new <a href="ntqlabel.html">TQLabel</a>( fileinfo.dirPath( TRUE ), tab1 );
+<a name="x52"></a> path-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
- (void)new <a href="qlabel.html">TQLabel</a>( "Size:", tab1 );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Size:", tab1 );
ulong kb = (ulong)(fileinfo.size()/1024);
- <a href="qlabel.html">TQLabel</a> *size = new <a href="qlabel.html">TQLabel</a>( TQString( "%1 KB" ).arg( kb ), tab1 );
- size-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ <a href="ntqlabel.html">TQLabel</a> *size = new <a href="ntqlabel.html">TQLabel</a>( TQString( "%1 KB" ).arg( kb ), tab1 );
+ size-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
- (void)new <a href="qlabel.html">TQLabel</a>( "Last Read:", tab1 );
- <a href="qlabel.html">TQLabel</a> *lread = new <a href="qlabel.html">TQLabel</a>( fileinfo.lastRead().toString(), tab1 );
- lread-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Last Read:", tab1 );
+ <a href="ntqlabel.html">TQLabel</a> *lread = new <a href="ntqlabel.html">TQLabel</a>( fileinfo.lastRead().toString(), tab1 );
+ lread-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
- (void)new <a href="qlabel.html">TQLabel</a>( "Last Modified:", tab1 );
- <a href="qlabel.html">TQLabel</a> *lmodif = new <a href="qlabel.html">TQLabel</a>( fileinfo.lastModified().toString(), tab1 );
- lmodif-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Last Modified:", tab1 );
+ <a href="ntqlabel.html">TQLabel</a> *lmodif = new <a href="ntqlabel.html">TQLabel</a>( fileinfo.lastModified().toString(), tab1 );
+ lmodif-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
- <a href="qtabdialog.html#addTab">addTab</a>( tab1, "General" );
+ <a href="ntqtabdialog.html#addTab">addTab</a>( tab1, "General" );
}
void <a name="f202"></a>TabDialog::setupTab2()
{
- <a href="qvbox.html">TQVBox</a> *tab2 = new <a href="qvbox.html">TQVBox</a>( this );
- tab2-&gt;<a href="qframe.html#setMargin">setMargin</a>( 5 );
+ <a href="ntqvbox.html">TQVBox</a> *tab2 = new <a href="ntqvbox.html">TQVBox</a>( this );
+ tab2-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 5 );
- <a href="qbuttongroup.html">TQButtonGroup</a> *bg = new <a href="qbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Permissions", tab2 );
+ <a href="ntqbuttongroup.html">TQButtonGroup</a> *bg = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 1, TQGroupBox::Horizontal, "Permissions", tab2 );
- <a href="qcheckbox.html">TQCheckBox</a> *readable = new <a href="qcheckbox.html">TQCheckBox</a>( "Readable", bg );
+ <a href="ntqcheckbox.html">TQCheckBox</a> *readable = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Readable", bg );
if ( fileinfo.isReadable() )
-<a name="x51"></a> readable-&gt;<a href="qcheckbox.html#setChecked">setChecked</a>( TRUE );
+<a name="x51"></a> readable-&gt;<a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE );
- <a href="qcheckbox.html">TQCheckBox</a> *writable = new <a href="qcheckbox.html">TQCheckBox</a>( "Writeable", bg );
+ <a href="ntqcheckbox.html">TQCheckBox</a> *writable = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Writeable", bg );
if ( fileinfo.isWritable() )
- writable-&gt;<a href="qcheckbox.html#setChecked">setChecked</a>( TRUE );
+ writable-&gt;<a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE );
- <a href="qcheckbox.html">TQCheckBox</a> *executable = new <a href="qcheckbox.html">TQCheckBox</a>( "Executable", bg );
+ <a href="ntqcheckbox.html">TQCheckBox</a> *executable = new <a href="ntqcheckbox.html">TQCheckBox</a>( "Executable", bg );
if ( fileinfo.isExecutable() )
- executable-&gt;<a href="qcheckbox.html#setChecked">setChecked</a>( TRUE );
+ executable-&gt;<a href="ntqcheckbox.html#setChecked">setChecked</a>( TRUE );
- <a href="qbuttongroup.html">TQButtonGroup</a> *bg2 = new <a href="qbuttongroup.html">TQButtonGroup</a>( 2, TQGroupBox::Horizontal, "Owner", tab2 );
+ <a href="ntqbuttongroup.html">TQButtonGroup</a> *bg2 = new <a href="ntqbuttongroup.html">TQButtonGroup</a>( 2, TQGroupBox::Horizontal, "Owner", tab2 );
- (void)new <a href="qlabel.html">TQLabel</a>( "Owner", bg2 );
- <a href="qlabel.html">TQLabel</a> *owner = new <a href="qlabel.html">TQLabel</a>( fileinfo.owner(), bg2 );
- owner-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Owner", bg2 );
+ <a href="ntqlabel.html">TQLabel</a> *owner = new <a href="ntqlabel.html">TQLabel</a>( fileinfo.owner(), bg2 );
+ owner-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
- (void)new <a href="qlabel.html">TQLabel</a>( "Group", bg2 );
- <a href="qlabel.html">TQLabel</a> *group = new <a href="qlabel.html">TQLabel</a>( fileinfo.group(), bg2 );
- group-&gt;<a href="qframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( "Group", bg2 );
+ <a href="ntqlabel.html">TQLabel</a> *group = new <a href="ntqlabel.html">TQLabel</a>( fileinfo.group(), bg2 );
+ group-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::Panel | TQFrame::Sunken );
- <a href="qtabdialog.html#addTab">addTab</a>( tab2, "Permissions" );
+ <a href="ntqtabdialog.html#addTab">addTab</a>( tab2, "Permissions" );
}
void <a name="f203"></a>TabDialog::setupTab3()
{
- <a href="qvbox.html">TQVBox</a> *tab3 = new <a href="qvbox.html">TQVBox</a>( this );
- tab3-&gt;<a href="qframe.html#setMargin">setMargin</a>( 5 );
-<a name="x54"></a> tab3-&gt;<a href="qhbox.html#setSpacing">setSpacing</a>( 5 );
+ <a href="ntqvbox.html">TQVBox</a> *tab3 = new <a href="ntqvbox.html">TQVBox</a>( this );
+ tab3-&gt;<a href="ntqframe.html#setMargin">setMargin</a>( 5 );
+<a name="x54"></a> tab3-&gt;<a href="ntqhbox.html#setSpacing">setSpacing</a>( 5 );
- (void)new <a href="qlabel.html">TQLabel</a>( TQString( "Open %1 with:" ).arg( filename ), tab3 );
+ (void)new <a href="ntqlabel.html">TQLabel</a>( TQString( "Open %1 with:" ).arg( filename ), tab3 );
- <a href="qlistbox.html">TQListBox</a> *prgs = new <a href="qlistbox.html">TQListBox</a>( tab3 );
+ <a href="ntqlistbox.html">TQListBox</a> *prgs = new <a href="ntqlistbox.html">TQListBox</a>( tab3 );
for ( unsigned int i = 0; i &lt; 30; i++ ) {
- <a href="qstring.html">TQString</a> prg = TQString( "Application %1" ).arg( i );
-<a name="x55"></a> prgs-&gt;<a href="qlistbox.html#insertItem">insertItem</a>( prg );
+ <a href="ntqstring.html">TQString</a> prg = TQString( "Application %1" ).arg( i );
+<a name="x55"></a> prgs-&gt;<a href="ntqlistbox.html#insertItem">insertItem</a>( prg );
}
-<a name="x56"></a> prgs-&gt;<a href="qlistbox.html#setCurrentItem">setCurrentItem</a>( 3 );
+<a name="x56"></a> prgs-&gt;<a href="ntqlistbox.html#setCurrentItem">setCurrentItem</a>( 3 );
- (void)new <a href="qcheckbox.html">TQCheckBox</a>( TQString( "Open files with the extension '%1' always with this application" ).arg( fileinfo.extension() ), tab3 );
+ (void)new <a href="ntqcheckbox.html">TQCheckBox</a>( TQString( "Open files with the extension '%1' always with this application" ).arg( fileinfo.extension() ), tab3 );
- <a href="qtabdialog.html#addTab">addTab</a>( tab3, "Applications" );
+ <a href="ntqtabdialog.html#addTab">addTab</a>( tab3, "Applications" );
}
</pre>
@@ -204,21 +204,21 @@ void <a name="f203"></a>TabDialog::setupTab3()
*****************************************************************************/
#include "tabdialog.h"
-#include &lt;<a href="qapplication-h.html">qapplication.h</a>&gt;
-#include &lt;<a href="qstring-h.html">qstring.h</a>&gt;
+#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
+#include &lt;<a href="qstring-h.html">ntqstring.h</a>&gt;
int main( int argc, char **argv )
{
- <a href="qapplication.html">TQApplication</a> a( argc, argv );
+ <a href="ntqapplication.html">TQApplication</a> a( argc, argv );
TabDialog tabdialog( 0, "tabdialog", TQString( argc &lt; 2 ? "." : argv[1] ) );
-<a name="x60"></a> tabdialog.<a href="qwidget.html#resize">resize</a>( 450, 350 );
- tabdialog.<a href="qwidget.html#setCaption">setCaption</a>( "TQt Example - Tabbed Dialog" );
- a.<a href="qapplication.html#setMainWidget">setMainWidget</a>( &amp;tabdialog );
-<a name="x61"></a> tabdialog.<a href="qdialog.html#show">show</a>();
+<a name="x60"></a> tabdialog.<a href="ntqwidget.html#resize">resize</a>( 450, 350 );
+ tabdialog.<a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Tabbed Dialog" );
+ a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>( &amp;tabdialog );
+<a name="x61"></a> tabdialog.<a href="ntqdialog.html#show">show</a>();
- return a.<a href="qapplication.html#exec">exec</a>();
+ return a.<a href="ntqapplication.html#exec">exec</a>();
}
</pre>