From 8cf73aaa26092026120d9e7a0cd15253d8d7a2f3 Mon Sep 17 00:00:00 2001 From: Timothy Pearson Date: Thu, 7 Feb 2013 17:55:50 -0600 Subject: Rename KComp to avoid conflicts with KDE4 --- kdejava/koala/org/kde/koala/KComboBox.java | 44 +- kdejava/koala/org/kde/koala/KComboBoxSignals.java | 2 +- kdejava/koala/org/kde/koala/KCompletion.java | 482 --------------------- kdejava/koala/org/kde/koala/KCompletionBase.java | 281 ------------ .../org/kde/koala/KCompletionBaseInterface.java | 25 -- kdejava/koala/org/kde/koala/KCompletionBox.java | 197 --------- .../koala/org/kde/koala/KCompletionBoxSignals.java | 27 -- .../koala/org/kde/koala/KCompletionSignals.java | 32 -- kdejava/koala/org/kde/koala/KDirOperator.java | 8 +- kdejava/koala/org/kde/koala/KHistoryCombo.java | 8 +- kdejava/koala/org/kde/koala/KLineEdit.java | 50 +-- kdejava/koala/org/kde/koala/KLineEditSignals.java | 2 +- kdejava/koala/org/kde/koala/KShellCompletion.java | 2 +- kdejava/koala/org/kde/koala/KURLCompletion.java | 4 +- kdejava/koala/org/kde/koala/Makefile.am | 2 +- kdejava/koala/org/kde/koala/TDECompletion.java | 482 +++++++++++++++++++++ kdejava/koala/org/kde/koala/TDECompletionBase.java | 281 ++++++++++++ .../org/kde/koala/TDECompletionBaseInterface.java | 25 ++ kdejava/koala/org/kde/koala/TDECompletionBox.java | 197 +++++++++ .../org/kde/koala/TDECompletionBoxSignals.java | 27 ++ .../koala/org/kde/koala/TDECompletionSignals.java | 32 ++ kdejava/koala/org/kde/koala/TDEGlobalSettings.java | 4 +- kdejava/koala/org/kde/koala/TDEListView.java | 2 +- 23 files changed, 1108 insertions(+), 1108 deletions(-) delete mode 100644 kdejava/koala/org/kde/koala/KCompletion.java delete mode 100644 kdejava/koala/org/kde/koala/KCompletionBase.java delete mode 100644 kdejava/koala/org/kde/koala/KCompletionBaseInterface.java delete mode 100644 kdejava/koala/org/kde/koala/KCompletionBox.java delete mode 100644 kdejava/koala/org/kde/koala/KCompletionBoxSignals.java delete mode 100644 kdejava/koala/org/kde/koala/KCompletionSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDECompletion.java create mode 100644 kdejava/koala/org/kde/koala/TDECompletionBase.java create mode 100644 kdejava/koala/org/kde/koala/TDECompletionBaseInterface.java create mode 100644 kdejava/koala/org/kde/koala/TDECompletionBox.java create mode 100644 kdejava/koala/org/kde/koala/TDECompletionBoxSignals.java create mode 100644 kdejava/koala/org/kde/koala/TDECompletionSignals.java (limited to 'kdejava/koala/org') diff --git a/kdejava/koala/org/kde/koala/KComboBox.java b/kdejava/koala/org/kde/koala/KComboBox.java index 4cd65e9f..b2deb671 100644 --- a/kdejava/koala/org/kde/koala/KComboBox.java +++ b/kdejava/koala/org/kde/koala/KComboBox.java @@ -31,19 +31,19 @@ import org.kde.qt.TQComboBox; signals are emitted when the user presses the Enter/Return key. KCombobox by default creates a completion object when you invoke the completionObject( boolean ) member function for the first time or - explicitly use setCompletionObject( KCompletion, boolean ) to assign your + explicitly use setCompletionObject( TDECompletion, boolean ) to assign your own completion object. Additionally, to make this widget more functional, KComboBox will by default handle text rotation and completion events internally whenever a completion object is created through either one of the methods mentioned above. If you do not need this functionality, simply use - KCompletionBase.setHandleSignals(boolean) or alternatively set the booleanean + TDECompletionBase.setHandleSignals(boolean) or alternatively set the booleanean parameter in the setCompletionObject call to false. Beware: The completion object can be deleted on you, especially if a call such as setEditable(false) is made. Store the pointer at your own risk, - and consider using TQGuardedPtr. + and consider using TQGuardedPtr. The default key-bindings for completion and rotation is determined from the global settings in TDEStdAccel. These values, however, can be overridden - locally by invoking KCompletionBase.setKeyBinding(). The values can + locally by invoking TDECompletionBase.setKeyBinding(). The values can easily be reverted back to the default setting, by simply calling useGlobalSettings(). An alternate method would be to default individual key-bindings by usning setKeyBinding() with the default second argument. @@ -56,8 +56,8 @@ import org.kde.qt.TQComboBox; it to this widget or you called setAutoDeleteCompletionObject( false ). In other words do not do the following:
- KComboBox combo = new KCompletionBox(true, this, "mywidget");
- KCompletion comp = combo.completionObject();
+ KComboBox combo = new TDECompletionBox(true, this, "mywidget");
+ TDECompletion comp = combo.completionObject();
  combo.setEditable( false );
  comp.clear(); // CRASH: completion object does not exist anymore.
  
@@ -70,7 +70,7 @@ import org.kde.qt.TQComboBox; To enable the basic completion feature:
  KComboBox combo = new KComboBox( true, this, "mywidget" );
