summaryrefslogtreecommitdiffstats
path: root/qtjava/javalib/examples/mdi/ApplicationWindow.java
diff options
context:
space:
mode:
Diffstat (limited to 'qtjava/javalib/examples/mdi/ApplicationWindow.java')
-rw-r--r--qtjava/javalib/examples/mdi/ApplicationWindow.java38
1 files changed, 19 insertions, 19 deletions
diff --git a/qtjava/javalib/examples/mdi/ApplicationWindow.java b/qtjava/javalib/examples/mdi/ApplicationWindow.java
index fd0079be..d6e5ce25 100644
--- a/qtjava/javalib/examples/mdi/ApplicationWindow.java
+++ b/qtjava/javalib/examples/mdi/ApplicationWindow.java
@@ -118,12 +118,12 @@ ApplicationWindow()
openIcon = new TQPixmap( fileopen );
TQToolButton fileOpen
= new TQToolButton( new TQIconSet(openIcon), "Open File", "",
- this, SLOT("load()"), fileTools, "open file" );
+ this, TQ_SLOT("load()"), fileTools, "open file" );
saveIcon = new TQPixmap( filesave );
TQToolButton fileSave
= new TQToolButton( new TQIconSet(saveIcon), "Save File", "",
- this, SLOT("save()"), fileTools, "save file" );
+ this, TQ_SLOT("save()"), fileTools, "save file" );
printer = new TQPrinter();
TQPixmap printIcon;
@@ -131,7 +131,7 @@ ApplicationWindow()
printIcon = new TQPixmap( fileprint );
TQToolButton filePrint
= new TQToolButton( new TQIconSet(printIcon), "Print File", "",
- this, SLOT("print()"), fileTools, "print file" );
+ this, TQ_SLOT("print()"), fileTools, "print file" );
TQWhatsThis.add( filePrint, filePrintText );
TQWhatsThis.whatsThisButton( fileTools );
@@ -142,39 +142,39 @@ ApplicationWindow()
TQPopupMenu file = new TQPopupMenu( this );
menuBar().insertItem( "&File", file );
- file.insertItem( "&New", this, SLOT("newDoc()"), new TQKeySequence(CTRL+Key_N) );
+ file.insertItem( "&New", this, TQ_SLOT("newDoc()"), new TQKeySequence(CTRL+Key_N) );
id = file.insertItem( new TQIconSet(openIcon), "&Open...",
- this, SLOT("load()"), new TQKeySequence(CTRL+Key_O) );
+ this, TQ_SLOT("load()"), new TQKeySequence(CTRL+Key_O) );
file.setWhatsThis( id, fileOpenText );
id = file.insertItem( new TQIconSet(saveIcon), "&Save",
- this, SLOT("save()"), new TQKeySequence(CTRL+Key_S) );
+ this, TQ_SLOT("save()"), new TQKeySequence(CTRL+Key_S) );
file.setWhatsThis( id, fileSaveText );
- id = file.insertItem( "Save &As...", this, SLOT("saveAs()") );
+ id = file.insertItem( "Save &As...", this, TQ_SLOT("saveAs()") );
file.setWhatsThis( id, fileSaveText );
file.insertSeparator();
id = file.insertItem( new TQIconSet(printIcon), "&Print...",
- this, SLOT("print()"), new TQKeySequence(CTRL+Key_P) );
+ this, TQ_SLOT("print()"), new TQKeySequence(CTRL+Key_P) );
file.setWhatsThis( id, filePrintText );
file.insertSeparator();
- file.insertItem( "&Close", this, SLOT("closeWindow()"), new TQKeySequence(CTRL+Key_W) );
- file.insertItem( "&Quit", tqApp(), SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_Q) );
+ file.insertItem( "&Close", this, TQ_SLOT("closeWindow()"), new TQKeySequence(CTRL+Key_W) );
+ file.insertItem( "&Quit", tqApp(), TQ_SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_Q) );
windowsMenu = new TQPopupMenu( this );
windowsMenu.setCheckable( true );
- connect( windowsMenu, SIGNAL(" aboutToShow()"),
- this, SLOT(" windowsMenuAboutToShow()") );
+ connect( windowsMenu, TQ_SIGNAL(" aboutToShow()"),
+ this, TQ_SLOT(" windowsMenuAboutToShow()") );
menuBar().insertItem( "&Windows", windowsMenu );
menuBar().insertSeparator();
TQPopupMenu help = new TQPopupMenu( this );
menuBar().insertItem( "&Help", help );
- help.insertItem( "&About", this, SLOT("about()"), new TQKeySequence(Key_F1));
- help.insertItem( "About &Qt", this, SLOT("aboutTQt()"));
+ help.insertItem( "&About", this, TQ_SLOT("about()"), new TQKeySequence(Key_F1));
+ help.insertItem( "About &Qt", this, TQ_SLOT("aboutTQt()"));
help.insertSeparator();
- help.insertItem( "What's &This", this, SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1));
+ help.insertItem( "What's &This", this, TQ_SLOT("whatsThis()"), new TQKeySequence(SHIFT+Key_F1));
TQVBox vb = new TQVBox( this );
vb.setFrameStyle( TQFrame.StyledPanel | TQFrame.Sunken );
@@ -189,7 +189,7 @@ ApplicationWindow()
MDIWindow newDoc()
{
MDIWindow w = new MDIWindow( ws, null, WDestructiveClose );
- connect( w, SIGNAL("message(String,int)"), statusBar(), SLOT("message(String,int)") );
+ connect( w, TQ_SIGNAL("message(String,int)"), statusBar(), TQ_SLOT("message(String,int)") );
w.setCaption("unnamed document");
w.setIcon( new TQPixmap("document.xpm") );
// show the very first window in maximized mode
@@ -260,8 +260,8 @@ void aboutTQt()
void windowsMenuAboutToShow()
{
windowsMenu.clear();
- int cascadeId = windowsMenu.insertItem("&Cascade", ws, SLOT("cascade()") );
- int tileId = windowsMenu.insertItem("&Tile", ws, SLOT("tile()") );
+ int cascadeId = windowsMenu.insertItem("&Cascade", ws, TQ_SLOT("cascade()") );
+ int tileId = windowsMenu.insertItem("&Tile", ws, TQ_SLOT("tile()") );
windows = ws.windowList();
if ( windows.size() == 0 ) {
windowsMenu.setItemEnabled( cascadeId, false );
@@ -270,7 +270,7 @@ void windowsMenuAboutToShow()
windowsMenu.insertSeparator();
for ( int i = 0; i < windows.size(); ++i ) {
int id = windowsMenu.insertItem(((TQWidget) windows.get(i)).caption(),
- this, SLOT(" windowsMenuActivated( int )") );
+ this, TQ_SLOT(" windowsMenuActivated( int )") );
windowsMenu.setItemParameter( id, i );
windowsMenu.setItemChecked( id, ws.activeWindow() == windows.get(i) );
}