diff options
Diffstat (limited to 'tdejava/koala/org/trinitydesktop')
36 files changed, 136 insertions, 136 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java b/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java index d2d2ee08..a571d933 100644 --- a/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java +++ b/tdejava/koala/org/trinitydesktop/koala/BrowserExtension.java @@ -220,7 +220,7 @@ public class BrowserExtension extends TQObject { public native void pasteRequest(); /** Returns a map containing the action names as keys and corresponding - SLOT()'ified method names as data entries. + TQ_SLOT()'ified method names as data entries. This is very useful for the host component, when connecting the own signals with the extension's slots. @@ -235,11 +235,11 @@ public class BrowserExtension extends TQObject { iterating over the action slot map, returned by this method) Connecting to the slot can be done like this: <pre> - connect( yourObject, SIGNAL("yourSignal()"), + connect( yourObject, TQ_SIGNAL("yourSignal()"), extension, mapIterator.data() ) </pre> (where "mapIterator" is your TQMap<String,String> iterator) - @short Returns a map containing the action names as keys and corresponding SLOT()'ified method names as data entries. + @short Returns a map containing the action names as keys and corresponding TQ_SLOT()'ified method names as data entries. */ // KParts::BrowserExtension::ActionSlotMap actionSlotMap(); >>>> NOT CONVERTED /** diff --git a/tdejava/koala/org/trinitydesktop/koala/Job.java b/tdejava/koala/org/trinitydesktop/koala/Job.java index 82966174..b0748879 100644 --- a/tdejava/koala/org/trinitydesktop/koala/Job.java +++ b/tdejava/koala/org/trinitydesktop/koala/Job.java @@ -14,8 +14,8 @@ import org.trinitydesktop.qt.TQObject; For all jobs created in an application, the code looks like <pre> TDEIO.Job job = TDEIO.someoperation( some parameters ); - connect( job, SIGNAL("result( TDEIO.Job )"), - this, SLOT("slotResult( TDEIO.Job )") ); + connect( job, TQ_SIGNAL("result( TDEIO.Job )"), + this, TQ_SLOT("slotResult( TDEIO.Job )") ); </pre> (other connects, specific to the job) And slotResult is usually at least: diff --git a/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java b/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java index 69976a68..f41809a6 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java +++ b/tdejava/koala/org/trinitydesktop/koala/KAudioPlayer.java @@ -23,7 +23,7 @@ import org.trinitydesktop.qt.TQObject; If you want to use signals & slots, you can do something like: <pre> KAudioPlayer player("/var/share/foo.wav"); - connect(&button, SIGNAL("clicked()"), &player, SLOT("play()")); + connect(&button, TQ_SIGNAL("clicked()"), &player, TQ_SLOT("play()")); </pre> @short This class provides one-shot-and-forget audio playing. diff --git a/tdejava/koala/org/trinitydesktop/koala/KComboBox.java b/tdejava/koala/org/trinitydesktop/koala/KComboBox.java index 3842db13..87fe2a4f 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KComboBox.java +++ b/tdejava/koala/org/trinitydesktop/koala/KComboBox.java @@ -72,7 +72,7 @@ import org.trinitydesktop.qt.TQComboBox; KComboBox combo = new KComboBox( true, this, "mywidget" ); TDECompletion comp = combo.completionObject(); // Connect to the return pressed signal - optional - connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); + connect(combo,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)")); // Provide the to be completed strings. Note that those are separate from the combo's // contents. comp.insertItems( someArrayList ); @@ -83,7 +83,7 @@ import org.trinitydesktop.qt.TQComboBox; KURLCompletion comp = new KURLCompletion(); combo.setCompletionObject( comp ); // Connect to the return pressed signal - optional - connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); + connect(combo,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)")); </pre> Note that you have to either delete the allocated completion object when you don't need it anymore, or call diff --git a/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java b/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java index d0f7114f..14a31790 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java +++ b/tdejava/koala/org/trinitydesktop/koala/KDirOperator.java @@ -34,14 +34,14 @@ import org.trinitydesktop.qt.TQWidget; <pre> KDirOperator op = new KDirOperator( KURL( "file:/home/gis" ), this ); // some signals you might be interested in - connect(op, SIGNAL("urlEntered(KURL)"), - SLOT("urlEntered(KURL)")); - connect(op, SIGNAL("fileHighlighted(const KFileItem )"), - SLOT("fileHighlighted(const KFileItem )")); - connect(op, SIGNAL("fileSelected(const KFileItem )"), - SLOT("fileSelected(const KFileItem )")); - connect(op, SIGNAL("finishedLoading()"), - SLOT("slotLoadingFinished()")); + connect(op, TQ_SIGNAL("urlEntered(KURL)"), + TQ_SLOT("urlEntered(KURL)")); + connect(op, TQ_SIGNAL("fileHighlighted(const KFileItem )"), + TQ_SLOT("fileHighlighted(const KFileItem )")); + connect(op, TQ_SIGNAL("fileSelected(const KFileItem )"), + TQ_SLOT("fileSelected(const KFileItem )")); + connect(op, TQ_SIGNAL("finishedLoading()"), + TQ_SLOT("slotLoadingFinished()")); op.readConfig( TDEGlobal.config(), "Your KDiroperator ConfigGroup" ); op.setView(KFile.Default); </pre> diff --git a/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java b/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java index 7705bfe0..9be1e6b7 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java +++ b/tdejava/koala/org/trinitydesktop/koala/KEditToolbar.java @@ -31,7 +31,7 @@ import org.trinitydesktop.qt.TQWidget; { saveMainWindowSettings( TDEGlobal.config(), "MainWindow" ); KEditToolbar dlg(actionCollection()); - connect(&dlg,SIGNAL("newToolbarConfig()"),this,SLOT("slotNewToolbarConfig()")); + connect(&dlg,TQ_SIGNAL("newToolbarConfig()"),this,TQ_SLOT("slotNewToolbarConfig()")); dlg.exec(); } void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked @@ -52,7 +52,7 @@ import org.trinitydesktop.qt.TQWidget; <pre> saveMainWindowSettings( TDEGlobal.config(), "MainWindow" ); KEditToolbar dlg(factory()); - connect(&dlg,SIGNAL("newToolbarConfig()"),this,SLOT("slotNewToolbarConfig()")); + connect(&dlg,TQ_SIGNAL("newToolbarConfig()"),this,TQ_SLOT("slotNewToolbarConfig()")); dlg.exec(); void MyClass.slotNewToolbarConfig() // This is called when OK, Apply or Defaults is clicked { diff --git a/tdejava/koala/org/trinitydesktop/koala/KFileDialog.java b/tdejava/koala/org/trinitydesktop/koala/KFileDialog.java index 9dc71540..f0a5c0ae 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KFileDialog.java +++ b/tdejava/koala/org/trinitydesktop/koala/KFileDialog.java @@ -324,7 +324,7 @@ public class KFileDialog extends KDialogBase { items into it, e.g.: <pre> yourAction = new TDEAction( i18n("Your Action"), 0, - this, SLOT("yourSlot()"), + this, TQ_SLOT("yourSlot()"), this, "action name" ); yourAction.plug( tdefileDialog.toolBar() ); </pre> diff --git a/tdejava/koala/org/trinitydesktop/koala/KFind.java b/tdejava/koala/org/trinitydesktop/koala/KFind.java index 518b7586..2231cc6b 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KFind.java +++ b/tdejava/koala/org/trinitydesktop/koala/KFind.java @@ -23,11 +23,11 @@ import org.trinitydesktop.qt.TQObject; m_find = new KFind(pattern, options, this); // Connect highlight signal to code which handles highlighting // of found text. - connect( m_find, SIGNAL("highlight( String, int, int )"), - this, SLOT("slotHighlight( String, int, int )") ); + connect( m_find, TQ_SIGNAL("highlight( String, int, int )"), + this, TQ_SLOT("slotHighlight( String, int, int )") ); // Connect findNext signal - called when pressing the button in the dialog - connect( m_find, SIGNAL("findNext()"), - this, SLOT("slotFindNext()") ); + connect( m_find, TQ_SIGNAL("findNext()"), + this, TQ_SLOT("slotFindNext()") ); </pre> If you are using a non-modal find dialog (the recommended new way in KDE-3.2), you should call right away m_find.closeFindNextDialog(). diff --git a/tdejava/koala/org/trinitydesktop/koala/KFindDialog.java b/tdejava/koala/org/trinitydesktop/koala/KFindDialog.java index 9b0d4aa6..01eeac77 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KFindDialog.java +++ b/tdejava/koala/org/trinitydesktop/koala/KFindDialog.java @@ -30,7 +30,7 @@ import org.trinitydesktop.qt.TQWidget; else { m_findDia = new KFindDialog(false,...); - connect( m_findDia, SIGNAL("okClicked()"), this, SLOT("findTextNext()") ); + connect( m_findDia, TQ_SIGNAL("okClicked()"), this, TQ_SLOT("findTextNext()") ); } </pre> Don't forget to delete and reset m_findDia when closed. diff --git a/tdejava/koala/org/trinitydesktop/koala/KHelpMenu.java b/tdejava/koala/org/trinitydesktop/koala/KHelpMenu.java index 8ea163d4..fea442f8 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KHelpMenu.java +++ b/tdejava/koala/org/trinitydesktop/koala/KHelpMenu.java @@ -23,7 +23,7 @@ import org.trinitydesktop.qt.TQObject; or if you just want to open a dialog box: <pre> mHelpMenu = new KHelpMenu( this, <someText> ); - connect( this, SIGNAL("someSignal()"), mHelpMenu,SLOT("mHelpMenu.aboutKDE()")); + connect( this, TQ_SIGNAL("someSignal()"), mHelpMenu,TQ_SLOT("mHelpMenu.aboutKDE()")); </pre> IMPORTANT: The first time you use KHelpMenu.menu(), a TDEPopupMenu object is @@ -52,8 +52,8 @@ import org.trinitydesktop.qt.TQObject; { .. KHelpMenu helpMenu = new KHelpMenu( this ); - connect( helpMenu, SIGNAL("showAboutApplication()"), - this, SLOT("myDialogSlot()")); + connect( helpMenu, TQ_SIGNAL("showAboutApplication()"), + this, TQ_SLOT("myDialogSlot()")); .. } void MyClass.myDialogSlot() @@ -67,7 +67,7 @@ import org.trinitydesktop.qt.TQObject; { KHelpMenu helpMenu = new KHelpMenu( this ); TDEPopupMenu help = mHelpMenu.menu(); - help.connectItem( KHelpMenu.menuAboutApp, this, SLOT("myDialogSlot()") ); + help.connectItem( KHelpMenu.menuAboutApp, this, TQ_SLOT("myDialogSlot()") ); } void MyClass.myDialogSlot() { diff --git a/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java b/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java index 78507d44..08240f43 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java +++ b/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java @@ -39,8 +39,8 @@ public class KHistoryCombo extends KComboBox { yourself via the slot addToHistory. If you want every item added, use <pre> - connect( combo, SIGNAL("activated( String )"), - combo, SLOT("addToHistory( String )")); + connect( combo, TQ_SIGNAL("activated( String )"), + combo, TQ_SLOT("addToHistory( String )")); </pre> Use TQComboBox.setMaxCount() to limit the history. <code>parent</code> the parent object of this widget. diff --git a/tdejava/koala/org/trinitydesktop/koala/KLineEdit.java b/tdejava/koala/org/trinitydesktop/koala/KLineEdit.java index 1b9bdf95..20ebe775 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KLineEdit.java +++ b/tdejava/koala/org/trinitydesktop/koala/KLineEdit.java @@ -68,7 +68,7 @@ import org.trinitydesktop.qt.TQLineEdit; KLineEdit edit = new KLineEdit( this, "mywidget" ); TDECompletion comp = edit.completionObject(); // Connect to the return pressed signal - optional - connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); + connect(edit,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)")); </pre> To use a customized completion objects or your own completion object : @@ -77,7 +77,7 @@ import org.trinitydesktop.qt.TQLineEdit; KURLCompletion comp = new KURLCompletion(); edit.setCompletionObject( comp ); // Connect to the return pressed signal - optional - connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)")); + connect(edit,TQ_SIGNAL("returnPressed(String)"),comp,TQ_SLOT("addItem(String)")); </pre> Note if you specify your own completion object you have to either delete it when you don't need it anymore, or you can tell KLineEdit to delete it diff --git a/tdejava/koala/org/trinitydesktop/koala/KMdiChildView.java b/tdejava/koala/org/trinitydesktop/koala/KMdiChildView.java index 82a1b005..b13a9669 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KMdiChildView.java +++ b/tdejava/koala/org/trinitydesktop/koala/KMdiChildView.java @@ -60,7 +60,7 @@ import org.trinitydesktop.qt.TQWidget; flags = KMdi.Hide; } // set the accelerators for Toplevel MDI mode (each toplevel window needs its own accels - connect( m_pParent, SIGNAL("childViewIsDetachedNow(TQWidget)"), this, SLOT("initKeyAccel(TQWidget)") ); + connect( m_pParent, TQ_SIGNAL("childViewIsDetachedNow(TQWidget)"), this, TQ_SLOT("initKeyAccel(TQWidget)") ); m_pParent.addWindow( pMDICover, flags); // correct the default settings of KMdi ('cause we haven't a tab order for subwidget focuses) pMDICover.setFirstFocusableChildWidget(null); diff --git a/tdejava/koala/org/trinitydesktop/koala/KRegExpEditorInterface.java b/tdejava/koala/org/trinitydesktop/koala/KRegExpEditorInterface.java index 6fcb3b90..be9bfdb6 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KRegExpEditorInterface.java +++ b/tdejava/koala/org/trinitydesktop/koala/KRegExpEditorInterface.java @@ -33,7 +33,7 @@ import org.trinitydesktop.qt.QtSupport; </pre> Note: signals and slots must be connected to the editorDialog object, not to the editor object: <pre> - connect( editorDialog, SIGNAL("canUndo( boolean )"), undoBut, SLOT("setEnabled( boolean )") ); + connect( editorDialog, TQ_SIGNAL("canUndo( boolean )"), undoBut, TQ_SLOT("setEnabled( boolean )") ); </pre> If you want to create an instance of the editor widget, i.e. not the dialog, then you must do it in the following way: diff --git a/tdejava/koala/org/trinitydesktop/koala/KReplace.java b/tdejava/koala/org/trinitydesktop/koala/KReplace.java index 8494d57e..bce94d7c 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KReplace.java +++ b/tdejava/koala/org/trinitydesktop/koala/KReplace.java @@ -22,14 +22,14 @@ import org.trinitydesktop.qt.TQWidget; m_replace = new KReplace(pattern, replacement, options, this); // Connect signals to code which handles highlighting // of found text, and on-the-fly replacement. - connect( m_replace, SIGNAL("highlight( String, int, int )"), - this, SLOT("slotHighlight( String, int, int )") ); + connect( m_replace, TQ_SIGNAL("highlight( String, int, int )"), + this, TQ_SLOT("slotHighlight( String, int, int )") ); // Connect findNext signal - called when pressing the button in the dialog - connect( m_replace, SIGNAL("findNext()"), - this, SLOT("slotReplaceNext()") ); + connect( m_replace, TQ_SIGNAL("findNext()"), + this, TQ_SLOT("slotReplaceNext()") ); // Connect replace signal - called when doing a replacement - connect( m_replace, SIGNAL("replace(String, int, int, int)"), - this, SLOT("slotReplace(String, int, int, int)") ); + connect( m_replace, TQ_SIGNAL("replace(String, int, int, int)"), + this, TQ_SLOT("slotReplace(String, int, int, int)") ); </pre> Then initialize the variables determining the "current position" (to the cursor, if the option FromCursor is set, diff --git a/tdejava/koala/org/trinitydesktop/koala/KScanDialog.java b/tdejava/koala/org/trinitydesktop/koala/KScanDialog.java index 3ef8525d..88683ccc 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KScanDialog.java +++ b/tdejava/koala/org/trinitydesktop/koala/KScanDialog.java @@ -21,8 +21,8 @@ import org.trinitydesktop.qt.TQWidget; m_scanDialog = KScanDialog.getScanDialog( this, "scandialog" ); if ( !m_scanDialog ) // no scanning support installed? return; - connect( m_scanDialog, SIGNAL("finalImage( TQImage, int )"), - SLOT("slotScanned( TQImage, int )")); + connect( m_scanDialog, TQ_SIGNAL("finalImage( TQImage, int )"), + TQ_SLOT("slotScanned( TQImage, int )")); } if ( m_scanDialog.setup() ) // only if scanner configured/available m_scanDialog.show(); diff --git a/tdejava/koala/org/trinitydesktop/koala/KStdAction.java b/tdejava/koala/org/trinitydesktop/koala/KStdAction.java index da3d582f..8a2085f8 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KStdAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/KStdAction.java @@ -22,11 +22,11 @@ import org.trinitydesktop.qt.TQWidget; <pre> TDEAction newAct = new TDEAction(i18n("&New"), TQIconSet(BarIcon("filenew")), TDEStdAccel.shortcut(TDEStdAccel.New), this, - SLOT("fileNew()"), actionCollection()); + TQ_SLOT("fileNew()"), actionCollection()); </pre> You could drop that and replace it with: <pre> - TDEAction newAct = KStdAction.openNew(this, SLOT("fileNew()"), + TDEAction newAct = KStdAction.openNew(this, TQ_SLOT("fileNew()"), actionCollection()); </pre> <li><b>Non-standard Usages</b></li> @@ -47,7 +47,7 @@ import org.trinitydesktop.qt.TQWidget; However, you can change the internal name. In this example, just do something like: <pre> - KStdAction.cut(this, SLOT("editCut()"), actionCollection(), "my_cut"); + KStdAction.cut(this, TQ_SLOT("editCut()"), actionCollection(), "my_cut"); </pre> Now, in your local XML resource file (e.g., yourappui.rc), simply put 'my_cut' where you want it to go. @@ -61,13 +61,13 @@ import org.trinitydesktop.qt.TQWidget; </pre> Another non-standard usage concerns instantiating the action in the first place. Usually, you would use the member functions as - shown above (e.g., KStdAction.cut(this, SLOT, parent)). You + shown above (e.g., KStdAction.cut(this, TQ_SLOT, parent)). You may, however, do this using the enums provided. This author can't think of a reason why you would want to, but, hey, if you do, here's how: <pre> - KStdAction.action(KStdAction.New, this, SLOT("fileNew()"), actionCollection()); - KStdAction.action(KStdAction.Cut, this, SLOT("editCut()"), actionCollection()); + KStdAction.action(KStdAction.New, this, TQ_SLOT("fileNew()"), actionCollection()); + KStdAction.action(KStdAction.Cut, this, TQ_SLOT("editCut()"), actionCollection()); </pre> @author Kurt Granroth <granroth@kde.org> @@ -179,7 +179,7 @@ public class KStdAction { Open a recently used document. The signature of the slot being called is of the form slotURLSelected( KURL ). @param recvr object to receive slot - @param slot The SLOT to invoke when a URL is selected. The slot's + @param slot The slot to invoke when a URL is selected. The slot's signature is slotURLSelected( KURL ). @param parent parent widget @param name name of widget @@ -476,7 +476,7 @@ public class KStdAction { /** Display the configure key bindings dialog. Note that you might be able to use the pre-built KXMLGUIFactory's fuction: - KStdAction.keyBindings(guiFactory(), SLOT("configureShortcuts()"), actionCollection()); + KStdAction.keyBindings(guiFactory(), TQ_SLOT("configureShortcuts()"), actionCollection()); @short Display the configure key bindings dialog. */ public static native TDEAction keyBindings(TQObject recvr, String slot, TDEActionCollection parent, String name); diff --git a/tdejava/koala/org/trinitydesktop/koala/KURLLabel.java b/tdejava/koala/org/trinitydesktop/koala/KURLLabel.java index acba0f8d..2e54b39e 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KURLLabel.java +++ b/tdejava/koala/org/trinitydesktop/koala/KURLLabel.java @@ -27,8 +27,8 @@ import org.trinitydesktop.qt.TQLabel; KURLLabel address = new KURLLabel(this); address.setText("My homepage"); address.setURL("http://www.home.com/~me"); - connect(address, SIGNAL("leftClickedURL(String)"), - SLOT("processMyURL(String)")); + connect(address, TQ_SIGNAL("leftClickedURL(String)"), + TQ_SLOT("processMyURL(String)")); </pre> In this example, the text "My homepage" would be displayed as blue, underlined text. When the mouse passed over it, diff --git a/tdejava/koala/org/trinitydesktop/koala/KXMLGUIFactory.java b/tdejava/koala/org/trinitydesktop/koala/KXMLGUIFactory.java index 153ae1db..1551fd6a 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KXMLGUIFactory.java +++ b/tdejava/koala/org/trinitydesktop/koala/KXMLGUIFactory.java @@ -127,7 +127,7 @@ public class KXMLGUIFactory extends TQObject { This slot can be connected dirrectly to the action to configure shortcuts. This is very simple to do that by adding a single line <pre> - KStdAction.keyBindings( guiFactory(), SLOT("configureShortcuts()"), actionCollection() ); + KStdAction.keyBindings( guiFactory(), TQ_SLOT("configureShortcuts()"), actionCollection() ); </pre> @param bAllowLetterShortcuts Set to false if unmodified alphanumeric keys ('A', '1', etc.) are not permissible shortcuts. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEAccel.java b/tdejava/koala/org/trinitydesktop/koala/TDEAccel.java index 9bb4a0a7..f217325f 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEAccel.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEAccel.java @@ -42,9 +42,9 @@ import org.trinitydesktop.qt.TQAccel; // Insert an action "Scroll Up" which is associated with the "Up" key: pAccel.insert( "Scroll Up", i18n("Scroll up"), i18n("Scroll up the current document by one line."), - Qt.Key_Up, this, SLOT("slotScrollUp()") ); + Qt.Key_Up, this, TQ_SLOT("slotScrollUp()") ); // Insert an standard acclerator action. - pAccel.insert( TDEStdAccel.Print, this, SLOT("slotPrint()") ); + pAccel.insert( TDEStdAccel.Print, this, TQ_SLOT("slotPrint()") ); // Update the shortcuts by read any user-defined settings from the // application's config file. pAccel.readSettings(); @@ -134,7 +134,7 @@ public class TDEAccel extends TQAccel { insert( "Do Something", i18n("Do Something"), i18n("This action allows you to do something really great with this program to " "the currently open document."), - ALT+Key_D, this, SLOT("slotDoSomething()") ); + ALT+Key_D, this, TQ_SLOT("slotDoSomething()") ); </pre> @param sAction The internal name of the action. @param sLabel An i18n'ized short description of the action displayed when @@ -164,7 +164,7 @@ public class TDEAccel extends TQAccel { of the action as for the user-visible label. Usage: <pre> - insert( i18n("Do Something"), ALT+Key_D, this, SLOT("slotDoSomething()") ); + insert( i18n("Do Something"), ALT+Key_D, this, TQ_SLOT("slotDoSomething()") ); </pre> @param psAction The name AND label of the action. @param cutDef The default shortcut for this action. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEAction.java b/tdejava/koala/org/trinitydesktop/koala/TDEAction.java index 3e6abfc2..1120265e 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEAction.java @@ -56,11 +56,11 @@ import org.trinitydesktop.qt.TQObject; TQSignalMapper . A tiny example: <pre> TQSignalMapper desktopNumberMapper = new TQSignalMapper( this ); - connect( desktopNumberMapper, SIGNAL("mapped( int )"), - this, SLOT("moveWindowToDesktop( int )") ); + connect( desktopNumberMapper, TQ_SIGNAL("mapped( int )"), + this, TQ_SLOT("moveWindowToDesktop( int )") ); for ( uint i = 0; i < numberOfDesktops; ++i ) { TDEAction desktopAction = new TDEAction( i18n( "Move Window to Desktop %i" ).arg( i ), ... ); - connect( desktopAction, SIGNAL("activated()"), desktopNumberMapper, SLOT("map()") ); + connect( desktopAction, TQ_SIGNAL("activated()"), desktopNumberMapper, TQ_SLOT("map()") ); desktopNumberMapper.setMapping( desktopAction, i ); } </pre> @@ -85,7 +85,7 @@ import org.trinitydesktop.qt.TQObject; <pre> TDEAction newAct = new TDEAction(i18n("&New"), "filenew", TDEStdAccel.shortcut(TDEStdAccel.New), - this, SLOT("fileNew()"), + this, TQ_SLOT("fileNew()"), actionCollection(), "new"); </pre> This line creates our action. It says that wherever this action is @@ -157,7 +157,7 @@ public class TDEAction extends TQObject { public native String className(); /** Constructs an action with text, potential keyboard - shortcut, and a SLOT to call when this action is invoked by + shortcut, and a slot to call when this action is invoked by the user. If you do not want or have a keyboard shortcut, set the <code>cut</code> param to 0. @@ -167,11 +167,11 @@ public class TDEAction extends TQObject { plugged in a toolbar...). @param text The text that will be displayed. @param cut The corresponding keyboard shortcut. - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. - @short Constructs an action with text, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user. + @short Constructs an action with text, potential keyboard shortcut, and a slot to call when this action is invoked by the user. */ public TDEAction(String text, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) { super((Class) null); @@ -180,7 +180,7 @@ public class TDEAction extends TQObject { private native void newTDEAction(String text, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name); /** Constructs an action with text, icon, potential keyboard - shortcut, and a SLOT to call when this action is invoked by + shortcut, and a slot to call when this action is invoked by the user. If you do not want or have a keyboard shortcut, set the <code>cut</code> param to 0. @@ -189,11 +189,11 @@ public class TDEAction extends TQObject { @param text The text that will be displayed. @param pix The icon to display. @param cut The corresponding keyboard shortcut. - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. - @short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user. + @short Constructs an action with text, icon, potential keyboard shortcut, and a slot to call when this action is invoked by the user. */ public TDEAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) { super((Class) null); @@ -202,7 +202,7 @@ public class TDEAction extends TQObject { private native void newTDEAction(String text, TQIconSet pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name); /** Constructs an action with text, icon, potential keyboard - shortcut, and a SLOT to call when this action is invoked by + shortcut, and a slot to call when this action is invoked by the user. The icon is loaded on demand later based on where it is plugged in. If you do not want or have a keyboard shortcut, set the @@ -212,11 +212,11 @@ public class TDEAction extends TQObject { @param text The text that will be displayed. @param pix The icon to display. @param cut The corresponding keyboard shortcut (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. - @short Constructs an action with text, icon, potential keyboard shortcut, and a SLOT to call when this action is invoked by the user. + @short Constructs an action with text, icon, potential keyboard shortcut, and a slot to call when this action is invoked by the user. */ public TDEAction(String text, String pix, TDEShortcut cut, TQObject receiver, String slot, TDEActionCollection parent, String name) { super((Class) null); @@ -228,8 +228,8 @@ public class TDEAction extends TQObject { the text and icon. @param item The KGuiItem with the label and (optional) icon. @param cut The corresponding keyboard shortcut (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short The same as the above constructor, but with a KGuiItem providing the text and icon. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEActionCollection.java b/tdejava/koala/org/trinitydesktop/koala/TDEActionCollection.java index 0b80feb1..e8ac3cc1 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEActionCollection.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEActionCollection.java @@ -19,10 +19,10 @@ import org.trinitydesktop.qt.TQObject; a statusbar, do: <pre> actionCollection().setHighlightingEnabled(true); - connect(actionCollection(), SIGNAL("actionStatusText( String )"), - statusBar(), SLOT("message( String )") ); - connect(actionCollection(), SIGNAL("clearStatusText()"), - statusBar(), SLOT("clear()") ); + connect(actionCollection(), TQ_SIGNAL("actionStatusText( String )"), + statusBar(), TQ_SLOT("message( String )") ); + connect(actionCollection(), TQ_SIGNAL("clearStatusText()"), + statusBar(), TQ_SLOT("clear()") ); </pre> See {@link TDEActionCollectionSignals} for signals emitted by TDEActionCollection @short A managed set of TDEAction objects. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java b/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java index 786251b1..9a158da8 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java @@ -602,7 +602,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac If the widget with focus provides a cut() slot, call that slot. Thus for a simple application cut can be implemented as: <pre> - KStdAction.cut( kapp, SLOT("cut()"), actionCollection() ); + KStdAction.cut( kapp, TQ_SLOT("cut()"), actionCollection() ); </pre> @short If the widget with focus provides a cut() slot, call that slot. */ @@ -611,7 +611,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac If the widget with focus provides a copy() slot, call that slot. Thus for a simple application copy can be implemented as: <pre> - KStdAction.copy( kapp, SLOT("copy()"), actionCollection() ); + KStdAction.copy( kapp, TQ_SLOT("copy()"), actionCollection() ); </pre> @short If the widget with focus provides a copy() slot, call that slot. */ @@ -620,7 +620,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac If the widget with focus provides a paste() slot, call that slot. Thus for a simple application copy can be implemented as: <pre> - KStdAction.paste( kapp, SLOT("paste()"), actionCollection() ); + KStdAction.paste( kapp, TQ_SLOT("paste()"), actionCollection() ); </pre> @short If the widget with focus provides a paste() slot, call that slot. */ @@ -629,7 +629,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac If the widget with focus provides a clear() slot, call that slot. Thus for a simple application clear() can be implemented as: <pre> - new TDEAction( i18n( "Clear" ), "editclear", 0, kapp, SLOT("clear()"), actionCollection(), "clear" ); + new TDEAction( i18n( "Clear" ), "editclear", 0, kapp, TQ_SLOT("clear()"), actionCollection(), "clear" ); </pre> Note that for some widgets, this may not provide the intended bahavior. For example if you make use of the code above and a TDEListView has the focus, clear() @@ -651,7 +651,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac If the widget with focus provides a selectAll() slot, call that slot. Thus for a simple application select all can be implemented as: <pre> - KStdAction.selectAll( kapp, SLOT("selectAll()"), actionCollection() ); + KStdAction.selectAll( kapp, TQ_SLOT("selectAll()"), actionCollection() ); </pre> @short If the widget with focus provides a selectAll() slot, call that slot. */ @@ -988,19 +988,19 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac /** This method is used internally to determine which edit slots are implemented by the widget that has the focus, and to invoke those slots if available. - @param slot is the slot as returned using the SLOT() macro, for example SLOT("cut()") + @param slot is the slot as returned using the TQ_SLOT() macro, for example TQ_SLOT("cut()") This method can be used in TDEApplication subclasses to implement application wide edit actions not supported by the TDEApplication class. For example (in your subclass): <pre> void MyApplication.deselect() { - invokeEditSlot( SLOT("deselect()") ); + invokeEditSlot( TQ_SLOT("deselect()") ); } </pre> Now in your application calls to MyApplication.deselect() will call this slot on the focused widget if it provides this slot. You can combine this with TDEAction with: <pre> - KStdAction.deselect( (MyApplication)( kapp ), SLOT("cut()"), actionCollection() ); + KStdAction.deselect( (MyApplication)( kapp ), TQ_SLOT("cut()"), actionCollection() ); </pre> @short This method is used internally to determine which edit slots are implemented by the widget that has the focus, and to invoke those slots if available. @see #cut diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEGlobalAccel.java b/tdejava/koala/org/trinitydesktop/koala/TDEGlobalAccel.java index 0ae7a2d0..25823377 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEGlobalAccel.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEGlobalAccel.java @@ -54,7 +54,7 @@ public class TDEGlobalAccel extends TQObject { insert( "Do Something", i18n("Do Something"), i18n("This action allows you to do something really great with this program to " "the currently open document."), - ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, SLOT("slotDoSomething()") ); + ALT+CTRL+Key_Q, KKey.QtWIN+CTRL+Key_Q, this, TQ_SLOT("slotDoSomething()") ); </pre> @param sAction The internal name of the action. @param sLabel An i18n'ized short description of the action displayed when diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEListAction.java b/tdejava/koala/org/trinitydesktop/koala/TDEListAction.java index f79e8a67..d74a7fe4 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEListAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEListAction.java @@ -49,8 +49,8 @@ public class TDEListAction extends TDESelectAction { /** @param text The text that will be displayed. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -125,8 +125,8 @@ public class TDEListAction extends TDESelectAction { @param text The text that will be displayed. @param pix The icons that go with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -145,8 +145,8 @@ public class TDEListAction extends TDESelectAction { @param text The text that will be displayed. @param pix The dynamically loaded icon that goes with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java b/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java index 405621c9..2e2dc69a 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java @@ -405,8 +405,8 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa this function) a connection needs to be made to let TDEMainWindow know when that status (hidden/shown) of the statusbar has changed. For example: - connect(action, SIGNAL("activated()"), - tdemainwindow, SLOT("setSettingsDirty()")); + connect(action, TQ_SIGNAL("activated()"), + tdemainwindow, TQ_SLOT("setSettingsDirty()")); Otherwise the status (hidden/show) of the statusbar might not be saved by TDEMainWindow. @short Sets whether TDEMainWindow should provide a menu that allows showing/hiding of the statusbar ( using TDEToggleStatusBarAction ). @@ -470,7 +470,7 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa This slot can be connected dirrectly to the action to configure shortcuts. This is very simple to do that by adding a single line <pre> - KStdAction.configureToolbars( guiFactory(), SLOT("configureToolbars()"), + KStdAction.configureToolbars( guiFactory(), TQ_SLOT("configureToolbars()"), actionCollection() ); </pre> @short Show a standard configure toolbar dialog. @@ -513,8 +513,8 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa <pre> TDEIconLoader &loader = TDEGlobal.iconLoader(); TQPixmap pixmap = loader.loadIcon( "help" ); - toolBar(0).insertButton( pixmap, 0, SIGNAL("clicked()"), - this, SLOT("appHelpActivated()"), true, i18n("Help") ); + toolBar(0).insertButton( pixmap, 0, TQ_SIGNAL("clicked()"), + this, TQ_SLOT("appHelpActivated()"), true, i18n("Help") ); </pre> @short Open the help page for the application. */ diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEPasteTextAction.java b/tdejava/koala/org/trinitydesktop/koala/TDEPasteTextAction.java index 8cab5d46..92477a98 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEPasteTextAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEPasteTextAction.java @@ -30,8 +30,8 @@ public class TDEPasteTextAction extends TDEAction { @param text The text that will be displayed. @param icon The icon to display. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's owner. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's owner. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short Create a TDEPasteTextAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEProcess.java b/tdejava/koala/org/trinitydesktop/koala/TDEProcess.java index 64299b40..b2acf209 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEProcess.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEProcess.java @@ -61,8 +61,8 @@ import org.trinitydesktop.qt.TQObject; TDEProcess proc = new TDEProcess; proc << "my_executable"; proc << "These" << "are" << "the" << "command" << "line" << "args"; - TQApplication.connect(proc, SIGNAL("processExited(TDEProcess )"), - pointer_to_my_object, SLOT("my_objects_slot(TDEProcess )")); + TQApplication.connect(proc, TQ_SIGNAL("processExited(TDEProcess )"), + pointer_to_my_object, TQ_SLOT("my_objects_slot(TDEProcess )")); proc.start(); </pre> This will start "my_executable" with the commandline arguments "These"... diff --git a/tdejava/koala/org/trinitydesktop/koala/TDERadioAction.java b/tdejava/koala/org/trinitydesktop/koala/TDERadioAction.java index 62972c44..e01bd06b 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDERadioAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDERadioAction.java @@ -51,8 +51,8 @@ public class TDERadioAction extends TDEToggleAction { /** @param text The text that will be displayed. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -127,8 +127,8 @@ public class TDERadioAction extends TDEToggleAction { @param text The text that will be displayed. @param pix The icons that go with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -147,8 +147,8 @@ public class TDERadioAction extends TDEToggleAction { @param text The text that will be displayed. @param pix The dynamically loaded icon that goes with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short diff --git a/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java b/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java index 973b9a78..12a661d0 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDERecentFilesAction.java @@ -50,8 +50,8 @@ public class TDERecentFilesAction extends TDEListAction { /** @param text The text that will be displayed. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke when a URL is selected. + @param receiver The slot's parent. + @param slot The slot to invoke when a URL is selected. Its signature is of the form slotURLSelected( KURL ). @param parent This action's parent. @param name An internal name for this action. @@ -125,8 +125,8 @@ public class TDERecentFilesAction extends TDEListAction { @param text The text that will be displayed. @param pix The icons that go with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke when a URL is selected. + @param receiver The slot's parent. + @param slot The slot to invoke when a URL is selected. Its signature is of the form slotURLSelected( KURL ). @param parent This action's parent. @param name An internal name for this action. @@ -152,8 +152,8 @@ public class TDERecentFilesAction extends TDEListAction { @param text The text that will be displayed. @param pix The dynamically loaded icon that goes with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke when a URL is selected. + @param receiver The slot's parent. + @param slot The slot to invoke when a URL is selected. Its signature is of the form slotURLSelected( KURL ). @param parent This action's parent. @param name An internal name for this action. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDESelectAction.java b/tdejava/koala/org/trinitydesktop/koala/TDESelectAction.java index 4f29869c..bdf93d4f 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDESelectAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDESelectAction.java @@ -59,8 +59,8 @@ public class TDESelectAction extends TDEAction { /** @param text The text that will be displayed. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -135,8 +135,8 @@ public class TDESelectAction extends TDEAction { @param text The text that will be displayed. @param pix The icons that go with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -155,8 +155,8 @@ public class TDESelectAction extends TDEAction { @param text The text that will be displayed. @param pix The dynamically loaded icon that goes with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEShortcut.java b/tdejava/koala/org/trinitydesktop/koala/TDEShortcut.java index 9ed6a020..82a5a8e5 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEShortcut.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEShortcut.java @@ -15,7 +15,7 @@ import org.trinitydesktop.qt.QtSupport; This can be used to add additional accelerators to a TDEAction. For example, the below code binds the escape key to the close action. <pre> - TDEAction closeAction = KStdAction.close( this, SLOT("close()"), actionCollection() ); + TDEAction closeAction = KStdAction.close( this, TQ_SLOT("close()"), actionCollection() ); TDEShortcut closeShortcut = closeAction.shortcut(); closeShortcut.append( KKey(Key_Escape)); closeAction.setShortcut(closeShortcut); diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEToggleAction.java b/tdejava/koala/org/trinitydesktop/koala/TDEToggleAction.java index 241d4357..e698d422 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEToggleAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEToggleAction.java @@ -53,8 +53,8 @@ public class TDEToggleAction extends TDEAction { /** @param text The text that will be displayed. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -129,8 +129,8 @@ public class TDEToggleAction extends TDEAction { @param text The text that will be displayed. @param pix The icons that go with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short @@ -149,8 +149,8 @@ public class TDEToggleAction extends TDEAction { @param text The text that will be displayed. @param pix The dynamically loaded icon that goes with this action. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEToggleFullScreenAction.java b/tdejava/koala/org/trinitydesktop/koala/TDEToggleFullScreenAction.java index 91232c20..386b22ce 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEToggleFullScreenAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEToggleFullScreenAction.java @@ -29,8 +29,8 @@ public class TDEToggleFullScreenAction extends TDEToggleAction { /** Create a TDEToggleFullScreenAction @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's parent. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's parent. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param window the window that will switch to/from full screen mode @param name An internal name for this action. diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEToolBar.java b/tdejava/koala/org/trinitydesktop/koala/TDEToolBar.java index 2c1db2ad..684297ff 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEToolBar.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEToolBar.java @@ -449,8 +449,8 @@ public class TDEToolBar extends TQToolBar { You will insert a normal button with connection (or use signals from toolbar): <pre> - bar.insertButton(icon, id, SIGNAL("clicked ()"), this, - SLOT (slotClick()), true, "click or wait for popup"); + bar.insertButton(icon, id, TQ_SIGNAL("clicked ()"), this, + TQ_SLOT (slotClick()), true, "click or wait for popup"); </pre> And then add a delayed popup: <pre> diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEToolBarPopupAction.java b/tdejava/koala/org/trinitydesktop/koala/TDEToolBarPopupAction.java index b35991f9..2d0b5fa0 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEToolBarPopupAction.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEToolBarPopupAction.java @@ -59,8 +59,8 @@ public class TDEToolBarPopupAction extends TDEAction { @param text The text that will be displayed. @param icon The icon to display. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's owner. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's owner. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short Create a TDEToolBarPopupAction, with a text, an icon, an accelerator, a slot connected to the action, parent and name. @@ -83,8 +83,8 @@ public class TDEToolBarPopupAction extends TDEAction { <code>cut</code> param to 0. @param item The text and icon that will be displayed. @param cut The corresponding keyboard accelerator (shortcut). - @param receiver The SLOT's owner. - @param slot The SLOT to invoke to execute this action. + @param receiver The slot's owner. + @param slot The slot to invoke to execute this action. @param parent This action's parent. @param name An internal name for this action. @short Create a TDEToolBarPopupAction, with a KGuiItem, an accelerator, a slot connected to the action, parent and name. |