- KCompletion comp = combo.completionObject();
+ TDECompletion comp = combo.completionObject();
  // Connect to the return pressed signal - optional
  connect(combo,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
  // Provide the to be completed strings. Note that those are separate from the combo's
@@ -93,7 +93,7 @@ import org.kde.qt.TQComboBox;
  // Tell the widget not to handle completion and rotation
  combo.setHandleSignals( false );
  // Set your own completion key for manual completions.
- combo.setKeyBinding( KCompletionBase.TextCompletion, Qt.End );
+ combo.setKeyBinding( TDECompletionBase.TextCompletion, Qt.End );
  // Hide the context (popup) menu
  combo.setContextMenuEnabled( false );
  
@@ -103,7 +103,7 @@ import org.kde.qt.TQComboBox; @short An enhanced combo box. */ -public class KComboBox extends TQComboBox implements KCompletionBaseInterface { +public class KComboBox extends TQComboBox implements TDECompletionBaseInterface { protected KComboBox(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); @@ -298,8 +298,8 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { @short */ - public native KCompletionBox completionBox(boolean create); - public native KCompletionBox completionBox(); + public native TDECompletionBox completionBox(boolean create); + public native TDECompletionBox completionBox(); /** Re-implemented for internal reasons. API remains unaffected. NOTE: Only editable comboboxes can have a line editor. As such @@ -328,7 +328,7 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { /** Sets the completed text in the line-edit appropriately. This function is an implementation for - KCompletionBase.setCompletedText. + TDECompletionBase.setCompletedText. @short Sets the completed text in the line-edit appropriately. */ public native void setCompletedText(String arg1); @@ -395,8 +395,8 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { @short Returns a pointer to the current completion object. */ - public native KCompletion completionObject(boolean hsig); - public native KCompletion completionObject(); + public native TDECompletion completionObject(boolean hsig); + public native TDECompletion completionObject(); /** Sets up the completion object to be used. This method assigns the completion object and sets it up to automatically @@ -407,12 +407,12 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { destructor is invoked unless you explicitly call {@link #setAutoDeleteCompletionObject} after calling this method. Be sure to set the boolean argument to false, if you want to handle the completion signals yourself. - @param compObj a KCompletion() or a derived child object. + @param compObj a TDECompletion() or a derived child object. @param hsig if true, handles completion signals internally. @short Sets up the completion object to be used. */ - public native void setCompletionObject(KCompletion compObj, boolean hsig); - public native void setCompletionObject(KCompletion compObj); + public native void setCompletionObject(TDECompletion compObj, boolean hsig); + public native void setCompletionObject(TDECompletion compObj); /** Enables this object to handle completion and rotation events internally. @@ -590,7 +590,7 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { /** Returns a pointer to the completion object. This method is only different from completionObject() - in that it does not create a new KCompletion object even if + in that it does not create a new TDECompletion object even if the internal pointer is NULL. Use this method to get the pointer to a completion object when inheriting so that you won't inadvertently create it!! @@ -598,7 +598,7 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { @short Returns a pointer to the completion object. */ - public native KCompletion compObj(); + public native TDECompletion compObj(); /** Returns a key-binding map. This method is the same as getKeyBinding() except it @@ -607,14 +607,14 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { @short Returns a key-binding map. */ - // KCompletionBase::KeyBindingMap getKeyBindings(); >>>> NOT CONVERTED + // TDECompletionBase::KeyBindingMap getKeyBindings(); >>>> NOT CONVERTED /** Sets or removes the delegation object. If a delegation object is set, all function calls will be forwarded to the delegation object. @param delegate the delegation object, or 0 to remove it @short Sets or removes the delegation object. */ - protected native void setDelegate(KCompletionBaseInterface delegate); + protected native void setDelegate(TDECompletionBaseInterface delegate); /** Returns the delegation object. @return the delegation object, or 0 if there is none @@ -622,5 +622,5 @@ public class KComboBox extends TQComboBox implements KCompletionBaseInterface { @short Returns the delegation object. @see #setDelegate */ - protected native KCompletionBaseInterface delegate(); + protected native TDECompletionBaseInterface delegate(); } diff --git a/kdejava/koala/org/kde/koala/KComboBoxSignals.java b/kdejava/koala/org/kde/koala/KComboBoxSignals.java index ef34a223..49b69b6d 100644 --- a/kdejava/koala/org/kde/koala/KComboBoxSignals.java +++ b/kdejava/koala/org/kde/koala/KComboBoxSignals.java @@ -45,7 +45,7 @@ public interface KComboBoxSignals { The argument indicates which key-binding was pressed. In this case this can be either one of four values: PrevCompletionMatch, NextCompletionMatch, RotateUp or RotateDown. See - KCompletionBase.setKeyBinding() for details. + TDECompletionBase.setKeyBinding() for details. Note that this signal is NOT emitted if the completion mode is set to CompletionNone. @short Emitted when the text rotation key-bindings are pressed. diff --git a/kdejava/koala/org/kde/koala/KCompletion.java b/kdejava/koala/org/kde/koala/KCompletion.java deleted file mode 100644 index 5b9cd95c..00000000 --- a/kdejava/koala/org/kde/koala/KCompletion.java +++ /dev/null @@ -1,482 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import java.util.ArrayList; -import org.kde.qt.TQObject; - -/** - - This class offers easy use of "auto-completion", "manual-completion" or - "shell completion" on String objects. A common use is completing filenames - or URLs (see KURLCompletion()). - But it is not limited to URL-completion -- everything should be completable! - The user should be able to complete email-addresses, telephone-numbers, - commands, SQL queries, ... - Every time your program knows what the user can type into an edit-field, you - should offer completion. With KCompletion, this is very easy, and if you are - using a line edit widget ( KLineEdit), it is even more easy. - Basically, you tell a KCompletion object what strings should be completable - and whenever completion should be invoked, you call makeCompletion(). - KLineEdit and (an editable) KComboBox even do this automatically for you. - KCompletion offers the completed string via the signal match() and - all matching strings (when the result is ambiguous) via the method - allMatches(). - Notice: auto-completion, shell completion and manual completion work - slightly differently: - -
  • - auto-completion always returns a complete item as match. - When more than one matching items are available, it will deliver just - the first (depending on sorting order) item. Iterating over all matches - is possible via nextMatch() and previousMatch(). -
  • - -
  • - popup-completion works in the same way, the only difference being that - the completed items are not put into the edit-widget, but into a - separate popup-box. -
  • - -
  • - manual completion works the same way as auto-completion, the - subtle difference is, that it isn't invoked automatically while the user - is typing, but only when the user presses a special key. The difference - of manual and auto-completion is therefore only visible in UI classes, - KCompletion needs to know whether to deliver partial matches - (shell completion) or whole matches (auto/manual completion), therefore - TDEGlobalSettings.CompletionMan and - TDEGlobalSettings.CompletionAuto have the exact same effect in - KCompletion. -
  • - -
  • - shell completion works like how shells complete filenames: - when multiple matches are available, the longest possible string of all - matches is returned (i.e. only a partial item). - Iterating over all matching items (complete, not partial) is possible - via nextMatch() and previousMatch(). -
  • - You don't have to worry much about that though, KCompletion handles - that for you, according to the setting setCompletionMode(). - The default setting is globally configured by the user and read - from TDEGlobalSettings.completionMode(). - A short example: -
    - KCompletion completion;
    - completion.setOrder( KCompletion.Sorted );
    - completion.addItem( "pfeiffer@kde.org" );
    - completion.addItem( "coolo@kde.org" );
    - completion.addItem( "carpdjih@sp.zrz.tu-berlin.de" );
    - completion.addItem( "carp@cs.tu-berlin.de" );
    - cout << completion.makeCompletion( "ca" ).latin1() << endl;
    - 
    - In shell-completion-mode, this will be "carp"; in auto-completion- - mode it will be "carp\@cs.tu-berlin.de", as that is alphabetically - smaller. - If setOrder was set to Insertion, "carpdjih\@sp.zrz.tu-berlin.de" - would be completed in auto-completion-mode, as that was inserted before - "carp\@cs.tu-berlin.de". - You can dynamically update the completable items by removing and adding them - whenever you want. - For advanced usage, you could even use multiple KCompletion objects. E.g. - imagine an editor like kwrite with multiple open files. You could store - items of each file in a different KCompletion object, so that you know (and - tell the user) where a completion comes from. - Note: KCompletion does not work with strings that contain 0x0 characters - (unicode nul), as this is used internally as a delimiter. - You may inherit from KCompletion and override makeCompletion() in - special cases (like reading directories/urls and then supplying the - contents to KCompletion, as KURLCompletion does), but generally, this is - not necessary. - See {@link KCompletionSignals} for signals emitted by KCompletion - @author Carsten Pfeiffer - - @short A generic class for completing Strings. - -*/ -public class KCompletion extends TQObject { - protected KCompletion(Class dummy){super((Class) null);} - /** - Constants that represent the order in which KCompletion performs - completion-lookups. - @short Constants that represent the order in which KCompletion performs completion-lookups. - */ - public static final int Sorted = 0; - public static final int Insertion = 1; - public static final int Weighted = 2; - - public native TQMetaObject metaObject(); - public native String className(); - /** - Constructor, nothing special here :) - @short Constructor, nothing special here :) - */ - public KCompletion() { - super((Class) null); - newKCompletion(); - } - private native void newKCompletion(); - /** - Attempts to find an item in the list of available completions, - that begins with string. Will either return the first matching item - (if there is more than one match) or null, if no match was - found. - In the latter case, a sound will be issued, depending on - isSoundsEnabled(). - If a match was found, it will also be emitted via the signal - match(). - If this is called twice or more often with the same string while no - items were added or removed in the meantime, all available completions - will be emitted via the signal #matches(). - This happens only in shell-completion-mode. - @param string the string to complete - @return the matching item, or null if there is no matching - item. - - @short Attempts to find an item in the list of available completions, that begins with string. - @see #slotMakeCompletion - @see #substringCompletion - */ - public native String makeCompletion(String string); - /** - Returns a list of all completion items that contain the given string. - @param string the string to complete - @return a list of items which all contain text as a substring, - i.e. not necessarily at the beginning. - - @short Returns a list of all completion items that contain the given string. - @see #makeCompletion - */ - public native ArrayList substringCompletion(String string); - /** - Returns the next item from the matching-items-list. - When reaching the beginning, the list is rotated so it will return the - last match and a sound is issued (depending on isSoundsEnabled()). - @return the next item from the matching-items-list. - When there is no match, null is returned and - a sound is be issued. - - @short Returns the next item from the matching-items-list. - @see #slotPreviousMatch - */ - public native String previousMatch(); - /** - Returns the next item from the matching-items-list. - When reaching the last item, the list is rotated, so it will return - the first match and a sound is issued (depending on - isSoundsEnabled()). - @return the next item from the matching-items-list. When there is no - match, null is returned and a sound is issued - - @short Returns the next item from the matching-items-list. - @see #slotNextMatch - */ - public native String nextMatch(); - /** - Returns the last match. Might be useful if you need to check whether - a completion is different from the last one. - @return the last match. null is returned when there is no - last match. - - @short Returns the last match. - */ - public native String lastMatch(); - /** - Returns a list of all items inserted into KCompletion. This is useful - if you need to save the state of a KCompletion object and restore it - later. - Important note: when order() == Weighted, then every item in the - stringlist has its weight appended, delimited by a colon. E.g. an item - "www.kde.org" might look like "www.kde.org:4", where 4 is the weight. - This is necessary so that you can save the items along with its - weighting on disk and load them back with setItems(), restoring its - weight as well. If you really don't want the appended weightings, call - setOrder( KCompletion.Insertion ) - before calling items(). - @return a list of all items - - @short Returns a list of all items inserted into KCompletion. - @see #setItems - */ - public native ArrayList items(); - /** - Returns true when the completion object contains no entries. - @short Returns true when the completion object contains no entries. - */ - public native boolean isEmpty(); - /** - Sets the completion mode to Auto/Manual, Shell or None. - If you don't set the mode explicitly, the global default value - TDEGlobalSettings.completionMode() is used. - TDEGlobalSettings.CompletionNone disables completion. - @param mode the completion mode - @short Sets the completion mode to Auto/Manual, Shell or None. - @see #completionMode - @see TDEGlobalSettings#completionMode - */ - public native void setCompletionMode(int mode); - /** - Return the current completion mode. - May be different from TDEGlobalSettings.completionMode(), if you - explicitly called setCompletionMode(). - @return the current completion mode - - @short Return the current completion mode. - @see #setCompletionMode - */ - public native int completionMode(); - /** - KCompletion offers three different ways in which it offers its items: - -
  • - in the order of insertion -
  • - -
  • - sorted alphabetically -
  • - -
  • - weighted -
  • - Choosing weighted makes KCompletion perform an implicit weighting based - on how often an item is inserted. Imagine a web browser with a location - bar, where the user enters URLs. The more often a URL is entered, the - higher priority it gets. - Note: Setting the order to sorted only affects new inserted items, - already existing items will stay in the current order. So you probably - want to call setOrder( Sorted ) before inserting items, when you want - everything sorted. - Default is insertion order. - @param order the new order - @short KCompletion offers three different ways in which it offers its items: - @see #order - */ - public native void setOrder(int order); - /** - Returns the completion order. - @return the current completion order. - - @short Returns the completion order. - @see #setOrder - */ - public native int order(); - /** - Setting this to true makes KCompletion behave case insensitively. - E.g. makeCompletion( "CA" ); might return "carp\@cs.tu-berlin.de". - Default is false (case sensitive). - @param ignoreCase true to ignore the case - @short Setting this to true makes KCompletion behave case insensitively. - @see #ignoreCase - */ - public native void setIgnoreCase(boolean ignoreCase); - /** - Return whether KCompletion acts case insensitively or not. - Default is false (case sensitive). - @return true if the case will be ignored - - @short Return whether KCompletion acts case insensitively or not. - @see #setIgnoreCase - */ - public native boolean ignoreCase(); - /** - Returns a list of all items matching the last completed string. - Might take some time, when you have LOTS of items. - @return a list of all matches for the last completed string. - - @short Returns a list of all items matching the last completed string. - @see #substringCompletion - */ - public native ArrayList allMatches(); - /** - Returns a list of all items matching string. - @param string the string to match - @return the list of all matches - - @short Returns a list of all items matching string. - */ - public native ArrayList allMatches(String string); - /** - Returns a list of all items matching the last completed string. - Might take some time, when you have LOTS of items. - The matches are returned as KCompletionMatches, which also - keeps the weight of the matches, allowing - you to modify some matches or merge them with matches - from another call to allWeightedMatches(), and sort the matches - after that in order to have the matches ordered correctly. - @return a list of all completion matches - - @short Returns a list of all items matching the last completed string. - @see #substringCompletion - */ - // KCompletionMatches allWeightedMatches(); >>>> NOT CONVERTED - /** - Returns a list of all items matching string. - @param string the string to match - @return a list of all matches - - @short Returns a list of all items matching string. - */ - // KCompletionMatches allWeightedMatches(const TQString& arg1); >>>> NOT CONVERTED - /** - Enables/disables playing a sound when - -
  • - makeCompletion() can't find a match -
  • - -
  • - there is a partial completion (= multiple matches in - Shell-completion mode) -
  • - -
  • - nextMatch() or previousMatch() hit the last possible - match . rotation -
  • - For playing the sounds, KNotifyClient() is used. - @param enable true to enable sounds - @short Enables/disables playing a sound when - @see #isSoundsEnabled - */ - public native void setEnableSounds(boolean enable); - /** - Tells you whether KCompletion will play sounds on certain occasions. - Default is enabled. - @return true if sounds are enabled - - @short Tells you whether KCompletion will play sounds on certain occasions. - @see #enableSounds - @see #disableSounds - */ - public native boolean isSoundsEnabled(); - /** - Returns true when more than one match is found. - @return true if there are more than one match - - @short Returns true when more than one match is found. - @see #multipleMatches - */ - public native boolean hasMultipleMatches(); - /** - Attempts to complete "string" and emits the completion via match(). - Same as makeCompletion() (just as a slot). - @param string the string to complete - @short Attempts to complete "string" and emits the completion via match(). - @see #makeCompletion - */ - public native void slotMakeCompletion(String string); - /** - Searches the previous matching item and emits it via match(). - Same as previousMatch() (just as a slot). - @short Searches the previous matching item and emits it via match(). - @see #previousMatch - */ - public native void slotPreviousMatch(); - /** - Searches the next matching item and emits it via match(). - Same as nextMatch() (just as a slot). - @short Searches the next matching item and emits it via match(). - @see #nextMatch - */ - public native void slotNextMatch(); - /** - Inserts items into the list of possible completions. - Does the same as setItems(), but does not call clear() before. - @param items the items to insert - @short Inserts items into the list of possible completions. - */ - public native void insertItems(String[] items); - /** - Sets the list of items available for completion. Removes all previous - items. - Notice: when order() == Weighted, then the weighting is looked up for - every item in the stringlist. Every item should have ":number" appended, - where number is an unsigned integer, specifying the weighting. - If you don't like this, call - setOrder( KCompletion.Insertion ) - before calling setItems(). - @param list the list of items that are available for completion - @short Sets the list of items available for completion. - @see #items - */ - public native void setItems(String[] list); - /** - Adds an item to the list of available completions. - Resets the current item-state ( previousMatch() and nextMatch() - won't work anymore). - @param item the item to add - @short Adds an item to the list of available completions. - */ - public native void addItem(String item); - /** - Adds an item to the list of available completions. - Resets the current item-state ( previousMatch() and nextMatch() - won't work anymore). - Sets the weighting of the item to weight or adds it to the current - weighting if the item is already available. The weight has to be greater - than 1 to take effect (default weight is 1). - @param item the item to add - @param weight the weight of the item, default is 1 - @short Adds an item to the list of available completions. - */ - public native void addItem(String item, int weight); - /** - Removes an item from the list of available completions. - Resets the current item-state ( previousMatch() and nextMatch() - won't work anymore). - @param item the item to remove - @short Removes an item from the list of available completions. - */ - public native void removeItem(String item); - /** - Removes all inserted items. - @short Removes all inserted items. - */ - public native void clear(); - /** - This method is called after a completion is found and before the - matching string is emitted. You can override this method to modify the - string that will be emitted. - This is necessary e.g. in KURLCompletion(), where files with spaces - in their names are shown escaped ("filename\ with\ spaces"), but stored - unescaped inside KCompletion. - Never delete that pointer! - Default implementation does nothing. - @param match the match to process - @short This method is called after a completion is found and before the matching string is emitted. - @see #postProcessMatches - */ - protected native void postProcessMatch(StringBuffer match); - /** - This method is called before a list of all available completions is - emitted via #matches. You can override this method to modify the - found items before match() or #matches are emitted. - Never delete that pointer! - Default implementation does nothing. - @param matches the matches to process - @short This method is called before a list of all available completions is emitted via #matches. - @see #postProcessMatch - */ - protected native void postProcessMatches(String[] matches); - /** - This method is called before a list of all available completions is - emitted via #matches. You can override this method to modify the - found items before #match() or #matches() are emitted. - Never delete that pointer! - Default implementation does nothing. - @param matches the matches to process - @short This method is called before a list of all available completions is emitted via #matches. - @see #postProcessMatch - */ - // void postProcessMatches(KCompletionMatches* arg1); >>>> NOT CONVERTED - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KCompletionBase.java b/kdejava/koala/org/kde/koala/KCompletionBase.java deleted file mode 100644 index 00356a4f..00000000 --- a/kdejava/koala/org/kde/koala/KCompletionBase.java +++ /dev/null @@ -1,281 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.QtSupport; - -/** - - An abstract base class for adding a completion feature - into widgets. - This is a convenience class that provides the basic functions - needed to add text completion support into widgets. All that - is required is an implementation for the pure function - setCompletedText. Refer to KLineEdit or KComboBox - to see how easily such support can be added using this as a base - class. - @author Dawit Alemayehu - - @short An abstract class for adding text completion support to widgets. - -*/ -public class KCompletionBase implements QtSupport, KCompletionBaseInterface { - private long _qt; - private boolean _allocatedInJavaWorld = true; - protected KCompletionBase(Class dummy){} - - /** - Constants that represent the items whose short-cut - key-binding is programmable. The default key-bindings - for these items are defined in TDEStdAccel. - @short Constants that represent the items whose short-cut key-binding is programmable. - */ - public static final int TextCompletion = 0; - public static final int PrevCompletionMatch = 1; - public static final int NextCompletionMatch = 2; - public static final int SubstringCompletion = 3; - - /** - Default constructor. - @short Default constructor. - */ - /** - Returns a pointer to the current completion object. - If the completion object does not exist, it is automatically created and - by default handles all the completion signals internally unless hsig - is set to false. It is also automatically destroyed when the destructor - is called. You can change this default behavior using the - {@link #setAutoDeleteCompletionObject} and {@link #setHandleSignals} member - functions. - See also {@link #compObj}. - @param hsig if true, handles completion signals internally. - @return a pointer the completion object. - - @short Returns a pointer to the current completion object. - */ - public native KCompletion completionObject(boolean hsig); - public native KCompletion completionObject(); - /** - Sets up the completion object to be used. - This method assigns the completion object and sets it up to automatically - handle the completion and rotation signals internally. You should use - this function if you want to share one completion object among your - widgets or need to use a customized completion object. - The object assigned through this method is not deleted when this object's - destructor is invoked unless you explicitly call {@link #setAutoDeleteCompletionObject} - after calling this method. Be sure to set the boolean argument to false, if - you want to handle the completion signals yourself. - @param compObj a KCompletion() or a derived child object. - @param hsig if true, handles completion signals internally. - @short Sets up the completion object to be used. - */ - public native void setCompletionObject(KCompletion compObj, boolean hsig); - public native void setCompletionObject(KCompletion compObj); - /** - Enables this object to handle completion and rotation - events internally. - This function simply assigns a booleanean value that - indicates whether it should handle rotation and - completion events or not. Note that this does not - stop the object from emitting signals when these - events occur. - @param handle if true, handle completion & rotation internally. - @short Enables this object to handle completion and rotation events internally. - */ - public native void setHandleSignals(boolean handle); - /** - Returns true if the completion object is deleted - upon this widget's destruction. - See setCompletionObject() and enableCompletion() - for details. - @return true if the completion object will be deleted - automatically - - @short Returns true if the completion object is deleted upon this widget's destruction. - */ - public native boolean isCompletionObjectAutoDeleted(); - /** - Sets the completion object when this widget's destructor - is called. - If the argument is set to true, the completion object - is deleted when this widget's destructor is called. - @param autoDelete if true, delete completion object on destruction. - @short Sets the completion object when this widget's destructor is called. - */ - public native void setAutoDeleteCompletionObject(boolean autoDelete); - /** - Sets the widget's ability to emit text completion and - rotation signals. - Invoking this function with enable set to false will - cause the completion & rotation signals not to be emitted. - However, unlike setting the completion object to NULL - using setCompletionObject, disabling the emition of - the signals through this method does not affect the current - completion object. - There is no need to invoke this function by default. When a - completion object is created through completionObject or - setCompletionObject, these signals are set to emit - automatically. Also note that disabling this signals will not - necessarily interfere with the objects ability to handle these - events internally. See setHandleSignals. - @param enable if false, disables the emition of completion & rotation signals. - @short Sets the widget's ability to emit text completion and rotation signals. - */ - public native void setEnableSignals(boolean enable); - /** - Returns true if the object handles the signals. - @return true if this signals are handled internally. - - @short Returns true if the object handles the signals. - */ - public native boolean handleSignals(); - /** - Returns true if the object emits the signals. - @return true if signals are emitted - - @short Returns true if the object emits the signals. - */ - public native boolean emitSignals(); - /** - Sets the type of completion to be used. - The completion modes supported are those defined in - TDEGlobalSettings(). See below. - @param mode Completion type: - -
  • - CompletionNone: Disables completion feature. -
  • - -
  • - CompletionAuto: Attempts to find a match & - fills-in the remaining text. -
  • - -
  • - CompletionMan: Acts the same as the above - except the action has to be - manually triggered through - pre-defined completion key. -
  • - -
  • - CompletionShell: Mimics the completion feature - found in typical nix shell - environments. -
  • - -
  • - CompletionPopup: Shows all available completions at once, - in a listbox popping up. - -
  • @short Sets the type of completion to be used. - */ - public native void setCompletionMode(int mode); - /** - Returns the current completion mode. - The return values are of type TDEGlobalSettings.Completion. - See setCompletionMode() for details. - @return the completion mode. - - @short Returns the current completion mode. - */ - public native int completionMode(); - /** - Sets the key-binding to be used for manual text - completion, text rotation in a history list as - well as a completion list. - When the keys set by this function are pressed, a - signal defined by the inheriting widget will be activated. - If the default value or 0 is specified by the second - parameter, then the key-binding as defined in the global - setting should be used. This method returns false value - for key is negative or the supplied key-binding conflicts - with the ones set for one of the other features. - NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of - the key-binding simply simply sum up the values of the - modifier and the actual key. For example, to use CTRL+E as - a key binding for one of the items, you would simply supply - "Qt.CtrlButton + Qt.Key_E" as the second argument to this - function. - @param item the feature whose key-binding needs to be set: - -
  • - TextCompletion the manual completion key-binding. -
  • - -
  • - PrevCompletionMatch the previous match key for multiple completion. -
  • - -
  • - NextCompletionMatch the next match key for for multiple completion. -
  • - -
  • - SubstringCompletion the key for substring completion -
  • - @param key key-binding used to rotate down in a list. - @return true if key-binding can successfully be set. - - @short Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list. - @see #getKeyBinding - */ - public native boolean setKeyBinding(int item, TDEShortcut key); - /** - Returns the key-binding used for the specified item. - This methods returns the key-binding used to activate - the feature feature given by item. If the binding - contains modifier key(s), the SUM of the modifier key - and the actual key code are returned. - @param item the item to check - @return the key-binding used for the feature given by item. - - @short Returns the key-binding used for the specified item. - @see #setKeyBinding - */ - public native TDEShortcut getKeyBinding(int item); - /** - Sets this object to use global values for key-bindings. - This method changes the values of the key bindings for - rotation and completion features to the default values - provided in TDEGlobalSettings. - NOTE: By default inheriting widgets should uses the - global key-bindings so that there will be no need to - call this method. - @short Sets this object to use global values for key-bindings. - */ - public native void useGlobalKeyBindings(); - /** - A pure function that must be implemented by - all inheriting classes. - This function is intended to allow external completion - implementations to set completed text appropriately. It - is mostly relevant when the completion mode is set to - CompletionAuto and CompletionManual modes. See - KCompletionBase.setCompletedText. - Does nothing in CompletionPopup mode, as all available - matches will be shown in the popup. - @param text the completed text to be set in the widget. - @short A pure virtual function that must be implemented by all inheriting classes. - */ - public native void setCompletedText(String text); - /** - A pure function that must be implemented by - all inheriting classes. - @param items the list of completed items - @short A pure virtual function that must be implemented by all inheriting classes. - */ - public native void setCompletedItems(String[] items); - /** - Returns a pointer to the completion object. - This method is only different from completionObject() - in that it does not create a new KCompletion object even if - the internal pointer is NULL. Use this method to get the - pointer to a completion object when inheriting so that you - won't inadvertently create it!! - @return the completion object or NULL if one does not exist. - - @short Returns a pointer to the completion object. - */ - public native KCompletion compObj(); -} diff --git a/kdejava/koala/org/kde/koala/KCompletionBaseInterface.java b/kdejava/koala/org/kde/koala/KCompletionBaseInterface.java deleted file mode 100644 index 8d9fe6a3..00000000 --- a/kdejava/koala/org/kde/koala/KCompletionBaseInterface.java +++ /dev/null @@ -1,25 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.QtSupport; - -public interface KCompletionBaseInterface { - KCompletion completionObject(boolean hsig); - KCompletion completionObject(); - void setCompletionObject(KCompletion compObj, boolean hsig); - void setCompletionObject(KCompletion compObj); - void setHandleSignals(boolean handle); - boolean isCompletionObjectAutoDeleted(); - void setAutoDeleteCompletionObject(boolean autoDelete); - void setEnableSignals(boolean enable); - boolean handleSignals(); - boolean emitSignals(); - void setCompletionMode(int mode); - int completionMode(); - boolean setKeyBinding(int item, TDEShortcut key); - TDEShortcut getKeyBinding(int item); - void useGlobalKeyBindings(); - void setCompletedText(String text); - void setCompletedItems(String[] items); - KCompletion compObj(); -} diff --git a/kdejava/koala/org/kde/koala/KCompletionBox.java b/kdejava/koala/org/kde/koala/KCompletionBox.java deleted file mode 100644 index 5a048cec..00000000 --- a/kdejava/koala/org/kde/koala/KCompletionBox.java +++ /dev/null @@ -1,197 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.Qt; -import org.kde.qt.TQListBoxItem; -import org.kde.qt.TQRect; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQObject; -import org.kde.qt.TQSize; -import java.util.ArrayList; -import org.kde.qt.TQEvent; -import org.kde.qt.TQWidget; - -/** - - A little utility class for "completion-widgets", like KLineEdit or - KComboBox. KCompletionBox is a listbox, displayed as a rectangle without - any window decoration, usually directly under the lineedit or combobox. - It is filled with all possible matches for a completion, so the user - can select the one he wants. - It is used when TDEGlobalSettings.Completion == CompletionPopup or CompletionPopupAuto. - See {@link KCompletionBoxSignals} for signals emitted by KCompletionBox - @author Carsten Pfeiffer - - @short A helper widget for "completion-widgets" (KLineEdit, KComboBox)). - -*/ -public class KCompletionBox extends TDEListBox { - protected KCompletionBox(Class dummy){super((Class) null);} - public native TQMetaObject metaObject(); - public native String className(); - /** - Constructs a KCompletionBox. - The parent widget is used to give the focus back when pressing the - up-button on the very first item. - @short Constructs a KCompletionBox. - */ - public KCompletionBox(TQWidget parent, String name) { - super((Class) null); - newKCompletionBox(parent,name); - } - private native void newKCompletionBox(TQWidget parent, String name); - public KCompletionBox(TQWidget parent) { - super((Class) null); - newKCompletionBox(parent); - } - private native void newKCompletionBox(TQWidget parent); - public native TQSize sizeHint(); - /** - @return true if selecting an item results in the emition of the selected signal. - - @short - */ - public native boolean activateOnSelect(); - /** - Returns a list of all items currently in the box. - @short Returns a list of all items currently in the box. - */ - public native ArrayList items(); - /** - Inserts items into the box. Does not clear the items before. - index determines at which position items will be inserted. - (defaults to appending them at the end) - @short Inserts items into the box. - */ - public native void insertItems(String[] items, int index); - public native void insertItems(String[] items); - /** - Clears the box and inserts items. - @short Clears the box and inserts items. - */ - public native void setItems(String[] items); - /** - Adjusts the size of the box to fit the width of the parent given in the - constructor and pops it up at the most appropriate place, relative to - the parent. - Depending on the screensize and the position of the parent, this may - be a different place, however the default is to pop it up and the - lower left corner of the parent. - Make sure to hide() the box when appropriate. - @short Adjusts the size of the box to fit the width of the parent given in the constructor and pops it up at the most appropriate place, relative to the parent. - */ - public native void popup(); - /** - Makes this widget (when visible) capture Tab-key events to traverse the - items in the dropdown list. - Default off, as it conflicts with the usual behavior of Tab to traverse - widgets. It is useful for cases like Konqueror's Location Bar, though. - @short Makes this widget (when visible) capture Tab-key events to traverse the items in the dropdown list. - @see #isTabHandling - */ - public native void setTabHandling(boolean enable); - /** - Default is false. - @return true if this widget is handling Tab-key events to traverse the - items in the dropdown list, otherwise false. - - @short - @see #setTabHandling - */ - public native boolean isTabHandling(); - /** - Sets the text to be emitted if the user chooses not to - pick from the available matches. - If the canceled text is not set through this function, the - userCancelled signal will not be emitted. - @param txt the text to be emitted if the user cancels this box - @short Sets the text to be emitted if the user chooses not to pick from the available matches. - @see #userCancelled( - @see #const - */ - public native void setCancelledText(String txt); - /** - @return the text set via setCancelledText() or null. - - @short - */ - public native String cancelledText(); - /** - Set whether or not the selected signal should be emitted when an - item is selected. By default the selected signal is emitted. - @param state false if the signal should not be emitted. - @short Set whether or not the selected signal should be emitted when an item is selected. - */ - public native void setActivateOnSelect(boolean state); - /** - Moves the selection one line down or select the first item if nothing is selected yet. - @short Moves the selection one line down or select the first item if nothing is selected yet. - */ - public native void down(); - /** - Moves the selection one line up or select the first item if nothing is selected yet. - @short Moves the selection one line up or select the first item if nothing is selected yet. - */ - public native void up(); - /** - Moves the selection one page down. - @short Moves the selection one page down. - */ - public native void pageDown(); - /** - Moves the selection one page up. - @short Moves the selection one page up. - */ - public native void pageUp(); - /** - Moves the selection up to the first item. - @short Moves the selection up to the first item. - */ - public native void home(); - /** - Moves the selection down to the last item. - @short Moves the selection down to the last item. - */ - public native void end(); - /** - Re-implemented for internal reasons. API is unaffected. - @short Re-implemented for internal reasons. - */ - public native void show(); - /** - Re-implemented for internal reasons. API is unaffected. - @short Re-implemented for internal reasons. - */ - public native void hide(); - /** - This calculates the size of the dropdown and the relative position of the top - left corner with respect to the parent widget. This matches the geometry and position - normally used by K/TQComboBox when used with one. - @short This calculates the size of the dropdown and the relative position of the top left corner with respect to the parent widget. - */ - protected native TQRect calculateGeometry(); - /** - This properly sizes and positions the listbox. - @short This properly sizes and positions the listbox. - */ - protected native void sizeAndPosition(); - /** - Reimplemented from TDEListBox to get events from the viewport (to hide - this widget on mouse-click, Escape-presses, etc. - @short Reimplemented from TDEListBox to get events from the viewport (to hide this widget on mouse-click, Escape-presses, etc. - */ - public native boolean eventFilter(TQObject arg1, TQEvent arg2); - /** - Called when an item was activated. Emits - activated() with the item. - @short Called when an item was activated. - */ - protected native void slotActivated(TQListBoxItem arg1); - /** Deletes the wrapped C++ instance */ - protected native void finalize() throws InternalError; - /** Delete the wrapped C++ instance ahead of finalize() */ - public native void dispose(); - /** Has the wrapped C++ instance been deleted? */ - public native boolean isDisposed(); -} diff --git a/kdejava/koala/org/kde/koala/KCompletionBoxSignals.java b/kdejava/koala/org/kde/koala/KCompletionBoxSignals.java deleted file mode 100644 index 9cc05e26..00000000 --- a/kdejava/koala/org/kde/koala/KCompletionBoxSignals.java +++ /dev/null @@ -1,27 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQListBoxItem; -import org.kde.qt.TQRect; -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import org.kde.qt.TQObject; -import org.kde.qt.TQSize; -import java.util.ArrayList; -import org.kde.qt.TQEvent; -import org.kde.qt.TQWidget; - -public interface KCompletionBoxSignals { - /** - Emitted when an item was selected, contains the text of - the selected item. - @short Emitted when an item was selected, contains the text of the selected item. - */ - void activated(String arg1); - /** - Emitted whenever the user chooses to ignore the available - selections and close the this box. - @short Emitted whenever the user chooses to ignore the available selections and close the this box. - */ - void userCancelled(String arg1); -} diff --git a/kdejava/koala/org/kde/koala/KCompletionSignals.java b/kdejava/koala/org/kde/koala/KCompletionSignals.java deleted file mode 100644 index 5061411e..00000000 --- a/kdejava/koala/org/kde/koala/KCompletionSignals.java +++ /dev/null @@ -1,32 +0,0 @@ -//Auto-generated by kalyptus. DO NOT EDIT. -package org.kde.koala; - -import org.kde.qt.TQMetaObject; -import org.kde.qt.QtSupport; -import java.util.ArrayList; - -public interface KCompletionSignals { - /** - The matching item. Will be emitted by makeCompletion(), - previousMatch() or nextMatch(). May be null if there - is no matching item. - @param item the match, or null if there is none - @short The matching item. - */ - void match(String item); - /** - All matching items. Will be emitted by makeCompletion() in shell- - completion-mode, when the same string is passed to makeCompletion twice - or more often. - @param matchlist the list of matches - @short All matching items. - */ - void matches(String[] matchlist); - /** - This signal is emitted, when calling makeCompletion() and more than - one matching item is found. - @short This signal is emitted, when calling makeCompletion() and more than one matching item is found. - @see #hasMultipleMatches - */ - void multipleMatches(); -} diff --git a/kdejava/koala/org/kde/koala/KDirOperator.java b/kdejava/koala/org/kde/koala/KDirOperator.java index 5543358e..711ad491 100644 --- a/kdejava/koala/org/kde/koala/KDirOperator.java +++ b/kdejava/koala/org/kde/koala/KDirOperator.java @@ -305,7 +305,7 @@ public class KDirOperator extends TQWidget { */ public native int numFiles(); /** - @return a KCompletion object, containing all filenames and + @return a TDECompletion object, containing all filenames and directories of the current directory/URL. You can use it to insert it into a KLineEdit or KComboBox Note: it will only contain files, after prepareCompletionObjects() @@ -314,9 +314,9 @@ public class KDirOperator extends TQWidget { @short */ - public native KCompletion completionObject(); + public native TDECompletion completionObject(); /** - @return a KCompletion object, containing only all directories of the + @return a TDECompletion object, containing only all directories of the current directory/URL. You can use it to insert it into a KLineEdit or KComboBox Note: it will only contain directories, after @@ -325,7 +325,7 @@ public class KDirOperator extends TQWidget { @short */ - public native KCompletion dirCompletionObject(); + public native TDECompletion dirCompletionObject(); /** an accessor to a collection of all available Actions. The actions are static, they will be there all the time (no need to connect to diff --git a/kdejava/koala/org/kde/koala/KHistoryCombo.java b/kdejava/koala/org/kde/koala/KHistoryCombo.java index 97e7bbee..4f0456d6 100644 --- a/kdejava/koala/org/kde/koala/KHistoryCombo.java +++ b/kdejava/koala/org/kde/koala/KHistoryCombo.java @@ -118,13 +118,13 @@ public class KHistoryCombo extends KComboBox { Be sure to use different names for saving with TDEConfig if you have more than one KHistoryCombo. Note: When setCompletionList is true, the items are inserted into the - KCompletion object with mode KCompletion.Insertion and the mode is set - to KCompletion.Weighted afterwards. + TDECompletion object with mode TDECompletion.Insertion and the mode is set + to TDECompletion.Weighted afterwards. @short Inserts items into the combobox. @see #historyItems @see KComboBox#completionObject - @see KCompletion#setItems - @see KCompletion#items + @see TDECompletion#setItems + @see TDECompletion#items */ public native void setHistoryItems(String[] items, boolean setCompletionList); /** diff --git a/kdejava/koala/org/kde/koala/KLineEdit.java b/kdejava/koala/org/kde/koala/KLineEdit.java index 25b38f18..e9691923 100644 --- a/kdejava/koala/org/kde/koala/KLineEdit.java +++ b/kdejava/koala/org/kde/koala/KLineEdit.java @@ -38,16 +38,16 @@ import org.kde.qt.TQLineEdit; appropriate. This widget by default creates a completion object when you invoke the completionObject( boolean ) member function for the first time or - use setCompletionObject( KCompletion, boolean ) to assign your own + use setCompletionObject( TDECompletion, boolean ) to assign your own completion object. Additionally, to make this widget more functional, KLineEdit will by default handle the text rotation and completion events internally when a completion object is created through either one of the methods mentioned above. If you do not need this functionality, - simply use KCompletionBase.setHandleSignals( boolean ) or set the + simply use TDECompletionBase.setHandleSignals( boolean ) or set the booleanean parameter in the above functions to false. The default key-bindings for completion and rotation is determined from the global settings in TDEStdAccel. These values, however, - can be overridden locally by invoking KCompletionBase.setKeyBinding(). + can be overridden locally by invoking TDECompletionBase.setKeyBinding(). The values can easily be reverted back to the default setting, by simply calling useGlobalSettings(). An alternate method would be to default individual key-bindings by using setKeyBinding() with the default @@ -55,7 +55,7 @@ import org.kde.qt.TQLineEdit; If EchoMode for this widget is set to something other than TQLineEdit.Normal, the completion mode will always be defaulted to TDEGlobalSettings.CompletionNone. This is done purposefully to guard against protected entries such as passwords being - cached in KCompletion's list. Hence, if the EchoMode is not TQLineEdit.Normal, the + cached in TDECompletion's list. Hence, if the EchoMode is not TQLineEdit.Normal, the completion mode is automatically disabled. A read-only KLineEdit will have the same background color as a disabled KLineEdit, but its foreground color will be the one used @@ -66,7 +66,7 @@ import org.kde.qt.TQLineEdit; To enable the basic completion feature :
      KLineEdit edit = new KLineEdit( this, "mywidget" );
    - KCompletion comp = edit.completionObject();
    + TDECompletion comp = edit.completionObject();
      // Connect to the return pressed signal - optional
      connect(edit,SIGNAL("returnPressed(String)"),comp,SLOT("addItem(String)"));
      
    @@ -90,7 +90,7 @@ import org.kde.qt.TQLineEdit; // Tell the widget to not handle completion and iteration automatically. edit.setHandleSignals( false ); // Set your own key-bindings for a text completion mode. - edit.setKeyBinding( KCompletionBase.TextCompletion, Qt.End ); + edit.setKeyBinding( TDECompletionBase.TextCompletion, Qt.End ); // Hide the context (popup) menu edit.setContextMenuEnabled( false ); // Temporarily disable signal (both completion & iteration) emitions @@ -104,7 +104,7 @@ import org.kde.qt.TQLineEdit; @short An enhanced TQLineEdit widget for inputting text. */ -public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { +public class KLineEdit extends TQLineEdit implements TDECompletionBaseInterface { protected KLineEdit(Class dummy){super((Class) null);} public native TQMetaObject metaObject(); public native String className(); @@ -154,11 +154,11 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { */ public native void setURL(KURL url); /** - Re-implemented from KCompletionBase for internal reasons. + Re-implemented from TDECompletionBase for internal reasons. This function is re-implemented in order to make sure that the EchoMode is acceptable before we set the completion mode. - See KCompletionBase.setCompletionMode - @short Re-implemented from KCompletionBase for internal reasons. + See TDECompletionBase.setCompletionMode + @short Re-implemented from TDECompletionBase for internal reasons. */ public native void setCompletionMode(int mode); /** @@ -225,14 +225,14 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { @short */ - public native KCompletionBox completionBox(boolean create); - public native KCompletionBox completionBox(); + public native TDECompletionBox completionBox(boolean create); + public native TDECompletionBox completionBox(); /** Reimplemented for internal reasons, the API is not affected. @short Reimplemented for internal reasons, the API is not affected. */ - public native void setCompletionObject(KCompletion arg1, boolean hsig); - public native void setCompletionObject(KCompletion arg1); + public native void setCompletionObject(TDECompletion arg1, boolean hsig); + public native void setCompletionObject(TDECompletion arg1); /** Reimplemented for internal reasons, the API is not affected. @short Reimplemented for internal reasons, the API is not affected. @@ -266,10 +266,10 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { Set the completion-box to be used in completion mode TDEGlobalSettings.CompletionPopup. This will do nothing if a completion-box already exists. - @param box The KCompletionBox to set + @param box The TDECompletionBox to set @short Set the completion-box to be used in completion mode TDEGlobalSettings.CompletionPopup. */ - public native void setCompletionBox(KCompletionBox box); + public native void setCompletionBox(TDECompletionBox box); /** Re-implemented for internal reasons. API not changed. @short Re-implemented for internal reasons. @@ -286,8 +286,8 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { */ public native void rotateText(int type); /** - See KCompletionBase.setCompletedText. - @short See KCompletionBase.setCompletedText. + See TDECompletionBase.setCompletedText. + @short See TDECompletionBase.setCompletedText. */ public native void setCompletedText(String arg1); /** @@ -425,8 +425,8 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { @short Returns a pointer to the current completion object. */ - public native KCompletion completionObject(boolean hsig); - public native KCompletion completionObject(); + public native TDECompletion completionObject(boolean hsig); + public native TDECompletion completionObject(); /** Enables this object to handle completion and rotation events internally. @@ -569,7 +569,7 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { /** Returns a pointer to the completion object. This method is only different from completionObject() - in that it does not create a new KCompletion object even if + in that it does not create a new TDECompletion object even if the internal pointer is NULL. Use this method to get the pointer to a completion object when inheriting so that you won't inadvertently create it!! @@ -577,7 +577,7 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { @short Returns a pointer to the completion object. */ - public native KCompletion compObj(); + public native TDECompletion compObj(); /** Returns a key-binding map. This method is the same as getKeyBinding() except it @@ -586,14 +586,14 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { @short Returns a key-binding map. */ - // KCompletionBase::KeyBindingMap getKeyBindings(); >>>> NOT CONVERTED + // TDECompletionBase::KeyBindingMap getKeyBindings(); >>>> NOT CONVERTED /** Sets or removes the delegation object. If a delegation object is set, all function calls will be forwarded to the delegation object. @param delegate the delegation object, or 0 to remove it @short Sets or removes the delegation object. */ - protected native void setDelegate(KCompletionBaseInterface delegate); + protected native void setDelegate(TDECompletionBaseInterface delegate); /** Returns the delegation object. @return the delegation object, or 0 if there is none @@ -601,5 +601,5 @@ public class KLineEdit extends TQLineEdit implements KCompletionBaseInterface { @short Returns the delegation object. @see #setDelegate */ - protected native KCompletionBaseInterface delegate(); + protected native TDECompletionBaseInterface delegate(); } diff --git a/kdejava/koala/org/kde/koala/KLineEditSignals.java b/kdejava/koala/org/kde/koala/KLineEditSignals.java index 88f447e2..c6df71ac 100644 --- a/kdejava/koala/org/kde/koala/KLineEditSignals.java +++ b/kdejava/koala/org/kde/koala/KLineEditSignals.java @@ -46,7 +46,7 @@ public interface KLineEditSignals { The argument indicates which key-binding was pressed. In KLineEdit's case this can be either one of two values: PrevCompletionMatch or NextCompletionMatch. See - KCompletionBase.setKeyBinding for details. + TDECompletionBase.setKeyBinding for details. Note that this signal is not emitted if the completion mode is set to TDEGlobalSettings.CompletionNone or echoMode() is not normal. @short Emitted when the text rotation key-bindings are pressed. diff --git a/kdejava/koala/org/kde/koala/KShellCompletion.java b/kdejava/koala/org/kde/koala/KShellCompletion.java index b1802b81..5a2c43f5 100644 --- a/kdejava/koala/org/kde/koala/KShellCompletion.java +++ b/kdejava/koala/org/kde/koala/KShellCompletion.java @@ -41,7 +41,7 @@ public class KShellCompletion extends KURLCompletion { public native String makeCompletion(String text); protected native void postProcessMatch(StringBuffer match); protected native void postProcessMatches(String[] matches); - // void postProcessMatches(KCompletionMatches* arg1); >>>> NOT CONVERTED + // void postProcessMatches(TDECompletionMatches* arg1); >>>> NOT CONVERTED /** Deletes the wrapped C++ instance */ protected native void finalize() throws InternalError; /** Delete the wrapped C++ instance ahead of finalize() */ diff --git a/kdejava/koala/org/kde/koala/KURLCompletion.java b/kdejava/koala/org/kde/koala/KURLCompletion.java index 1b94b22e..db4f2632 100644 --- a/kdejava/koala/org/kde/koala/KURLCompletion.java +++ b/kdejava/koala/org/kde/koala/KURLCompletion.java @@ -15,7 +15,7 @@ import org.kde.qt.TQCustomEvent; @short Completion of a single URL. */ -public class KURLCompletion extends KCompletion { +public class KURLCompletion extends TDECompletion { protected KURLCompletion(Class dummy){super((Class) null);} /** Determines how completion is done. @@ -163,7 +163,7 @@ public class KURLCompletion extends KCompletion { public static native String replacedPath(String text, boolean replaceHome); protected native void postProcessMatch(StringBuffer match); protected native void postProcessMatches(String[] matches); - // void postProcessMatches(KCompletionMatches* arg1); >>>> NOT CONVERTED + // void postProcessMatches(TDECompletionMatches* arg1); >>>> NOT CONVERTED protected native void customEvent(TQCustomEvent e); // void slotEntries(TDEIO::Job* arg1,const TDEIO::UDSEntryList& arg2); >>>> NOT CONVERTED protected native void slotIOFinished(Job arg1); diff --git a/kdejava/koala/org/kde/koala/Makefile.am b/kdejava/koala/org/kde/koala/Makefile.am index 26927798..367f0235 100644 --- a/kdejava/koala/org/kde/koala/Makefile.am +++ b/kdejava/koala/org/kde/koala/Makefile.am @@ -1,7 +1,7 @@ ####### tdevelop will overwrite this part!!! (begin)########## -EXTRA_DIST = TDEGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java TDEAboutApplication.java TDEAboutContainer.java TDEAboutData.java TDEAboutDialog.java TDEAboutKDE.java TDEAboutPerson.java TDEAboutWidget.java TDEAccel.java TDEAction.java TDEActionCollection.java TDEActionMenu.java TDEActionSeparator.java KAnimWidget.java TDEApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java TDECModule.java KCharSelect.java KCharSelectTable.java KCharsets.java TDECmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java KCompletion.java KCompletionBase.java KCompletionBaseInterface.java TDEConfig.java TDEConfigBackEnd.java TDEConfigBase.java TDEConfigGroupSaver.java TDEConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java TDEFontAction.java TDEFontChooser.java TDEFontDialog.java TDEFontSizeAction.java TDEGlobalAccel.java TDEGlobalSettings.java KGradientSelector.java TDEHTMLPart.java TDEHTMLSettings.java TDEHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java TDEIconButton.java TDEIconCanvas.java TDEIconDialog.java TDEIconEffect.java TDEIconLoader.java TDEIconView.java KImageEffect.java KImageIO.java TDEInstance.java TDEInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java TDEListBox.java TDEListView.java TDELocale.java TDEMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java TDEPopupFrame.java TDEPopupMenu.java TDEPopupTitle.java KProcIO.java TDEProcess.java TDEProcessController.java TDEProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java TDERadioAction.java KRandomSequence.java TDERecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java TDESelectAction.java TDESelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java TDEShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java TDEStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java TDEStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java TDEToggleAction.java TDEToolBar.java TDEToolBarButton.java TDEToolBarRadioGroup.java TDEToolBarSeparator.java TDETrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java TDEAboutContributor.java TDEAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java KCompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java TDEFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java TDEToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java TDEAboutContainerSignals.java TDEAboutContributorSignals.java TDEAboutDialogSignals.java TDEAboutWidgetSignals.java TDEAccelSignals.java TDEActionCollectionSignals.java TDEActionSignals.java KAnimWidgetSignals.java TDEApplicationSignals.java TDECModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java KCompletionBoxSignals.java KCompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java TDEFontChooserSignals.java TDEFontDialogSignals.java TDEFontSizeActionSignals.java TDEHTMLPartSignals.java TDEHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java TDEIconButtonSignals.java TDEIconCanvasSignals.java TDEIconDialogSignals.java TDEIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java TDEListBoxSignals.java TDEListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java TDEPopupMenuSignals.java KProcIOSignals.java TDEProcessSignals.java KProgressSignals.java TDERecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java TDESelectActionSignals.java TDESelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java TDEToggleActionSignals.java TDEToolBarButtonSignals.java TDEToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java TDEListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java TDEIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java TDEShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java TDEAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java TDEListAction.java TDERecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java TDEPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java TDEToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java TDESharedConfig.java KShellProcess.java TDEShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java TDEToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java TDEBufferedIO.java TDEBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java TDEAccelShortcutList.java TDEActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java TDECModuleInfo.java TDECModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java TDEConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java TDEFontRequester.java TDEFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java TDEAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java +EXTRA_DIST = TDEGlobal.java KMdiToolViewAccessor.java BrowserExtension.java DCOPClient.java DCOPObject.java DCOPObjectInterface.java DCOPObjectProxy.java TDEAboutApplication.java TDEAboutContainer.java TDEAboutData.java TDEAboutDialog.java TDEAboutKDE.java TDEAboutPerson.java TDEAboutWidget.java TDEAccel.java TDEAction.java TDEActionCollection.java TDEActionMenu.java TDEActionSeparator.java KAnimWidget.java TDEApplication.java KAudioPlayer.java KAuthIcon.java KBugReport.java KButtonBox.java TDECModule.java KCharSelect.java KCharSelectTable.java KCharsets.java TDECmdLineArgs.java KColorButton.java KColorCombo.java KColorDrag.java KCombiView.java KComboBox.java TDECompletion.java TDECompletionBase.java TDECompletionBaseInterface.java TDEConfig.java TDEConfigBackEnd.java TDEConfigBase.java TDEConfigGroupSaver.java TDEConfigINIBackEnd.java KContextMenuManager.java KCursor.java KDCOPActionProxy.java KDCOPPropertyProxy.java KDEDesktopMimeType.java KDatePicker.java KDateTable.java KDateValidator.java KDesktopFile.java KDialog.java KDialogBase.java KDirOperator.java KDirWatch.java KDockWidgetAbstractHeader.java KDockWidgetAbstractHeaderDrag.java KDockWidgetHeader.java KDockWidgetHeaderDrag.java KDoubleNumInput.java KDualColorButton.java KEdFind.java KEdGotoLine.java KEdReplace.java KEditToolbar.java KEditToolbarWidget.java KEntry.java KEntryKey.java KExecMimeType.java KFile.java KFileDetailView.java KFileDialog.java KFileFilter.java KFileIconView.java KFileIconViewItem.java KFileItem.java KFileListViewItem.java KFilePreview.java KFileView.java KFileViewInterface.java KFileViewSignaler.java KFolderType.java TDEFontAction.java TDEFontChooser.java TDEFontDialog.java TDEFontSizeAction.java TDEGlobalAccel.java TDEGlobalSettings.java KGradientSelector.java TDEHTMLPart.java TDEHTMLSettings.java TDEHTMLView.java KHelpMenu.java KHistoryCombo.java KIPC.java TDEIconButton.java TDEIconCanvas.java TDEIconDialog.java TDEIconEffect.java TDEIconLoader.java TDEIconView.java KImageEffect.java KImageIO.java TDEInstance.java TDEInstanceInterface.java KIntNumInput.java KIntSpinBox.java KIntValidator.java KJanusWidget.java KKeyChooser.java KLed.java KLibFactory.java KLibLoader.java KLineEdit.java TDEListBox.java TDEListView.java TDELocale.java TDEMainWindow.java KMenuBar.java KMessageBox.java KMimeType.java KNotifyClient.java KNumInput.java KOpenWithDlg.java KPalette.java KPanelApplet.java KPanelMenu.java KPasswordDialog.java KPasswordEdit.java KPixmap.java KPixmapEffect.java KPixmapIO.java KPixmapProvider.java TDEPopupFrame.java TDEPopupMenu.java TDEPopupTitle.java KProcIO.java TDEProcess.java TDEProcessController.java TDEProcessRunner.java KProgress.java KProtocolInfo.java KProtocolManager.java KRFCDate.java TDERadioAction.java KRandomSequence.java TDERecentDocument.java KRestrictedLine.java KRootPermsIcon.java KRootPixmap.java KRootProp.java KRuler.java KRun.java KSSL.java KSSLCertificate.java KSSLCertificateHome.java KSSLConnectionInfo.java KSSLInfoDlg.java KSSLPeerInfo.java KSSLSettings.java KSSLX509Map.java KSaveFile.java TDESelectAction.java TDESelector.java KSeparator.java KService.java KServiceGroup.java KServiceOffer.java KServiceType.java KServiceTypeProfile.java KSessionManaged.java TDEShared.java KShellCompletion.java KShred.java KSimpleConfig.java KSpell.java KSpellConfig.java KSpellDlg.java TDEStandardDirs.java KStaticDeleterBase.java KStatusBar.java KStatusBarLabel.java TDEStdAccel.java KStdAction.java KStringHandler.java KSycoca.java KSycocaEntry.java KSystemTray.java KTabCtl.java KTempFile.java KTextBrowser.java TDEToggleAction.java TDEToolBar.java TDEToolBarButton.java TDEToolBarRadioGroup.java TDEToolBarSeparator.java TDETrader.java KURIFilter.java KURIFilterData.java KURIFilterPlugin.java KURL.java KURLComboBox.java KURLCompletion.java KURLDrag.java KURLLabel.java KURLRequester.java KURLRequesterDlg.java KUniqueApplication.java KWizard.java KWritePermsIcon.java KXMLGUIBuilder.java KXMLGUIBuilderInterface.java KXMLGUIClient.java KXMLGUIClientInterface.java KXMLGUIFactory.java KXYSelector.java Part.java PartBaseInterface.java ReadOnlyPart.java NetAccess.java kdejava.java Event.java GUIActivateEvent.java MouseEvent.java OpenURLEvent.java PartActivateEvent.java PartSelectEvent.java ReadWritePart.java DocumentFragment.java DocumentStyle.java DocumentType.java HTMLDocument.java NamedNodeMap.java CSSStyleSheet.java StyleSheet.java CSSException.java CSSPrimitiveValue.java CSSStyleDeclaration.java CSSValue.java Counter.java RGBColor.java Rect.java Element.java HTMLAnchorElement.java HTMLAppletElement.java HTMLAreaElement.java HTMLBRElement.java HTMLBaseElement.java HTMLBaseFontElement.java HTMLBlockquoteElement.java HTMLBodyElement.java HTMLButtonElement.java HTMLCollection.java HTMLDListElement.java HTMLDirectoryElement.java HTMLDivElement.java HTMLElement.java HTMLFieldSetElement.java HTMLFontElement.java HTMLFormElement.java HTMLFrameElement.java HTMLFrameSetElement.java HTMLHRElement.java HTMLHeadElement.java HTMLHeadingElement.java HTMLHtmlElement.java HTMLIFrameElement.java HTMLImageElement.java HTMLInputElement.java HTMLIsIndexElement.java HTMLLIElement.java HTMLLabelElement.java HTMLLegendElement.java HTMLLinkElement.java HTMLMapElement.java HTMLMenuElement.java HTMLMetaElement.java HTMLModElement.java HTMLOListElement.java HTMLObjectElement.java HTMLOptGroupElement.java HTMLOptionElement.java HTMLParagraphElement.java HTMLParamElement.java HTMLPreElement.java HTMLQuoteElement.java HTMLScriptElement.java HTMLSelectElement.java HTMLStyleElement.java HTMLTableCaptionElement.java HTMLTableCellElement.java HTMLTableColElement.java HTMLTableElement.java HTMLTableRowElement.java HTMLTableSectionElement.java HTMLTextAreaElement.java HTMLTitleElement.java HTMLUListElement.java Attr.java DockMainWindow.java MainWindow.java CDATASection.java Comment.java EntityReference.java NodeFilter.java NodeIterator.java ProcessingInstruction.java Range.java Text.java TreeWalker.java CharacterData.java CopyJob.java DeleteJob.java FileCopyJob.java Job.java KDirNotify.java KDirNotifyInterface.java KDirSize.java ListJob.java MimetypeJob.java SimpleJob.java StatJob.java TransferJob.java Connection.java Slave.java TDEAboutContributor.java TDEAboutTranslator.java KCodecs.java KCommand.java KCommandHistory.java TDECompletionBox.java KDialogQueue.java KEditListBox.java KFilterBase.java KFilterDev.java TDEFontCombo.java KMacroCommand.java KPanelExtension.java KPixmapSplitter.java KPreviewWidgetBase.java KPushButton.java KScanDialog.java KSqueezedTextLabel.java TDEToolBarPopupAction.java KTipDatabase.java KTipDialog.java BrowserExtensionSignals.java CopyJobSignals.java DCOPClientSignals.java DeleteJobSignals.java JobSignals.java TDEAboutContainerSignals.java TDEAboutContributorSignals.java TDEAboutDialogSignals.java TDEAboutWidgetSignals.java TDEAccelSignals.java TDEActionCollectionSignals.java TDEActionSignals.java KAnimWidgetSignals.java TDEApplicationSignals.java TDECModuleSignals.java KCharSelectSignals.java KCharSelectTableSignals.java KColorButtonSignals.java KColorComboSignals.java KComboBoxSignals.java KCommandHistorySignals.java TDECompletionBoxSignals.java TDECompletionSignals.java KDatePickerSignals.java KDateTableSignals.java KDialogBaseSignals.java KDialogSignals.java KDirListerSignals.java KDirOperatorSignals.java KDirWatchSignals.java KDoubleNumInputSignals.java KDualColorButtonSignals.java KEdFindSignals.java KEdReplaceSignals.java KEditListBoxSignals.java KEditSignals.java KEditToolbarSignals.java KEditToolbarWidgetSignals.java KFileDetailViewSignals.java KFileDialogSignals.java KFileIconViewSignals.java KFilePreviewSignals.java TDEFontChooserSignals.java TDEFontDialogSignals.java TDEFontSizeActionSignals.java TDEHTMLPartSignals.java TDEHTMLViewSignals.java KHelpMenuSignals.java KHistoryComboSignals.java TDEIconButtonSignals.java TDEIconCanvasSignals.java TDEIconDialogSignals.java TDEIconViewSignals.java KIntNumInputSignals.java KJanusWidgetSignals.java KKeyChooserSignals.java KLineEditSignals.java TDEListBoxSignals.java TDEListViewSignals.java KPanelAppletSignals.java KPanelExtensionSignals.java TDEPopupMenuSignals.java KProcIOSignals.java TDEProcessSignals.java KProgressSignals.java TDERecentFilesActionSignals.java KRestrictedLineSignals.java KRootPixmapSignals.java KRunSignals.java KScanDialogSignals.java TDESelectActionSignals.java TDESelectorSignals.java KShredSignals.java KSpellConfigSignals.java KSpellDlgSignals.java KSpellSignals.java KStatusBarLabelSignals.java KStatusBarSignals.java KSycocaSignals.java KSystemTraySignals.java KTabCtlSignals.java KTextBrowserSignals.java TDEToggleActionSignals.java TDEToolBarButtonSignals.java TDEToolBarSignals.java KURLComboBoxSignals.java KURLLabelSignals.java KURLRequesterSignals.java KXMLGUIFactorySignals.java KXYSelectorSignals.java ListJobSignals.java SlaveSignals.java StatJobSignals.java TransferJobSignals.java TDEListViewItem.java KTar.java KArchive.java KArchiveDirectory.java KSSLPKCS12.java KArchiveEntry.java KArchiveFile.java KFileMetaInfo.java KFileMetaInfoItem.java KGuiItem.java TDEIconViewItem.java KStdGuiItem.java KDataTool.java KDataToolAction.java KDataToolInfo.java KDateWidget.java KDirSelectDialog.java KEMailSettings.java KFileFilterCombo.java KFileTreeBranch.java KFileTreeView.java KFileTreeViewItem.java KFileTreeViewToolTip.java KMultipleDrag.java KWordWrap.java KDataToolActionSignals.java KDateWidgetSignals.java KFileFilterComboSignals.java KFileTreeBranchSignals.java KFileTreeViewSignals.java TDEShortcut.java KKey.java KKeyDialog.java KIO.java Scheduler.java SchedulerSignals.java StatusbarProgress.java ProgressBase.java ProgressBaseSignals.java KKeySequence.java KDockMainWindow.java KDockManager.java KDockManagerSignals.java KDockTabGroup.java KDockWidget.java KDockWidgetSignals.java KURLPixmapProvider.java TDEAccelAction.java KColor.java KColorCells.java KColorCellsSignals.java KColorDialog.java KColorDialogSignals.java KColorPatch.java KColorPatchSignals.java KHSSelector.java KPaletteTable.java KPaletteTableSignals.java KValueSelector.java DCOPAnswer.java KDE.java KSSLCertDlgRet.java TDEListAction.java TDERecentFilesAction.java KArrowButton.java KDateTimeWidget.java KDateTimeWidgetSignals.java KFindDialog.java KFind.java KFindSignals.java KMultiTabBarButton.java KMultiTabBarButtonSignals.java KMultiTabBarTab.java KPrintAction.java KPrintActionSignals.java KProgressDialog.java KReplaceDialog.java KReplace.java KReplaceSignals.java KURLBarSignals.java KMultiTabBar.java KCatalogue.java KDoubleValidator.java KKeyButton.java KMdiChildArea.java KMdiChildFrmCaption.java KMdiChildFrmDragBeginEvent.java KMdiChildFrmDragEndEvent.java KMdiChildFrm.java KMdiChildFrmMoveEvent.java KMdiChildFrmResizeBeginEvent.java KMdiChildFrmResizeEndEvent.java KMdiChildView.java KMdi.java KMdiMainFrm.java KMdiTaskBarButton.java KMdiTaskBar.java KMdiViewCloseEvent.java KMdiWin32IconButton.java TDEPasteTextAction.java KStringListValidator.java KTabBar.java KTabWidget.java KTextEdit.java KTimeWidget.java TDEToggleToolBarAction.java KURLComboRequester.java KMdiChildAreaSignals.java KMdiChildViewSignals.java KMdiMainFrmSignals.java KMdiTaskBarButtonSignals.java KMdiWin32IconButtonSignals.java KTabBarSignals.java KTabWidgetSignals.java KTimeWidgetSignals.java DefaultProgress.java SlaveBase.java KEdit.java KFloatValidator.java KMimeMagic.java KMimeMagicResult.java BrowserInterface.java CSSRule.java CSSRuleList.java CustomNodeFilter.java DavJob.java Document.java DomShared.java EventListener.java Invocation.java KCalendarSystem.java KDirLister.java KFileMetaInfoGroup.java KMimeSourceFactory.java TDESharedConfig.java KShellProcess.java TDEShortcutList.java KSSLCertBox.java KSSLCertChain.java KSSLSession.java KSSLX509V3.java TDEToggleFullScreenAction.java KURLBarItem.java KURLBar.java KURLBarListBox.java Marchaller.java MetaInfoJob.java Node.java Observer.java PreviewJob.java SlaveInterface.java UIEvent.java KAsyncIO.java KAsyncIOSignals.java TDEBufferedIO.java TDEBufferedIOSignals.java AuthInfo.java RenameDlg.java AbstractView.java KInputDialog.java KAuthIconSignals.java KFileViewSignalerSignals.java KKeyButtonSignals.java KLibFactorySignals.java KURLBarListBoxSignals.java MetaInfoJobSignals.java PartSignals.java PreviewJobSignals.java ReadOnlyPartSignals.java ReadWritePartSignals.java SlaveInterfaceSignals.java CSSCharsetRule.java CSSFontFaceRule.java CSSImportRule.java CSSMediaRule.java CSSPageRule.java CSSStyleRule.java CSSUnknownRule.java CSSValueList.java DOMException.java DOMImplementation.java Entity.java EventException.java Factory.java HistoryProvider.java HistoryProviderSignals.java HTMLFormCollection.java TDEAccelShortcutList.java TDEActionShortcutList.java KActiveLabel.java KAr.java KCalendarSystemFactory.java TDECModuleInfo.java TDECModuleLoader.java KCMultiDialog.java KCMultiDialogSignals.java TDEConfigGroup.java KCPUInfo.java KCustomMenuEditor.java KDCOPServiceStarter.java KDiskFreeSp.java KDiskFreeSpSignals.java KDockArea.java KDockAreaSignals.java KFilePlugin.java KFileShare.java TDEFontRequester.java TDEFontRequesterSignals.java KIDNA.java KKeyNative.java KMD5.java KMimeTypeResolverBase.java KMimeTypeResolverHelper.java KMimeTypeValidator.java KMountPoint.java KOCRDialog.java KOCRDialogSignals.java KPanelAppMenu.java KPanelAppMenuSignals.java KPassivePopup.java KPassivePopupSignals.java KPluginSelector.java KPluginSelectorSignals.java KRegExpEditorInterface.java KServiceSeparator.java KShell.java KSimpleFileFilter.java KSMIMECrypto.java KSpellingHighlighter.java KSSLCertDlg.java KSSLCertificateCache.java KSSLCertificateFactory.java KSSLKeyGen.java KSSLPKCS7.java KSSLSigners.java KSyntaxHighlighter.java KTempDir.java KURLBarItemDialog.java KWidgetAction.java KWindowInfo.java KXMLGUI.java KZipFileEntry.java KZip.java LinkStyle.java LiveConnectExtension.java LiveConnectExtensionSignals.java MultiGetJob.java MultiGetJobSignals.java MutationEvent.java Notation.java PartBase.java PasswordDialog.java Plugin.java RangeException.java SessionData.java SkipDlg.java SkipDlgSignals.java SlaveConfigSignals.java StatusBarExtension.java TextEvent.java KNamedCommand.java PartManager.java PartManagerSignals.java URLArgs.java WindowArgs.java BrowserHostExtension.java BrowserRun.java TDEAccelActions.java KDockMainWindowSignals.java StoredTransferJob.java ####### tdevelop will overwrite this part!!! (end)############ diff --git a/kdejava/koala/org/kde/koala/TDECompletion.java b/kdejava/koala/org/kde/koala/TDECompletion.java new file mode 100644 index 00000000..383189f5 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECompletion.java @@ -0,0 +1,482 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import java.util.ArrayList; +import org.kde.qt.TQObject; + +/** + + This class offers easy use of "auto-completion", "manual-completion" or + "shell completion" on String objects. A common use is completing filenames + or URLs (see KURLCompletion()). + But it is not limited to URL-completion -- everything should be completable! + The user should be able to complete email-addresses, telephone-numbers, + commands, SQL queries, ... + Every time your program knows what the user can type into an edit-field, you + should offer completion. With TDECompletion, this is very easy, and if you are + using a line edit widget ( KLineEdit), it is even more easy. + Basically, you tell a TDECompletion object what strings should be completable + and whenever completion should be invoked, you call makeCompletion(). + KLineEdit and (an editable) KComboBox even do this automatically for you. + TDECompletion offers the completed string via the signal match() and + all matching strings (when the result is ambiguous) via the method + allMatches(). + Notice: auto-completion, shell completion and manual completion work + slightly differently: + +
  • + auto-completion always returns a complete item as match. + When more than one matching items are available, it will deliver just + the first (depending on sorting order) item. Iterating over all matches + is possible via nextMatch() and previousMatch(). +
  • + +
  • + popup-completion works in the same way, the only difference being that + the completed items are not put into the edit-widget, but into a + separate popup-box. +
  • + +
  • + manual completion works the same way as auto-completion, the + subtle difference is, that it isn't invoked automatically while the user + is typing, but only when the user presses a special key. The difference + of manual and auto-completion is therefore only visible in UI classes, + TDECompletion needs to know whether to deliver partial matches + (shell completion) or whole matches (auto/manual completion), therefore + TDEGlobalSettings.CompletionMan and + TDEGlobalSettings.CompletionAuto have the exact same effect in + TDECompletion. +
  • + +
  • + shell completion works like how shells complete filenames: + when multiple matches are available, the longest possible string of all + matches is returned (i.e. only a partial item). + Iterating over all matching items (complete, not partial) is possible + via nextMatch() and previousMatch(). +
  • + You don't have to worry much about that though, TDECompletion handles + that for you, according to the setting setCompletionMode(). + The default setting is globally configured by the user and read + from TDEGlobalSettings.completionMode(). + A short example: +
    + TDECompletion completion;
    + completion.setOrder( TDECompletion.Sorted );
    + completion.addItem( "pfeiffer@kde.org" );
    + completion.addItem( "coolo@kde.org" );
    + completion.addItem( "carpdjih@sp.zrz.tu-berlin.de" );
    + completion.addItem( "carp@cs.tu-berlin.de" );
    + cout << completion.makeCompletion( "ca" ).latin1() << endl;
    + 
    + In shell-completion-mode, this will be "carp"; in auto-completion- + mode it will be "carp\@cs.tu-berlin.de", as that is alphabetically + smaller. + If setOrder was set to Insertion, "carpdjih\@sp.zrz.tu-berlin.de" + would be completed in auto-completion-mode, as that was inserted before + "carp\@cs.tu-berlin.de". + You can dynamically update the completable items by removing and adding them + whenever you want. + For advanced usage, you could even use multiple TDECompletion objects. E.g. + imagine an editor like kwrite with multiple open files. You could store + items of each file in a different TDECompletion object, so that you know (and + tell the user) where a completion comes from. + Note: TDECompletion does not work with strings that contain 0x0 characters + (unicode nul), as this is used internally as a delimiter. + You may inherit from TDECompletion and override makeCompletion() in + special cases (like reading directories/urls and then supplying the + contents to TDECompletion, as KURLCompletion does), but generally, this is + not necessary. + See {@link TDECompletionSignals} for signals emitted by TDECompletion + @author Carsten Pfeiffer + + @short A generic class for completing Strings. + +*/ +public class TDECompletion extends TQObject { + protected TDECompletion(Class dummy){super((Class) null);} + /** + Constants that represent the order in which TDECompletion performs + completion-lookups. + @short Constants that represent the order in which TDECompletion performs completion-lookups. + */ + public static final int Sorted = 0; + public static final int Insertion = 1; + public static final int Weighted = 2; + + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructor, nothing special here :) + @short Constructor, nothing special here :) + */ + public TDECompletion() { + super((Class) null); + newTDECompletion(); + } + private native void newTDECompletion(); + /** + Attempts to find an item in the list of available completions, + that begins with string. Will either return the first matching item + (if there is more than one match) or null, if no match was + found. + In the latter case, a sound will be issued, depending on + isSoundsEnabled(). + If a match was found, it will also be emitted via the signal + match(). + If this is called twice or more often with the same string while no + items were added or removed in the meantime, all available completions + will be emitted via the signal #matches(). + This happens only in shell-completion-mode. + @param string the string to complete + @return the matching item, or null if there is no matching + item. + + @short Attempts to find an item in the list of available completions, that begins with string. + @see #slotMakeCompletion + @see #substringCompletion + */ + public native String makeCompletion(String string); + /** + Returns a list of all completion items that contain the given string. + @param string the string to complete + @return a list of items which all contain text as a substring, + i.e. not necessarily at the beginning. + + @short Returns a list of all completion items that contain the given string. + @see #makeCompletion + */ + public native ArrayList substringCompletion(String string); + /** + Returns the next item from the matching-items-list. + When reaching the beginning, the list is rotated so it will return the + last match and a sound is issued (depending on isSoundsEnabled()). + @return the next item from the matching-items-list. + When there is no match, null is returned and + a sound is be issued. + + @short Returns the next item from the matching-items-list. + @see #slotPreviousMatch + */ + public native String previousMatch(); + /** + Returns the next item from the matching-items-list. + When reaching the last item, the list is rotated, so it will return + the first match and a sound is issued (depending on + isSoundsEnabled()). + @return the next item from the matching-items-list. When there is no + match, null is returned and a sound is issued + + @short Returns the next item from the matching-items-list. + @see #slotNextMatch + */ + public native String nextMatch(); + /** + Returns the last match. Might be useful if you need to check whether + a completion is different from the last one. + @return the last match. null is returned when there is no + last match. + + @short Returns the last match. + */ + public native String lastMatch(); + /** + Returns a list of all items inserted into TDECompletion. This is useful + if you need to save the state of a TDECompletion object and restore it + later. + Important note: when order() == Weighted, then every item in the + stringlist has its weight appended, delimited by a colon. E.g. an item + "www.kde.org" might look like "www.kde.org:4", where 4 is the weight. + This is necessary so that you can save the items along with its + weighting on disk and load them back with setItems(), restoring its + weight as well. If you really don't want the appended weightings, call + setOrder( TDECompletion.Insertion ) + before calling items(). + @return a list of all items + + @short Returns a list of all items inserted into TDECompletion. + @see #setItems + */ + public native ArrayList items(); + /** + Returns true when the completion object contains no entries. + @short Returns true when the completion object contains no entries. + */ + public native boolean isEmpty(); + /** + Sets the completion mode to Auto/Manual, Shell or None. + If you don't set the mode explicitly, the global default value + TDEGlobalSettings.completionMode() is used. + TDEGlobalSettings.CompletionNone disables completion. + @param mode the completion mode + @short Sets the completion mode to Auto/Manual, Shell or None. + @see #completionMode + @see TDEGlobalSettings#completionMode + */ + public native void setCompletionMode(int mode); + /** + Return the current completion mode. + May be different from TDEGlobalSettings.completionMode(), if you + explicitly called setCompletionMode(). + @return the current completion mode + + @short Return the current completion mode. + @see #setCompletionMode + */ + public native int completionMode(); + /** + TDECompletion offers three different ways in which it offers its items: + +
  • + in the order of insertion +
  • + +
  • + sorted alphabetically +
  • + +
  • + weighted +
  • + Choosing weighted makes TDECompletion perform an implicit weighting based + on how often an item is inserted. Imagine a web browser with a location + bar, where the user enters URLs. The more often a URL is entered, the + higher priority it gets. + Note: Setting the order to sorted only affects new inserted items, + already existing items will stay in the current order. So you probably + want to call setOrder( Sorted ) before inserting items, when you want + everything sorted. + Default is insertion order. + @param order the new order + @short TDECompletion offers three different ways in which it offers its items: + @see #order + */ + public native void setOrder(int order); + /** + Returns the completion order. + @return the current completion order. + + @short Returns the completion order. + @see #setOrder + */ + public native int order(); + /** + Setting this to true makes TDECompletion behave case insensitively. + E.g. makeCompletion( "CA" ); might return "carp\@cs.tu-berlin.de". + Default is false (case sensitive). + @param ignoreCase true to ignore the case + @short Setting this to true makes TDECompletion behave case insensitively. + @see #ignoreCase + */ + public native void setIgnoreCase(boolean ignoreCase); + /** + Return whether TDECompletion acts case insensitively or not. + Default is false (case sensitive). + @return true if the case will be ignored + + @short Return whether TDECompletion acts case insensitively or not. + @see #setIgnoreCase + */ + public native boolean ignoreCase(); + /** + Returns a list of all items matching the last completed string. + Might take some time, when you have LOTS of items. + @return a list of all matches for the last completed string. + + @short Returns a list of all items matching the last completed string. + @see #substringCompletion + */ + public native ArrayList allMatches(); + /** + Returns a list of all items matching string. + @param string the string to match + @return the list of all matches + + @short Returns a list of all items matching string. + */ + public native ArrayList allMatches(String string); + /** + Returns a list of all items matching the last completed string. + Might take some time, when you have LOTS of items. + The matches are returned as TDECompletionMatches, which also + keeps the weight of the matches, allowing + you to modify some matches or merge them with matches + from another call to allWeightedMatches(), and sort the matches + after that in order to have the matches ordered correctly. + @return a list of all completion matches + + @short Returns a list of all items matching the last completed string. + @see #substringCompletion + */ + // TDECompletionMatches allWeightedMatches(); >>>> NOT CONVERTED + /** + Returns a list of all items matching string. + @param string the string to match + @return a list of all matches + + @short Returns a list of all items matching string. + */ + // TDECompletionMatches allWeightedMatches(const TQString& arg1); >>>> NOT CONVERTED + /** + Enables/disables playing a sound when + +
  • + makeCompletion() can't find a match +
  • + +
  • + there is a partial completion (= multiple matches in + Shell-completion mode) +
  • + +
  • + nextMatch() or previousMatch() hit the last possible + match . rotation +
  • + For playing the sounds, KNotifyClient() is used. + @param enable true to enable sounds + @short Enables/disables playing a sound when + @see #isSoundsEnabled + */ + public native void setEnableSounds(boolean enable); + /** + Tells you whether TDECompletion will play sounds on certain occasions. + Default is enabled. + @return true if sounds are enabled + + @short Tells you whether TDECompletion will play sounds on certain occasions. + @see #enableSounds + @see #disableSounds + */ + public native boolean isSoundsEnabled(); + /** + Returns true when more than one match is found. + @return true if there are more than one match + + @short Returns true when more than one match is found. + @see #multipleMatches + */ + public native boolean hasMultipleMatches(); + /** + Attempts to complete "string" and emits the completion via match(). + Same as makeCompletion() (just as a slot). + @param string the string to complete + @short Attempts to complete "string" and emits the completion via match(). + @see #makeCompletion + */ + public native void slotMakeCompletion(String string); + /** + Searches the previous matching item and emits it via match(). + Same as previousMatch() (just as a slot). + @short Searches the previous matching item and emits it via match(). + @see #previousMatch + */ + public native void slotPreviousMatch(); + /** + Searches the next matching item and emits it via match(). + Same as nextMatch() (just as a slot). + @short Searches the next matching item and emits it via match(). + @see #nextMatch + */ + public native void slotNextMatch(); + /** + Inserts items into the list of possible completions. + Does the same as setItems(), but does not call clear() before. + @param items the items to insert + @short Inserts items into the list of possible completions. + */ + public native void insertItems(String[] items); + /** + Sets the list of items available for completion. Removes all previous + items. + Notice: when order() == Weighted, then the weighting is looked up for + every item in the stringlist. Every item should have ":number" appended, + where number is an unsigned integer, specifying the weighting. + If you don't like this, call + setOrder( TDECompletion.Insertion ) + before calling setItems(). + @param list the list of items that are available for completion + @short Sets the list of items available for completion. + @see #items + */ + public native void setItems(String[] list); + /** + Adds an item to the list of available completions. + Resets the current item-state ( previousMatch() and nextMatch() + won't work anymore). + @param item the item to add + @short Adds an item to the list of available completions. + */ + public native void addItem(String item); + /** + Adds an item to the list of available completions. + Resets the current item-state ( previousMatch() and nextMatch() + won't work anymore). + Sets the weighting of the item to weight or adds it to the current + weighting if the item is already available. The weight has to be greater + than 1 to take effect (default weight is 1). + @param item the item to add + @param weight the weight of the item, default is 1 + @short Adds an item to the list of available completions. + */ + public native void addItem(String item, int weight); + /** + Removes an item from the list of available completions. + Resets the current item-state ( previousMatch() and nextMatch() + won't work anymore). + @param item the item to remove + @short Removes an item from the list of available completions. + */ + public native void removeItem(String item); + /** + Removes all inserted items. + @short Removes all inserted items. + */ + public native void clear(); + /** + This method is called after a completion is found and before the + matching string is emitted. You can override this method to modify the + string that will be emitted. + This is necessary e.g. in KURLCompletion(), where files with spaces + in their names are shown escaped ("filename\ with\ spaces"), but stored + unescaped inside TDECompletion. + Never delete that pointer! + Default implementation does nothing. + @param match the match to process + @short This method is called after a completion is found and before the matching string is emitted. + @see #postProcessMatches + */ + protected native void postProcessMatch(StringBuffer match); + /** + This method is called before a list of all available completions is + emitted via #matches. You can override this method to modify the + found items before match() or #matches are emitted. + Never delete that pointer! + Default implementation does nothing. + @param matches the matches to process + @short This method is called before a list of all available completions is emitted via #matches. + @see #postProcessMatch + */ + protected native void postProcessMatches(String[] matches); + /** + This method is called before a list of all available completions is + emitted via #matches. You can override this method to modify the + found items before #match() or #matches() are emitted. + Never delete that pointer! + Default implementation does nothing. + @param matches the matches to process + @short This method is called before a list of all available completions is emitted via #matches. + @see #postProcessMatch + */ + // void postProcessMatches(TDECompletionMatches* arg1); >>>> NOT CONVERTED + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDECompletionBase.java b/kdejava/koala/org/kde/koala/TDECompletionBase.java new file mode 100644 index 00000000..dfcb6968 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECompletionBase.java @@ -0,0 +1,281 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.QtSupport; + +/** + + An abstract base class for adding a completion feature + into widgets. + This is a convenience class that provides the basic functions + needed to add text completion support into widgets. All that + is required is an implementation for the pure function + setCompletedText. Refer to KLineEdit or KComboBox + to see how easily such support can be added using this as a base + class. + @author Dawit Alemayehu + + @short An abstract class for adding text completion support to widgets. + +*/ +public class TDECompletionBase implements QtSupport, TDECompletionBaseInterface { + private long _qt; + private boolean _allocatedInJavaWorld = true; + protected TDECompletionBase(Class dummy){} + + /** + Constants that represent the items whose short-cut + key-binding is programmable. The default key-bindings + for these items are defined in TDEStdAccel. + @short Constants that represent the items whose short-cut key-binding is programmable. + */ + public static final int TextCompletion = 0; + public static final int PrevCompletionMatch = 1; + public static final int NextCompletionMatch = 2; + public static final int SubstringCompletion = 3; + + /** + Default constructor. + @short Default constructor. + */ + /** + Returns a pointer to the current completion object. + If the completion object does not exist, it is automatically created and + by default handles all the completion signals internally unless hsig + is set to false. It is also automatically destroyed when the destructor + is called. You can change this default behavior using the + {@link #setAutoDeleteCompletionObject} and {@link #setHandleSignals} member + functions. + See also {@link #compObj}. + @param hsig if true, handles completion signals internally. + @return a pointer the completion object. + + @short Returns a pointer to the current completion object. + */ + public native TDECompletion completionObject(boolean hsig); + public native TDECompletion completionObject(); + /** + Sets up the completion object to be used. + This method assigns the completion object and sets it up to automatically + handle the completion and rotation signals internally. You should use + this function if you want to share one completion object among your + widgets or need to use a customized completion object. + The object assigned through this method is not deleted when this object's + destructor is invoked unless you explicitly call {@link #setAutoDeleteCompletionObject} + after calling this method. Be sure to set the boolean argument to false, if + you want to handle the completion signals yourself. + @param compObj a TDECompletion() or a derived child object. + @param hsig if true, handles completion signals internally. + @short Sets up the completion object to be used. + */ + public native void setCompletionObject(TDECompletion compObj, boolean hsig); + public native void setCompletionObject(TDECompletion compObj); + /** + Enables this object to handle completion and rotation + events internally. + This function simply assigns a booleanean value that + indicates whether it should handle rotation and + completion events or not. Note that this does not + stop the object from emitting signals when these + events occur. + @param handle if true, handle completion & rotation internally. + @short Enables this object to handle completion and rotation events internally. + */ + public native void setHandleSignals(boolean handle); + /** + Returns true if the completion object is deleted + upon this widget's destruction. + See setCompletionObject() and enableCompletion() + for details. + @return true if the completion object will be deleted + automatically + + @short Returns true if the completion object is deleted upon this widget's destruction. + */ + public native boolean isCompletionObjectAutoDeleted(); + /** + Sets the completion object when this widget's destructor + is called. + If the argument is set to true, the completion object + is deleted when this widget's destructor is called. + @param autoDelete if true, delete completion object on destruction. + @short Sets the completion object when this widget's destructor is called. + */ + public native void setAutoDeleteCompletionObject(boolean autoDelete); + /** + Sets the widget's ability to emit text completion and + rotation signals. + Invoking this function with enable set to false will + cause the completion & rotation signals not to be emitted. + However, unlike setting the completion object to NULL + using setCompletionObject, disabling the emition of + the signals through this method does not affect the current + completion object. + There is no need to invoke this function by default. When a + completion object is created through completionObject or + setCompletionObject, these signals are set to emit + automatically. Also note that disabling this signals will not + necessarily interfere with the objects ability to handle these + events internally. See setHandleSignals. + @param enable if false, disables the emition of completion & rotation signals. + @short Sets the widget's ability to emit text completion and rotation signals. + */ + public native void setEnableSignals(boolean enable); + /** + Returns true if the object handles the signals. + @return true if this signals are handled internally. + + @short Returns true if the object handles the signals. + */ + public native boolean handleSignals(); + /** + Returns true if the object emits the signals. + @return true if signals are emitted + + @short Returns true if the object emits the signals. + */ + public native boolean emitSignals(); + /** + Sets the type of completion to be used. + The completion modes supported are those defined in + TDEGlobalSettings(). See below. + @param mode Completion type: + +
  • + CompletionNone: Disables completion feature. +
  • + +
  • + CompletionAuto: Attempts to find a match & + fills-in the remaining text. +
  • + +
  • + CompletionMan: Acts the same as the above + except the action has to be + manually triggered through + pre-defined completion key. +
  • + +
  • + CompletionShell: Mimics the completion feature + found in typical nix shell + environments. +
  • + +
  • + CompletionPopup: Shows all available completions at once, + in a listbox popping up. + +
  • @short Sets the type of completion to be used. + */ + public native void setCompletionMode(int mode); + /** + Returns the current completion mode. + The return values are of type TDEGlobalSettings.Completion. + See setCompletionMode() for details. + @return the completion mode. + + @short Returns the current completion mode. + */ + public native int completionMode(); + /** + Sets the key-binding to be used for manual text + completion, text rotation in a history list as + well as a completion list. + When the keys set by this function are pressed, a + signal defined by the inheriting widget will be activated. + If the default value or 0 is specified by the second + parameter, then the key-binding as defined in the global + setting should be used. This method returns false value + for key is negative or the supplied key-binding conflicts + with the ones set for one of the other features. + NOTE: To use a modifier key (Shift, Ctrl, Alt) as part of + the key-binding simply simply sum up the values of the + modifier and the actual key. For example, to use CTRL+E as + a key binding for one of the items, you would simply supply + "Qt.CtrlButton + Qt.Key_E" as the second argument to this + function. + @param item the feature whose key-binding needs to be set: + +
  • + TextCompletion the manual completion key-binding. +
  • + +
  • + PrevCompletionMatch the previous match key for multiple completion. +
  • + +
  • + NextCompletionMatch the next match key for for multiple completion. +
  • + +
  • + SubstringCompletion the key for substring completion +
  • + @param key key-binding used to rotate down in a list. + @return true if key-binding can successfully be set. + + @short Sets the key-binding to be used for manual text completion, text rotation in a history list as well as a completion list. + @see #getKeyBinding + */ + public native boolean setKeyBinding(int item, TDEShortcut key); + /** + Returns the key-binding used for the specified item. + This methods returns the key-binding used to activate + the feature feature given by item. If the binding + contains modifier key(s), the SUM of the modifier key + and the actual key code are returned. + @param item the item to check + @return the key-binding used for the feature given by item. + + @short Returns the key-binding used for the specified item. + @see #setKeyBinding + */ + public native TDEShortcut getKeyBinding(int item); + /** + Sets this object to use global values for key-bindings. + This method changes the values of the key bindings for + rotation and completion features to the default values + provided in TDEGlobalSettings. + NOTE: By default inheriting widgets should uses the + global key-bindings so that there will be no need to + call this method. + @short Sets this object to use global values for key-bindings. + */ + public native void useGlobalKeyBindings(); + /** + A pure function that must be implemented by + all inheriting classes. + This function is intended to allow external completion + implementations to set completed text appropriately. It + is mostly relevant when the completion mode is set to + CompletionAuto and CompletionManual modes. See + TDECompletionBase.setCompletedText. + Does nothing in CompletionPopup mode, as all available + matches will be shown in the popup. + @param text the completed text to be set in the widget. + @short A pure virtual function that must be implemented by all inheriting classes. + */ + public native void setCompletedText(String text); + /** + A pure function that must be implemented by + all inheriting classes. + @param items the list of completed items + @short A pure virtual function that must be implemented by all inheriting classes. + */ + public native void setCompletedItems(String[] items); + /** + Returns a pointer to the completion object. + This method is only different from completionObject() + in that it does not create a new TDECompletion object even if + the internal pointer is NULL. Use this method to get the + pointer to a completion object when inheriting so that you + won't inadvertently create it!! + @return the completion object or NULL if one does not exist. + + @short Returns a pointer to the completion object. + */ + public native TDECompletion compObj(); +} diff --git a/kdejava/koala/org/kde/koala/TDECompletionBaseInterface.java b/kdejava/koala/org/kde/koala/TDECompletionBaseInterface.java new file mode 100644 index 00000000..7609c642 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECompletionBaseInterface.java @@ -0,0 +1,25 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.QtSupport; + +public interface TDECompletionBaseInterface { + TDECompletion completionObject(boolean hsig); + TDECompletion completionObject(); + void setCompletionObject(TDECompletion compObj, boolean hsig); + void setCompletionObject(TDECompletion compObj); + void setHandleSignals(boolean handle); + boolean isCompletionObjectAutoDeleted(); + void setAutoDeleteCompletionObject(boolean autoDelete); + void setEnableSignals(boolean enable); + boolean handleSignals(); + boolean emitSignals(); + void setCompletionMode(int mode); + int completionMode(); + boolean setKeyBinding(int item, TDEShortcut key); + TDEShortcut getKeyBinding(int item); + void useGlobalKeyBindings(); + void setCompletedText(String text); + void setCompletedItems(String[] items); + TDECompletion compObj(); +} diff --git a/kdejava/koala/org/kde/koala/TDECompletionBox.java b/kdejava/koala/org/kde/koala/TDECompletionBox.java new file mode 100644 index 00000000..e1a5b701 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECompletionBox.java @@ -0,0 +1,197 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.Qt; +import org.kde.qt.TQListBoxItem; +import org.kde.qt.TQRect; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQObject; +import org.kde.qt.TQSize; +import java.util.ArrayList; +import org.kde.qt.TQEvent; +import org.kde.qt.TQWidget; + +/** + + A little utility class for "completion-widgets", like KLineEdit or + KComboBox. TDECompletionBox is a listbox, displayed as a rectangle without + any window decoration, usually directly under the lineedit or combobox. + It is filled with all possible matches for a completion, so the user + can select the one he wants. + It is used when TDEGlobalSettings.Completion == CompletionPopup or CompletionPopupAuto. + See {@link TDECompletionBoxSignals} for signals emitted by TDECompletionBox + @author Carsten Pfeiffer + + @short A helper widget for "completion-widgets" (KLineEdit, KComboBox)). + +*/ +public class TDECompletionBox extends TDEListBox { + protected TDECompletionBox(Class dummy){super((Class) null);} + public native TQMetaObject metaObject(); + public native String className(); + /** + Constructs a TDECompletionBox. + The parent widget is used to give the focus back when pressing the + up-button on the very first item. + @short Constructs a TDECompletionBox. + */ + public TDECompletionBox(TQWidget parent, String name) { + super((Class) null); + newTDECompletionBox(parent,name); + } + private native void newTDECompletionBox(TQWidget parent, String name); + public TDECompletionBox(TQWidget parent) { + super((Class) null); + newTDECompletionBox(parent); + } + private native void newTDECompletionBox(TQWidget parent); + public native TQSize sizeHint(); + /** + @return true if selecting an item results in the emition of the selected signal. + + @short + */ + public native boolean activateOnSelect(); + /** + Returns a list of all items currently in the box. + @short Returns a list of all items currently in the box. + */ + public native ArrayList items(); + /** + Inserts items into the box. Does not clear the items before. + index determines at which position items will be inserted. + (defaults to appending them at the end) + @short Inserts items into the box. + */ + public native void insertItems(String[] items, int index); + public native void insertItems(String[] items); + /** + Clears the box and inserts items. + @short Clears the box and inserts items. + */ + public native void setItems(String[] items); + /** + Adjusts the size of the box to fit the width of the parent given in the + constructor and pops it up at the most appropriate place, relative to + the parent. + Depending on the screensize and the position of the parent, this may + be a different place, however the default is to pop it up and the + lower left corner of the parent. + Make sure to hide() the box when appropriate. + @short Adjusts the size of the box to fit the width of the parent given in the constructor and pops it up at the most appropriate place, relative to the parent. + */ + public native void popup(); + /** + Makes this widget (when visible) capture Tab-key events to traverse the + items in the dropdown list. + Default off, as it conflicts with the usual behavior of Tab to traverse + widgets. It is useful for cases like Konqueror's Location Bar, though. + @short Makes this widget (when visible) capture Tab-key events to traverse the items in the dropdown list. + @see #isTabHandling + */ + public native void setTabHandling(boolean enable); + /** + Default is false. + @return true if this widget is handling Tab-key events to traverse the + items in the dropdown list, otherwise false. + + @short + @see #setTabHandling + */ + public native boolean isTabHandling(); + /** + Sets the text to be emitted if the user chooses not to + pick from the available matches. + If the canceled text is not set through this function, the + userCancelled signal will not be emitted. + @param txt the text to be emitted if the user cancels this box + @short Sets the text to be emitted if the user chooses not to pick from the available matches. + @see #userCancelled( + @see #const + */ + public native void setCancelledText(String txt); + /** + @return the text set via setCancelledText() or null. + + @short + */ + public native String cancelledText(); + /** + Set whether or not the selected signal should be emitted when an + item is selected. By default the selected signal is emitted. + @param state false if the signal should not be emitted. + @short Set whether or not the selected signal should be emitted when an item is selected. + */ + public native void setActivateOnSelect(boolean state); + /** + Moves the selection one line down or select the first item if nothing is selected yet. + @short Moves the selection one line down or select the first item if nothing is selected yet. + */ + public native void down(); + /** + Moves the selection one line up or select the first item if nothing is selected yet. + @short Moves the selection one line up or select the first item if nothing is selected yet. + */ + public native void up(); + /** + Moves the selection one page down. + @short Moves the selection one page down. + */ + public native void pageDown(); + /** + Moves the selection one page up. + @short Moves the selection one page up. + */ + public native void pageUp(); + /** + Moves the selection up to the first item. + @short Moves the selection up to the first item. + */ + public native void home(); + /** + Moves the selection down to the last item. + @short Moves the selection down to the last item. + */ + public native void end(); + /** + Re-implemented for internal reasons. API is unaffected. + @short Re-implemented for internal reasons. + */ + public native void show(); + /** + Re-implemented for internal reasons. API is unaffected. + @short Re-implemented for internal reasons. + */ + public native void hide(); + /** + This calculates the size of the dropdown and the relative position of the top + left corner with respect to the parent widget. This matches the geometry and position + normally used by K/TQComboBox when used with one. + @short This calculates the size of the dropdown and the relative position of the top left corner with respect to the parent widget. + */ + protected native TQRect calculateGeometry(); + /** + This properly sizes and positions the listbox. + @short This properly sizes and positions the listbox. + */ + protected native void sizeAndPosition(); + /** + Reimplemented from TDEListBox to get events from the viewport (to hide + this widget on mouse-click, Escape-presses, etc. + @short Reimplemented from TDEListBox to get events from the viewport (to hide this widget on mouse-click, Escape-presses, etc. + */ + public native boolean eventFilter(TQObject arg1, TQEvent arg2); + /** + Called when an item was activated. Emits + activated() with the item. + @short Called when an item was activated. + */ + protected native void slotActivated(TQListBoxItem arg1); + /** Deletes the wrapped C++ instance */ + protected native void finalize() throws InternalError; + /** Delete the wrapped C++ instance ahead of finalize() */ + public native void dispose(); + /** Has the wrapped C++ instance been deleted? */ + public native boolean isDisposed(); +} diff --git a/kdejava/koala/org/kde/koala/TDECompletionBoxSignals.java b/kdejava/koala/org/kde/koala/TDECompletionBoxSignals.java new file mode 100644 index 00000000..d9f97ad6 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECompletionBoxSignals.java @@ -0,0 +1,27 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQListBoxItem; +import org.kde.qt.TQRect; +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import org.kde.qt.TQObject; +import org.kde.qt.TQSize; +import java.util.ArrayList; +import org.kde.qt.TQEvent; +import org.kde.qt.TQWidget; + +public interface TDECompletionBoxSignals { + /** + Emitted when an item was selected, contains the text of + the selected item. + @short Emitted when an item was selected, contains the text of the selected item. + */ + void activated(String arg1); + /** + Emitted whenever the user chooses to ignore the available + selections and close the this box. + @short Emitted whenever the user chooses to ignore the available selections and close the this box. + */ + void userCancelled(String arg1); +} diff --git a/kdejava/koala/org/kde/koala/TDECompletionSignals.java b/kdejava/koala/org/kde/koala/TDECompletionSignals.java new file mode 100644 index 00000000..269b8440 --- /dev/null +++ b/kdejava/koala/org/kde/koala/TDECompletionSignals.java @@ -0,0 +1,32 @@ +//Auto-generated by kalyptus. DO NOT EDIT. +package org.kde.koala; + +import org.kde.qt.TQMetaObject; +import org.kde.qt.QtSupport; +import java.util.ArrayList; + +public interface TDECompletionSignals { + /** + The matching item. Will be emitted by makeCompletion(), + previousMatch() or nextMatch(). May be null if there + is no matching item. + @param item the match, or null if there is none + @short The matching item. + */ + void match(String item); + /** + All matching items. Will be emitted by makeCompletion() in shell- + completion-mode, when the same string is passed to makeCompletion twice + or more often. + @param matchlist the list of matches + @short All matching items. + */ + void matches(String[] matchlist); + /** + This signal is emitted, when calling makeCompletion() and more than + one matching item is found. + @short This signal is emitted, when calling makeCompletion() and more than one matching item is found. + @see #hasMultipleMatches + */ + void multipleMatches(); +} diff --git a/kdejava/koala/org/kde/koala/TDEGlobalSettings.java b/kdejava/koala/org/kde/koala/TDEGlobalSettings.java index af96ba44..f7130aac 100644 --- a/kdejava/koala/org/kde/koala/TDEGlobalSettings.java +++ b/kdejava/koala/org/kde/koala/TDEGlobalSettings.java @@ -33,10 +33,10 @@ public class TDEGlobalSettings implements QtSupport { public static final int Enable = 2; /** - This enum describes the completion mode used for by the KCompletion class. + This enum describes the completion mode used for by the TDECompletion class. See the styleguide. - @short This enum describes the completion mode used for by the KCompletion class. + @short This enum describes the completion mode used for by the TDECompletion class. */ public static final int CompletionNone = 1; public static final int CompletionAuto = 2; diff --git a/kdejava/koala/org/kde/koala/TDEListView.java b/kdejava/koala/org/kde/koala/TDEListView.java index 129a3314..35f1b018 100644 --- a/kdejava/koala/org/kde/koala/TDEListView.java +++ b/kdejava/koala/org/kde/koala/TDEListView.java @@ -200,7 +200,7 @@ public class TDEListView extends TQListView { public native TQListViewItem lastChild(); /** @return the lineedit used for inline renaming. - Use that to setup a KCompletion or TQValidator for the lineedit + Use that to setup a TDECompletion or TQValidator for the lineedit @short */ -- cgit v1.2.1