summaryrefslogtreecommitdiffstats
path: root/doc/html/mdi-example.html
diff options
context:
space:
mode:
Diffstat (limited to 'doc/html/mdi-example.html')
-rw-r--r--doc/html/mdi-example.html150
1 files changed, 75 insertions, 75 deletions
diff --git a/doc/html/mdi-example.html b/doc/html/mdi-example.html
index a2e48908..f241b345 100644
--- a/doc/html/mdi-example.html
+++ b/doc/html/mdi-example.html
@@ -50,7 +50,7 @@ that it provides a Multiple Document Interface (MDI).
#ifndef APPLICATION_H
#define APPLICATION_H
-#include &lt;<a href="qmainwindow-h.html">ntqmainwindow.h</a>&gt;
+#include &lt;<a href="tqmainwindow-h.html">tqmainwindow.h</a>&gt;
#include &lt;<a href="tqptrlist-h.html">tqptrlist.h</a>&gt;
class TQTextEdit;
@@ -60,7 +60,7 @@ class TQWorkspace;
class TQPopupMenu;
class TQMovie;
-class MDIWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
+class MDIWindow: public <a href="tqmainwindow.html">TQMainWindow</a>
{
<a href="metaobjects.html#TQ_OBJECT">TQ_OBJECT</a>
public:
@@ -85,7 +85,7 @@ private:
};
-class ApplicationWindow: public <a href="ntqmainwindow.html">TQMainWindow</a>
+class ApplicationWindow: public <a href="tqmainwindow.html">TQMainWindow</a>
{
TQ_OBJECT
public:
@@ -112,9 +112,9 @@ private slots:
private:
<a href="ntqprinter.html">TQPrinter</a> *printer;
- <a href="ntqworkspace.html">TQWorkspace</a>* ws;
- <a href="ntqtoolbar.html">TQToolBar</a> *fileTools;
- <a href="ntqpopupmenu.html">TQPopupMenu</a>* windowsMenu;
+ <a href="tqworkspace.html">TQWorkspace</a>* ws;
+ <a href="tqtoolbar.html">TQToolBar</a> *fileTools;
+ <a href="tqpopupmenu.html">TQPopupMenu</a>* windowsMenu;
};
@@ -134,18 +134,18 @@ private:
*****************************************************************************/
#include "application.h"
-#include &lt;<a href="qworkspace-h.html">ntqworkspace.h</a>&gt;
+#include &lt;<a href="tqworkspace-h.html">tqworkspace.h</a>&gt;
#include &lt;<a href="tqimage-h.html">tqimage.h</a>&gt;
#include &lt;<a href="qpixmap-h.html">ntqpixmap.h</a>&gt;
-#include &lt;<a href="qtoolbar-h.html">ntqtoolbar.h</a>&gt;
-#include &lt;<a href="qtoolbutton-h.html">ntqtoolbutton.h</a>&gt;
-#include &lt;<a href="qpopupmenu-h.html">ntqpopupmenu.h</a>&gt;
-#include &lt;<a href="qmenubar-h.html">ntqmenubar.h</a>&gt;
+#include &lt;<a href="tqtoolbar-h.html">tqtoolbar.h</a>&gt;
+#include &lt;<a href="tqtoolbutton-h.html">tqtoolbutton.h</a>&gt;
+#include &lt;<a href="tqpopupmenu-h.html">tqpopupmenu.h</a>&gt;
+#include &lt;<a href="tqmenubar-h.html">tqmenubar.h</a>&gt;
#include &lt;<a href="qmovie-h.html">ntqmovie.h</a>&gt;
#include &lt;<a href="qfile-h.html">ntqfile.h</a>&gt;
#include &lt;<a href="qfiledialog-h.html">ntqfiledialog.h</a>&gt;
#include &lt;<a href="qlabel-h.html">ntqlabel.h</a>&gt;
-#include &lt;<a href="qstatusbar-h.html">ntqstatusbar.h</a>&gt;
+#include &lt;<a href="tqstatusbar-h.html">tqstatusbar.h</a>&gt;
#include &lt;<a href="qmessagebox-h.html">ntqmessagebox.h</a>&gt;
#include &lt;<a href="qprinter-h.html">ntqprinter.h</a>&gt;
#include &lt;<a href="qapplication-h.html">ntqapplication.h</a>&gt;
@@ -176,23 +176,23 @@ const char * filePrintText = "Click this button to print the file you "
"You can also select the Print command from the File menu.";
<a name="f535"></a>ApplicationWindow::ApplicationWindow()
- : <a href="ntqmainwindow.html">TQMainWindow</a>( 0, "example application main window", WDestructiveClose )
+ : <a href="tqmainwindow.html">TQMainWindow</a>( 0, "example application main window", WDestructiveClose )
{
int id;
<a href="ntqpixmap.html">TQPixmap</a> openIcon, saveIcon;
- fileTools = new <a href="ntqtoolbar.html">TQToolBar</a>( this, "file operations" );
- <a href="ntqmainwindow.html#addToolBar">addToolBar</a>( fileTools, tr( "File Operations" ), DockTop, TRUE );
+ fileTools = new <a href="tqtoolbar.html">TQToolBar</a>( this, "file operations" );
+ <a href="tqmainwindow.html#addToolBar">addToolBar</a>( fileTools, tr( "File Operations" ), DockTop, TRUE );
openIcon = TQPixmap( fileopen );
TQToolButton * fileOpen
- = new <a href="ntqtoolbutton.html">TQToolButton</a>( openIcon, "Open File", <a href="tqstring.html#TQString-null">TQString::null</a>,
+ = new <a href="tqtoolbutton.html">TQToolButton</a>( openIcon, "Open File", <a href="tqstring.html#TQString-null">TQString::null</a>,
this, TQ_SLOT(load()), fileTools, "open file" );
saveIcon = TQPixmap( filesave );
TQToolButton * fileSave
- = new <a href="ntqtoolbutton.html">TQToolButton</a>( saveIcon, "Save File", TQString::null,
+ = new <a href="tqtoolbutton.html">TQToolButton</a>( saveIcon, "Save File", TQString::null,
this, TQ_SLOT(save()), fileTools, "save file" );
#ifndef TQT_NO_PRINTER
@@ -201,7 +201,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,
+ = new <a href="tqtoolbutton.html">TQToolButton</a>( printIcon, "Print File", TQString::null,
this, TQ_SLOT(print()), fileTools, "print file" );
<a name="x2075"></a> TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( filePrint, filePrintText );
#endif
@@ -211,52 +211,52 @@ const char * filePrintText = "Click this button to print the file you "
TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( fileOpen, fileOpenText );
TQWhatsThis::<a href="ntqwhatsthis.html#add">add</a>( fileSave, fileSaveText );
- <a href="ntqpopupmenu.html">TQPopupMenu</a> * file = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;File", file );
+ <a href="tqpopupmenu.html">TQPopupMenu</a> * file = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;File", file );
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, TQ_SLOT(newDoc()), CTRL+Key_N );
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;New", this, TQ_SLOT(newDoc()), CTRL+Key_N );
- id = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( openIcon, "&amp;Open...",
+ id = file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( openIcon, "&amp;Open...",
this, TQ_SLOT(load()), CTRL+Key_O );
-<a name="x2035"></a> file-&gt;<a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileOpenText );
+<a name="x2035"></a> file-&gt;<a href="tqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileOpenText );
- id = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( saveIcon, "&amp;Save",
+ id = file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( saveIcon, "&amp;Save",
this, TQ_SLOT(save()), CTRL+Key_S );
- file-&gt;<a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileSaveText );
- id = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "Save &amp;As...", this, TQ_SLOT(saveAs()) );
- file-&gt;<a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileSaveText );
+ file-&gt;<a href="tqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileSaveText );
+ id = file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "Save &amp;As...", this, TQ_SLOT(saveAs()) );
+ file-&gt;<a href="tqmenudata.html#setWhatsThis">setWhatsThis</a>( id, fileSaveText );
#ifndef TQT_NO_PRINTER
- file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- id = file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( printIcon, "&amp;Print...",
+ file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ id = file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( printIcon, "&amp;Print...",
this, TQ_SLOT(print()), CTRL+Key_P );
- file-&gt;<a href="ntqmenudata.html#setWhatsThis">setWhatsThis</a>( id, filePrintText );
+ file-&gt;<a href="tqmenudata.html#setWhatsThis">setWhatsThis</a>( id, filePrintText );
#endif
- file-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(closeWindow()), CTRL+Key_W );
-<a name="x2020"></a> file-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;Quit", tqApp, TQ_SLOT( <a href="ntqapplication.html#closeAllWindows">closeAllWindows</a>() ), CTRL+Key_Q );
+ file-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;Close", this, TQ_SLOT(closeWindow()), CTRL+Key_W );
+<a name="x2020"></a> file-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;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-&gt;<a href="ntqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
-<a name="x2048"></a> <a href="tqobject.html#connect">connect</a>( windowsMenu, TQ_SIGNAL( <a href="ntqpopupmenu.html#aboutToShow">aboutToShow</a>() ),
+ windowsMenu = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+<a name="x2049"></a> windowsMenu-&gt;<a href="tqpopupmenu.html#setCheckable">setCheckable</a>( TRUE );
+<a name="x2048"></a> <a href="tqobject.html#connect">connect</a>( windowsMenu, TQ_SIGNAL( <a href="tqpopupmenu.html#aboutToShow">aboutToShow</a>() ),
this, TQ_SLOT( windowsMenuAboutToShow() ) );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;Windows", windowsMenu );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;Windows", windowsMenu );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
- <a href="ntqpopupmenu.html">TQPopupMenu</a> * help = new <a href="ntqpopupmenu.html">TQPopupMenu</a>( this );
- <a href="ntqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;Help", help );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertSeparator();
+ <a href="tqpopupmenu.html">TQPopupMenu</a> * help = new <a href="tqpopupmenu.html">TQPopupMenu</a>( this );
+ <a href="tqmainwindow.html#menuBar">menuBar</a>()-&gt;insertItem( "&amp;Help", help );
- help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "&amp;About", this, TQ_SLOT(about()), Key_F1);
- help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, TQ_SLOT(aboutTQt()));
- help-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- help-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>( "What's &amp;This", this, TQ_SLOT(<a href="ntqmainwindow.html#whatsThis">whatsThis</a>()), SHIFT+Key_F1);
+ help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "&amp;About", this, TQ_SLOT(about()), Key_F1);
+ help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "About &amp;TQt", this, TQ_SLOT(aboutTQt()));
+ help-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ help-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>( "What's &amp;This", this, TQ_SLOT(<a href="tqmainwindow.html#whatsThis">whatsThis</a>()), SHIFT+Key_F1);
<a href="ntqvbox.html">TQVBox</a>* vb = new <a href="ntqvbox.html">TQVBox</a>( this );
vb-&gt;<a href="ntqframe.html#setFrameStyle">setFrameStyle</a>( TQFrame::StyledPanel | TQFrame::Sunken );
- ws = new <a href="ntqworkspace.html">TQWorkspace</a>( vb );
-<a name="x2092"></a> ws-&gt;<a href="ntqworkspace.html#setScrollBarsEnabled">setScrollBarsEnabled</a>( TRUE );
- <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( vb );
+ ws = new <a href="tqworkspace.html">TQWorkspace</a>( vb );
+<a name="x2092"></a> ws-&gt;<a href="tqworkspace.html#setScrollBarsEnabled">setScrollBarsEnabled</a>( TRUE );
+ <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( vb );
- <a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Ready", 2000 );
+ <a href="tqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Ready", 2000 );
}
@@ -276,7 +276,7 @@ MDIWindow* <a name="f536"></a>ApplicationWindow::newDoc()
w-&gt;<a href="tqwidget.html#setCaption">setCaption</a>("unnamed document");
<a name="x2085"></a> w-&gt;<a href="tqwidget.html#setIcon">setIcon</a>( TQPixmap("document.xpm") );
// show the very first window in maximized mode
-<a name="x2094"></a> if ( ws-&gt;<a href="ntqworkspace.html#windowList">windowList</a>().isEmpty() )
+<a name="x2094"></a> if ( ws-&gt;<a href="tqworkspace.html#windowList">windowList</a>().isEmpty() )
<a name="x2087"></a> w-&gt;<a href="tqwidget.html#showMaximized">showMaximized</a>();
else
w-&gt;<a href="tqwidget.html#show">show</a>();
@@ -290,13 +290,13 @@ void <a name="f537"></a>ApplicationWindow::load()
MDIWindow* w = newDoc();
w-&gt;load( fn );
} else {
- <a href="ntqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Loading aborted", 2000 );
+ <a href="tqmainwindow.html#statusBar">statusBar</a>()-&gt;message( "Loading aborted", 2000 );
}
}
void <a name="f538"></a>ApplicationWindow::save()
{
-<a name="x2090"></a> MDIWindow* m = (MDIWindow*)ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>();
+<a name="x2090"></a> MDIWindow* m = (MDIWindow*)ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>();
if ( m )
m-&gt;save();
}
@@ -304,7 +304,7 @@ void <a name="f538"></a>ApplicationWindow::save()
void <a name="f539"></a>ApplicationWindow::saveAs()
{
- MDIWindow* m = (MDIWindow*)ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>();
+ MDIWindow* m = (MDIWindow*)ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>();
if ( m )
m-&gt;saveAs();
}
@@ -313,7 +313,7 @@ void <a name="f539"></a>ApplicationWindow::saveAs()
void <a name="f540"></a>ApplicationWindow::print()
{
#ifndef TQT_NO_PRINTER
- MDIWindow* m = (MDIWindow*)ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>();
+ MDIWindow* m = (MDIWindow*)ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>();
if ( m )
m-&gt;print( printer );
#endif
@@ -322,7 +322,7 @@ void <a name="f540"></a>ApplicationWindow::print()
void <a name="f541"></a>ApplicationWindow::closeWindow()
{
- MDIWindow* m = (MDIWindow*)ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>();
+ MDIWindow* m = (MDIWindow*)ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>();
if ( m )
<a name="x2076"></a> m-&gt;<a href="tqwidget.html#close">close</a>();
}
@@ -343,28 +343,28 @@ void <a name="f543"></a>ApplicationWindow::aboutTQt()
void <a name="f544"></a>ApplicationWindow::windowsMenuAboutToShow()
{
-<a name="x2029"></a> windowsMenu-&gt;<a href="ntqmenudata.html#clear">clear</a>();
-<a name="x2091"></a> int cascadeId = windowsMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Cascade", ws, TQ_SLOT(<a href="ntqworkspace.html#cascade">cascade</a>() ) );
-<a name="x2093"></a> int tileId = windowsMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("&amp;Tile", ws, TQ_SLOT(<a href="ntqworkspace.html#tile">tile</a>() ) );
- int horTileId = windowsMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>("Tile &amp;Horizontally", this, TQ_SLOT(tileHorizontal() ) );
- if ( ws-&gt;<a href="ntqworkspace.html#windowList">windowList</a>().isEmpty() ) {
-<a name="x2033"></a> windowsMenu-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( cascadeId, FALSE );
- windowsMenu-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( tileId, FALSE );
- windowsMenu-&gt;<a href="ntqmenudata.html#setItemEnabled">setItemEnabled</a>( horTileId, FALSE );
+<a name="x2029"></a> windowsMenu-&gt;<a href="tqmenudata.html#clear">clear</a>();
+<a name="x2091"></a> int cascadeId = windowsMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Cascade", ws, TQ_SLOT(<a href="tqworkspace.html#cascade">cascade</a>() ) );
+<a name="x2093"></a> int tileId = windowsMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("&amp;Tile", ws, TQ_SLOT(<a href="tqworkspace.html#tile">tile</a>() ) );
+ int horTileId = windowsMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>("Tile &amp;Horizontally", this, TQ_SLOT(tileHorizontal() ) );
+ if ( ws-&gt;<a href="tqworkspace.html#windowList">windowList</a>().isEmpty() ) {
+<a name="x2033"></a> windowsMenu-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( cascadeId, FALSE );
+ windowsMenu-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( tileId, FALSE );
+ windowsMenu-&gt;<a href="tqmenudata.html#setItemEnabled">setItemEnabled</a>( horTileId, FALSE );
}
- windowsMenu-&gt;<a href="ntqmenudata.html#insertSeparator">insertSeparator</a>();
- TQWidgetList windows = ws-&gt;<a href="ntqworkspace.html#windowList">windowList</a>();
+ windowsMenu-&gt;<a href="tqmenudata.html#insertSeparator">insertSeparator</a>();
+ TQWidgetList windows = ws-&gt;<a href="tqworkspace.html#windowList">windowList</a>();
<a name="x2054"></a> for ( int i = 0; i &lt; int(windows.count()); ++i ) {
-<a name="x2053"></a> int id = windowsMenu-&gt;<a href="ntqmenudata.html#insertItem">insertItem</a>(windows.at(i)-&gt;caption(),
+<a name="x2053"></a> int id = windowsMenu-&gt;<a href="tqmenudata.html#insertItem">insertItem</a>(windows.at(i)-&gt;caption(),
this, TQ_SLOT( windowsMenuActivated( int ) ) );
-<a name="x2034"></a> windowsMenu-&gt;<a href="ntqmenudata.html#setItemParameter">setItemParameter</a>( id, i );
-<a name="x2032"></a> windowsMenu-&gt;<a href="ntqmenudata.html#setItemChecked">setItemChecked</a>( id, ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>() == windows.at(i) );
+<a name="x2034"></a> windowsMenu-&gt;<a href="tqmenudata.html#setItemParameter">setItemParameter</a>( id, i );
+<a name="x2032"></a> windowsMenu-&gt;<a href="tqmenudata.html#setItemChecked">setItemChecked</a>( id, ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>() == windows.at(i) );
}
}
void <a name="f545"></a>ApplicationWindow::windowsMenuActivated( int id )
{
- <a href="tqwidget.html">TQWidget</a>* w = ws-&gt;<a href="ntqworkspace.html#windowList">windowList</a>().at( id );
+ <a href="tqwidget.html">TQWidget</a>* w = ws-&gt;<a href="tqworkspace.html#windowList">windowList</a>().at( id );
if ( w )
<a name="x2088"></a> w-&gt;<a href="tqwidget.html#showNormal">showNormal</a>();
<a name="x2084"></a> w-&gt;<a href="tqwidget.html#setFocus">setFocus</a>();
@@ -373,12 +373,12 @@ void <a name="f545"></a>ApplicationWindow::windowsMenuActivated( int id )
void <a name="f546"></a>ApplicationWindow::tileHorizontal()
{
// primitive horizontal tiling
- TQWidgetList windows = ws-&gt;<a href="ntqworkspace.html#windowList">windowList</a>();
+ TQWidgetList windows = ws-&gt;<a href="tqworkspace.html#windowList">windowList</a>();
if ( !windows.count() )
return;
- if (ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>())
- ws-&gt;<a href="ntqworkspace.html#activeWindow">activeWindow</a>()-&gt;showNormal();
+ if (ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>())
+ ws-&gt;<a href="tqworkspace.html#activeWindow">activeWindow</a>()-&gt;showNormal();
<a name="x2078"></a> int heightForEach = ws-&gt;<a href="tqwidget.html#height">height</a>() / windows.count();
int y = 0;
@@ -394,7 +394,7 @@ void <a name="f546"></a>ApplicationWindow::tileHorizontal()
<a name="x2077"></a>void ApplicationWindow::<a href="tqwidget.html#closeEvent">closeEvent</a>( <a href="qcloseevent.html">TQCloseEvent</a> *e )
{
- TQWidgetList windows = ws-&gt;<a href="ntqworkspace.html#windowList">windowList</a>();
+ TQWidgetList windows = ws-&gt;<a href="tqworkspace.html#windowList">windowList</a>();
if ( windows.count() ) {
for ( int i = 0; i &lt; int(windows.count()); ++i ) {
<a href="tqwidget.html">TQWidget</a> *window = windows.at( i );
@@ -409,12 +409,12 @@ void <a name="f546"></a>ApplicationWindow::tileHorizontal()
}
<a name="f547"></a>MDIWindow::MDIWindow( <a href="tqwidget.html">TQWidget</a>* parent, const char* name, int wflags )
- : <a href="ntqmainwindow.html">TQMainWindow</a>( parent, name, wflags )
+ : <a href="tqmainwindow.html">TQMainWindow</a>( parent, name, wflags )
{
mmovie = 0;
medit = new <a href="tqtextedit.html">TQTextEdit</a>( this );
<a href="tqwidget.html#setFocusProxy">setFocusProxy</a>( medit );
- <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>( medit );
+ <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>( medit );
}
MDIWindow::~MDIWindow()
@@ -459,7 +459,7 @@ void <a name="f548"></a>MDIWindow::load( const <a href="tqstring.html">TQString<
<a name="x2064"></a> if(fn.<a href="tqstring.html#contains">contains</a>(".gif")) {
<a href="tqwidget.html">TQWidget</a> * tmp=new <a href="tqwidget.html">TQWidget</a>(this);
<a href="tqwidget.html#setFocusProxy">setFocusProxy</a>(tmp);
- <a href="ntqmainwindow.html#setCentralWidget">setCentralWidget</a>(tmp);
+ <a href="tqmainwindow.html#setCentralWidget">setCentralWidget</a>(tmp);
<a name="x2079"></a> medit-&gt;<a href="tqwidget.html#hide">hide</a>();
delete medit;
<a href="ntqmovie.html">TQMovie</a> * qm=new <a href="ntqmovie.html">TQMovie</a>(fn);