diff options
| author | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-20 15:36:59 +0900 |
|---|---|---|
| committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2025-01-29 13:49:22 +0900 |
| commit | 8f0cf8a008255452877f8fa4af3be42944b17832 (patch) | |
| tree | 5938f4432b3a60a5fb26004073304416f76475e7 /tdejava/koala/org | |
| parent | 2970364170ffb0fe4d5704dda57053f3c0509e4f (diff) | |
| download | tdebindings-8f0cf8a008255452877f8fa4af3be42944b17832.tar.gz tdebindings-8f0cf8a008255452877f8fa4af3be42944b17832.zip | |
Use tdeApp
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdejava/koala/org')
9 files changed, 23 insertions, 23 deletions
diff --git a/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java b/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java index bc0ff769..5d5c8500 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java +++ b/tdejava/koala/org/trinitydesktop/koala/KDCOPActionProxy.java @@ -49,7 +49,7 @@ public class KDCOPActionProxy extends DCOPObjectProxy { This class automatically takes care of processing DCOP object requests for the returned object id. You can construct a global DCOP object referenence using DCOPRef. For example like - DCOPRef( kapp.dcopClient().appId, actionProxy.actionObjectId( actionName ) ); + DCOPRef( tdeApp.dcopClient().appId, actionProxy.actionObjectId( actionName ) ); The action with the given name has to be available through the #action method. @short Use this method to retrieve a DCOP object id for an action with the given name. */ @@ -58,7 +58,7 @@ public class KDCOPActionProxy extends DCOPObjectProxy { Returns a map of all exported actions, with the action name as keys and a global DCOP reference as data entries. The appId argument is used to specify the appid component of the DCOP reference. By default the - global application id is used ( kapp.dcopClient().appId() ) . + global application id is used ( tdeApp.dcopClient().appId() ) . @short Returns a map of all exported actions, with the action name as keys and a global DCOP reference as data entries. */ // TQMap<TQCString, DCOPRef> actionMap(const TQCString& arg1); >>>> NOT CONVERTED diff --git a/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java b/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java index d5c497fd..e137c1cb 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java +++ b/tdejava/koala/org/trinitydesktop/koala/KDCOPServiceStarter.java @@ -49,7 +49,7 @@ public class KDCOPServiceStarter implements QtSupport { Find an implementation of the given <code>serviceType</code>, and start it, to use its DCOP interface. The default implementation uses TDETrader to find the preferred Application, - and then starts it using kapp.startService... + and then starts it using tdeApp.startService... However applications (like kontact) can reimplement this method, to provide an in-process way of loading the implementation for this service type. @param serviceType the type of service we're looking for diff --git a/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java b/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java index 569cb155..b606fd42 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java +++ b/tdejava/koala/org/trinitydesktop/koala/KHistoryCombo.java @@ -100,7 +100,7 @@ public class KHistoryCombo extends KComboBox { You won't have the benefit of weighted completion though, so normally you should do something like <pre> - TDEConfig config = kapp.config(); + TDEConfig config = tdeApp.config(); ArrayList list; // load the history and completion list after creating the history combo list = config.readListEntry( "Completion list" ); diff --git a/tdejava/koala/org/trinitydesktop/koala/KNotifyClient.java b/tdejava/koala/org/trinitydesktop/koala/KNotifyClient.java index 0ab1696c..00701fc2 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KNotifyClient.java +++ b/tdejava/koala/org/trinitydesktop/koala/KNotifyClient.java @@ -100,7 +100,7 @@ public class KNotifyClient { Pass the origin-widget's winId() here so that a PassivePopup can be placed appropriately. Call it by KNotifyClient.event(widget.winId(), "EventName"); - It will use TDEApplication.kApplication.dcopClient() to communicate to + It will use TDEApplication.tdeApplication.dcopClient() to communicate to the server @param winId The winId() of the widget where the event originates @param message The name of the event diff --git a/tdejava/koala/org/trinitydesktop/koala/KRandomSequence.java b/tdejava/koala/org/trinitydesktop/koala/KRandomSequence.java index e29b5906..684f958f 100644 --- a/tdejava/koala/org/trinitydesktop/koala/KRandomSequence.java +++ b/tdejava/koala/org/trinitydesktop/koala/KRandomSequence.java @@ -29,7 +29,7 @@ public class KRandomSequence implements QtSupport { A Pseudo-random sequence is different for each seed but can be reproduced by starting the sequence with the same seed. If you need a single value which needs to be unpredictable, - you need to use kapp.random() instead. + you need to use tdeApp.random() instead. @param lngSeed Seed to initialize the sequence with. If lngSeed is 0, the sequence is initialized with a value from TDEApplication.random(). diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java b/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java index b5939d32..3d766811 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEApplication.java @@ -17,7 +17,7 @@ import org.trinitydesktop.qt.TQApplication; Controls and provides information to all KDE applications. Only one object of this class can be instantiated in a single app. - This instance is always accessible via the 'kapp' global variable. + This instance is always accessible via the 'tdeApp' global variable. See cut() for an example. This class provides the following services to all KDE applications. @@ -366,7 +366,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac Builds a caption that contains the application name along with the userCaption using a standard layout. To make a compliant caption - for your window, simply do: <code>setCaption</code>(kapp.makeStdCaption(yourCaption)); + for your window, simply do: <code>setCaption</code>(tdeApp.makeStdCaption(yourCaption)); @param userCaption The caption string you want to display in the window caption area. Do not include the application name! @param withAppName Indicates that the method shall include or ignore @@ -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, TQ_SLOT("cut()"), actionCollection() ); + KStdAction.cut( tdeApp, 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, TQ_SLOT("copy()"), actionCollection() ); + KStdAction.copy( tdeApp, 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, TQ_SLOT("paste()"), actionCollection() ); + KStdAction.paste( tdeApp, 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, TQ_SLOT("clear()"), actionCollection(), "clear" ); + new TDEAction( i18n( "Clear" ), "editclear", 0, tdeApp, 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, TQ_SLOT("selectAll()"), actionCollection() ); + KStdAction.selectAll( tdeApp, TQ_SLOT("selectAll()"), actionCollection() ); </pre> @short If the widget with focus provides a selectAll() slot, call that slot. */ @@ -686,7 +686,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac @short Returns the current application object. */ - public static native TDEApplication kApplication(); + public static native TDEApplication tdeApplication(); /** Returns a pointer to a DCOPClient for the application. If a client does not exist yet, it is created when this @@ -1000,7 +1000,7 @@ public class TDEApplication extends TQApplication implements TDEInstanceInterfac 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 ), TQ_SLOT("cut()"), actionCollection() ); + KStdAction.deselect( (MyApplication)( tdeApp ), 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/TDECmdLineArgs.java b/tdejava/koala/org/trinitydesktop/koala/TDECmdLineArgs.java index 2359bffb..1bd88bd2 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDECmdLineArgs.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDECmdLineArgs.java @@ -248,11 +248,11 @@ public class TDECmdLineArgs implements QtSupport { translation. Example: I18N_NOOP("KEdit") @param _description A short description of what your application is about. @param _version A version. - @param noKApp Set this true to not add commandline options for + @param noTDEApp Set this true to not add commandline options for TQApplication / TDEApplication @short Initialize class. */ - public static native void init(String[] _argv, String _appname, String programName, String _description, String _version, boolean noKApp); + public static native void init(String[] _argv, String _appname, String programName, String _description, String _version, boolean noTDEApp); public static native void init(String[] _argv, String _appname, String programName, String _description, String _version); /** Initialize class. @@ -261,11 +261,11 @@ public class TDECmdLineArgs implements QtSupport { arguments that would otherwise be required. @param _argv As passed to <code>main</code>(...). @param about A TDEAboutData object describing your program. - @param noKApp Set this true to not add commandline options for + @param noTDEApp Set this true to not add commandline options for TQApplication / TDEApplication @short Initialize class. */ - public static native void init(String[] _argv, TDEAboutData about, boolean noKApp); + public static native void init(String[] _argv, TDEAboutData about, boolean noTDEApp); public static native void init(String[] _argv, TDEAboutData about); /** Initialize Class diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEConfigBase.java b/tdejava/koala/org/trinitydesktop/koala/TDEConfigBase.java index 56f96dc2..c3354a91 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEConfigBase.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEConfigBase.java @@ -915,7 +915,7 @@ public class TDEConfigBase extends TQObject { If an application computes a default value at runtime for a certain entry, e.g. like: <pre> - TQColor computedDefault = kapp.palette().color(TQPalette.Active, TQColorGroup.Text) + TQColor computedDefault = tdeApp.palette().color(TQPalette.Active, TQColorGroup.Text) TQColor color = config.readEntry(key, computedDefault); \encode Then it may wish to make the following check before diff --git a/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java b/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java index acf05191..39a8d5d6 100644 --- a/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java +++ b/tdejava/koala/org/trinitydesktop/koala/TDEMainWindow.java @@ -549,7 +549,7 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa is not changed and <code>false</code> returned. That means clients could simply do the following: <pre> - if (kapp.isRestored()){ + if (tdeApp.isRestored()){ int n = 1; while (TDEMainWindow.canBeRestored(n)){ (new childMW).restore(n); @@ -570,7 +570,7 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa should be pretty usual) then you should use the RESTORE-macro for backwards compatibility with 3.1 and 3.0 branches: <pre> - if (kapp.isRestored()) + if (tdeApp.isRestored()) RESTORE(childMW) else { // create default application as usual @@ -582,7 +582,7 @@ public class TDEMainWindow extends TQMainWindow implements KXMLGUIBuilderInterfa widget (each derived from TDEMainWindow, of course), you can use the templated kRestoreMainWindows global functions: <pre> - if (kapp.isRestored()) + if (tdeApp.isRestored()) kRestoreMainWindows< childMW1, childMW2, childMW3 >(); else { // create default application as usual |
