diff options
Diffstat (limited to 'qtjava/javalib/examples/helpviewer/HelpWindow.java')
-rw-r--r-- | qtjava/javalib/examples/helpviewer/HelpWindow.java | 60 |
1 files changed, 30 insertions, 30 deletions
diff --git a/qtjava/javalib/examples/helpviewer/HelpWindow.java b/qtjava/javalib/examples/helpviewer/HelpWindow.java index c5e4ff7a..006a4722 100644 --- a/qtjava/javalib/examples/helpviewer/HelpWindow.java +++ b/qtjava/javalib/examples/helpviewer/HelpWindow.java @@ -42,26 +42,26 @@ HelpWindow( String home_, String _path, browser.mimeSourceFactory().setFilePath( new String[] { _path } ); browser.setFrameStyle( TQFrame.Panel | TQFrame.Sunken ); - connect( browser, SIGNAL(" textChanged()"), - this, SLOT(" textChanged()") ); + connect( browser, TQ_SIGNAL(" textChanged()"), + this, TQ_SLOT(" textChanged()") ); setCentralWidget( browser ); if ( !home_.equals("") ) browser.setSource( home_ ); - connect( browser, SIGNAL(" highlighted( String)"), - statusBar(), SLOT(" message( String)") ); + connect( browser, TQ_SIGNAL(" highlighted( String)"), + statusBar(), TQ_SLOT(" message( String)") ); resize( 640,700 ); TQPopupMenu file = new TQPopupMenu( this ); - file.insertItem( tr("&New Window"), this, SLOT(" newWindow()"), new TQKeySequence(CTRL+Key_N) ); - file.insertItem( tr("&Open File"), this, SLOT(" openFile()"), new TQKeySequence(CTRL+Key_O) ); - file.insertItem( tr("&Print"), this, SLOT(" print()"), new TQKeySequence(CTRL+Key_P) ); + file.insertItem( tr("&New Window"), this, TQ_SLOT(" newWindow()"), new TQKeySequence(CTRL+Key_N) ); + file.insertItem( tr("&Open File"), this, TQ_SLOT(" openFile()"), new TQKeySequence(CTRL+Key_O) ); + file.insertItem( tr("&Print"), this, TQ_SLOT(" print()"), new TQKeySequence(CTRL+Key_P) ); file.insertSeparator(); - file.insertItem( tr("&Close"), this, SLOT(" close()"), new TQKeySequence(CTRL+Key_Q) ); - file.insertItem( tr("E&xit"), tqApp(), SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_X) ); + file.insertItem( tr("&Close"), this, TQ_SLOT(" close()"), new TQKeySequence(CTRL+Key_Q) ); + file.insertItem( tr("E&xit"), tqApp(), TQ_SLOT(" closeAllWindows()"), new TQKeySequence(CTRL+Key_X) ); // The same three icons are used twice each. TQIconSet icon_back = new TQIconSet( new TQPixmap("back.xpm") ); @@ -70,16 +70,16 @@ HelpWindow( String home_, String _path, TQPopupMenu go = new TQPopupMenu( this ); backwardId = go.insertItem( icon_back, - tr("&Backward"), browser, SLOT(" backward()"), + tr("&Backward"), browser, TQ_SLOT(" backward()"), new TQKeySequence(CTRL+Key_Left) ); forwardId = go.insertItem( icon_forward, - tr("&Forward"), browser, SLOT(" forward()"), + tr("&Forward"), browser, TQ_SLOT(" forward()"), new TQKeySequence(CTRL+Key_Right) ); - go.insertItem( icon_home, tr("&Home"), browser, SLOT(" home()") ); + go.insertItem( icon_home, tr("&Home"), browser, TQ_SLOT(" home()") ); TQPopupMenu help = new TQPopupMenu( this ); - help.insertItem( tr("&About ..."), this, SLOT(" about()") ); - help.insertItem( tr("About &Qt ..."), this, SLOT(" aboutTQt()") ); + help.insertItem( tr("&About ..."), this, TQ_SLOT(" about()") ); + help.insertItem( tr("About &Qt ..."), this, TQ_SLOT(" aboutTQt()") ); hist = new TQPopupMenu( this ); Iterator it = history.iterator(); @@ -87,11 +87,11 @@ HelpWindow( String home_, String _path, String item = (String) it.next(); mHistory.put(new Integer(hist.insertItem( item )), item); } - connect( hist, SIGNAL(" activated( int )"), - this, SLOT(" histChosen( int )") ); + connect( hist, TQ_SIGNAL(" activated( int )"), + this, TQ_SLOT(" histChosen( int )") ); bookm = new TQPopupMenu( this ); - bookm.insertItem( tr( "Add Bookmark" ), this, SLOT(" addBookmark()") ); + bookm.insertItem( tr( "Add Bookmark" ), this, TQ_SLOT(" addBookmark()") ); bookm.insertSeparator(); Iterator it2 = bookmarks.iterator(); @@ -99,8 +99,8 @@ HelpWindow( String home_, String _path, String item = (String) it2.next(); mBookmarks.put(new Integer(bookm.insertItem( item )), item); } - connect( bookm, SIGNAL(" activated( int )"), - this, SLOT(" bookmChosen( int )") ); + connect( bookm, TQ_SIGNAL(" activated( int )"), + this, TQ_SLOT(" bookmChosen( int )") ); menuBar().insertItem( tr("&File"), file ); menuBar().insertItem( tr("&Go"), go ); @@ -111,29 +111,29 @@ HelpWindow( String home_, String _path, menuBar().setItemEnabled( forwardId, false); menuBar().setItemEnabled( backwardId, false); - connect( browser, SIGNAL(" backwardAvailable( boolean )"), - this, SLOT(" setBackwardAvailable( boolean )") ); - connect( browser, SIGNAL(" forwardAvailable( boolean )"), - this, SLOT(" setForwardAvailable( boolean )") ); + connect( browser, TQ_SIGNAL(" backwardAvailable( boolean )"), + this, TQ_SLOT(" setBackwardAvailable( boolean )") ); + connect( browser, TQ_SIGNAL(" forwardAvailable( boolean )"), + this, TQ_SLOT(" setForwardAvailable( boolean )") ); TQToolBar toolbar = new TQToolBar( this ); addToolBar( toolbar, "Toolbar"); TQToolButton button; - button = new TQToolButton( icon_back, tr("Backward"), "", browser, SLOT("backward()"), toolbar ); - connect( browser, SIGNAL(" backwardAvailable(boolean)"), button, SLOT(" setEnabled(boolean)") ); + button = new TQToolButton( icon_back, tr("Backward"), "", browser, TQ_SLOT("backward()"), toolbar ); + connect( browser, TQ_SIGNAL(" backwardAvailable(boolean)"), button, TQ_SLOT(" setEnabled(boolean)") ); button.setEnabled( false ); - button = new TQToolButton( icon_forward, tr("Forward"), "", browser, SLOT("forward()"), toolbar ); - connect( browser, SIGNAL(" forwardAvailable(boolean)"), button, SLOT(" setEnabled(boolean)") ); + button = new TQToolButton( icon_forward, tr("Forward"), "", browser, TQ_SLOT("forward()"), toolbar ); + connect( browser, TQ_SIGNAL(" forwardAvailable(boolean)"), button, TQ_SLOT(" setEnabled(boolean)") ); button.setEnabled( false ); - button = new TQToolButton( icon_home, tr("Home"), "", browser, SLOT("home()"), toolbar ); + button = new TQToolButton( icon_home, tr("Home"), "", browser, TQ_SLOT("home()"), toolbar ); toolbar.addSeparator(); pathCombo = new TQComboBox( true, toolbar ); - connect( pathCombo, SIGNAL(" activated( String )"), - this, SLOT(" pathSelected( String )") ); + connect( pathCombo, TQ_SIGNAL(" activated( String )"), + this, TQ_SLOT(" pathSelected( String )") ); toolbar.setStretchableWidget( pathCombo ); setRightJustification( true ); setDockEnabled( DockLeft, false ); |