diff options
Diffstat (limited to 'doc/html/mdi-example.html')
-rw-r--r-- | doc/html/mdi-example.html | 42 |
1 files changed, 21 insertions, 21 deletions
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html index 50684724d..40f8b098f 100644 --- a/doc/html/mdi-example.html +++ b/doc/html/mdi-example.html @@ -188,12 +188,12 @@ const char * filePrintText = "Click this button to print the file you " openIcon = TQPixmap( fileopen ); TQToolButton * fileOpen = new <a href="ntqtoolbutton.html">TQToolButton</a>( openIcon, "Open File", <a href="ntqstring.html#TQString-null">TQString::null</a>, - this, SLOT(load()), fileTools, "open file" ); + this, TQ_SLOT(load()), fileTools, "open file" ); saveIcon = TQPixmap( filesave ); TQToolButton * fileSave = new <a href="ntqtoolbutton.html">TQToolButton</a>( saveIcon, "Save File", TQString::null, - this, SLOT(save()), fileTools, "save file" ); + this, TQ_SLOT(save()), fileTools, "save file" ); #ifndef TQT_NO_PRINTER printer = new <a href="ntqprinter.html">TQPrinter</a>( TQPrinter::HighResolution ); @@ -202,7 +202,7 @@ const char * filePrintText = "Click this button to print the file you " printIcon = TQPixmap( fileprint ); TQToolButton * filePrint = new <a href="ntqtoolbutton.html">TQToolButton</a>( printIcon, "Print File", TQString::null, - this, SLOT(print()), fileTools, "print file" ); + this, TQ_SLOT(print()), fileTools, "print file" ); <a name="x2075"></a> TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( filePrint, filePrintText ); #endif @@ -214,41 +214,41 @@ const char * filePrintText = "Click this button to print the file you " <a href="ntqpopupmenu.html">TQPopupMenu</a> * file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&File", file ); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&New", this, SLOT(newDoc()), CTRL+Key_N ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&New", this, TQ_SLOT(newDoc()), CTRL+Key_N ); id = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( openIcon, "&Open...", - this, SLOT(load()), CTRL+Key_O ); + this, TQ_SLOT(load()), CTRL+Key_O ); <a name="x2035"></a> file-><a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileOpenText ); id = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( saveIcon, "&Save", - this, SLOT(save()), CTRL+Key_S ); + this, TQ_SLOT(save()), CTRL+Key_S ); file-><a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileSaveText ); - id = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Save &As...", this, SLOT(saveAs()) ); + id = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "Save &As...", this, TQ_SLOT(saveAs()) ); file-><a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileSaveText ); #ifndef TQT_NO_PRINTER file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); id = file-><a href="ntqmenudata.html#insertItem">insertItem</a>( printIcon, "&Print...", - this, SLOT(print()), CTRL+Key_P ); + this, TQ_SLOT(print()), CTRL+Key_P ); file-><a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, filePrintText ); #endif file-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Close", this, SLOT(closeWindow()), CTRL+Key_W ); -<a name="x2020"></a> file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q ); + file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Close", this, TQ_SLOT(closeWindow()), CTRL+Key_W ); +<a name="x2020"></a> file-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&Quit", tqApp, TQ_SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q ); windowsMenu = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a name="x2049"></a> windowsMenu-><a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE ); -<a name="x2048"></a> <a href="ntqobject.html#connect">connect</a>( windowsMenu, SIGNAL( <a href="ntqpopupmenu.html#aboutToShow">aboutToShow</a>() ), - this, SLOT( windowsMenuAboutToShow() ) ); +<a name="x2048"></a> <a href="ntqobject.html#connect">connect</a>( windowsMenu, TQ_SIGNAL( <a href="ntqpopupmenu.html#aboutToShow">aboutToShow</a>() ), + this, TQ_SLOT( windowsMenuAboutToShow() ) ); <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Windows", windowsMenu ); <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertSeparator(); <a href="ntqpopupmenu.html">TQPopupMenu</a> * help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this ); <a href="ntqmainwindow.html#menuBar">menuBar</a>()->insertItem( "&Help", help ); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&About", this, SLOT(about()), Key_F1); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "About &TQt", this, SLOT(aboutTQt())); + help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "&About", this, TQ_SLOT(about()), Key_F1); + help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "About &TQt", this, TQ_SLOT(aboutTQt())); help-><a href="ntqmenudata.html#insertSeparator">insertSeparator</a>(); - help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "What's &This", this, SLOT(<a href="ntqmainwindow.html#whatsThis">whatsThis</a>()), SHIFT+Key_F1); + help-><a href="ntqmenudata.html#insertItem">insertItem</a>( "What's &This", this, TQ_SLOT(<a href="ntqmainwindow.html#whatsThis">whatsThis</a>()), SHIFT+Key_F1); <a href="ntqvbox.html">TQVBox</a>* vb = new <a href="ntqvbox.html">TQVBox</a>( this ); vb-><a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::StyledPanel | TQFrame::Sunken ); @@ -272,7 +272,7 @@ ApplicationWindow::~ApplicationWindow() MDIWindow* <a name="f536"></a>ApplicationWindow::newDoc() { MDIWindow* w = new MDIWindow( ws, 0, WDestructiveClose ); - <a href="ntqobject.html#connect">connect</a>( w, SIGNAL( message(const <a href="ntqstring.html">TQString</a>&, int) ), statusBar(), SLOT( message(const <a href="ntqstring.html">TQString</a>&, int )) ); + <a href="ntqobject.html#connect">connect</a>( w, TQ_SIGNAL( message(const <a href="ntqstring.html">TQString</a>&, int) ), statusBar(), TQ_SLOT( message(const <a href="ntqstring.html">TQString</a>&, int )) ); w-><a href="ntqwidget.html#setCaption">setCaption</a>("unnamed document"); <a name="x2085"></a> w-><a href="ntqwidget.html#setIcon">setIcon</a>( TQPixmap("document.xpm") ); // show the very first window in maximized mode @@ -344,9 +344,9 @@ void <a name="f543"></a>ApplicationWindow::aboutTQt() void <a name="f544"></a>ApplicationWindow::windowsMenuAboutToShow() { <a name="x2029"></a> windowsMenu-><a href="ntqmenudata.html#clear">clear</a>(); -<a name="x2091"></a> int cascadeId = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Cascade", ws, SLOT(<a href="ntqworkspace.html#cascade">cascade</a>() ) ); -<a name="x2093"></a> int tileId = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Tile", ws, SLOT(<a href="ntqworkspace.html#tile">tile</a>() ) ); - int horTileId = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>("Tile &Horizontally", this, SLOT(tileHorizontal() ) ); +<a name="x2091"></a> int cascadeId = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Cascade", ws, TQ_SLOT(<a href="ntqworkspace.html#cascade">cascade</a>() ) ); +<a name="x2093"></a> int tileId = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>("&Tile", ws, TQ_SLOT(<a href="ntqworkspace.html#tile">tile</a>() ) ); + int horTileId = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>("Tile &Horizontally", this, TQ_SLOT(tileHorizontal() ) ); if ( ws-><a href="ntqworkspace.html#windowList">windowList</a>().isEmpty() ) { <a name="x2033"></a> windowsMenu-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( cascadeId, FALSE ); windowsMenu-><a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( tileId, FALSE ); @@ -356,7 +356,7 @@ void <a name="f544"></a>ApplicationWindow::windowsMenuAboutToShow() TQWidgetList windows = ws-><a href="ntqworkspace.html#windowList">windowList</a>(); <a name="x2054"></a> for ( int i = 0; i < int(windows.count()); ++i ) { <a name="x2053"></a> int id = windowsMenu-><a href="ntqmenudata.html#insertItem">insertItem</a>(windows.at(i)->caption(), - this, SLOT( windowsMenuActivated( int ) ) ); + this, TQ_SLOT( windowsMenuActivated( int ) ) ); <a name="x2034"></a> windowsMenu-><a href="ntqmenudata.html#setItemParameter">setItemParameter</a>( id, i ); <a name="x2032"></a> windowsMenu-><a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( id, ws-><a href="ntqworkspace.html#activeWindow">activeWindow</a>() == windows.at(i) ); } @@ -582,7 +582,7 @@ int main( int argc, char ** argv ) { a.<a href="ntqapplication.html#setMainWidget">setMainWidget</a>(mw); mw-><a href="ntqwidget.html#setCaption">setCaption</a>( "TQt Example - Multiple Documents Interface (MDI)" ); mw-><a href="ntqwidget.html#show">show</a>(); -<a name="x2097"></a><a name="x2096"></a> a.<a href="ntqobject.html#connect">connect</a>( &a, SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); +<a name="x2097"></a><a name="x2096"></a> a.<a href="ntqobject.html#connect">connect</a>( &a, TQ_SIGNAL(<a href="ntqapplication.html#lastWindowClosed">lastWindowClosed</a>()), &a, TQ_SLOT(<a href="ntqapplication.html#quit">quit</a>()) ); int res = a.<a href="ntqapplication.html#exec">exec</a>(); return res; } |