Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

OCompletion Class Reference

A generic class for completing QStrings. More...

#include </home/clem/local/src/opie/libopie2/qt3/opiecore/ocompletion.h>

Collaboration diagram for OCompletion:

Collaboration graph
[legend]
List of all members.

Public Types

enum  CompOrder { Sorted, Insertion, Weighted }

Public Slots

void slotMakeCompletion (const QString &string)
void slotPreviousMatch ()
void slotNextMatch ()
void insertItems (const QStringList &items)
virtual void setItems (const QStringList &)
void addItem (const QString &)
void addItem (const QString &, uint weight)
void removeItem (const QString &)
virtual void clear ()

Signals

void match (const QString &)
void matches (const QStringList &)
void multipleMatches ()

Public Member Functions

 OCompletion ()
virtual ~OCompletion ()
virtual QString makeCompletion (const QString &string)
QStringList substringCompletion (const QString &string) const
QString previousMatch ()
QString nextMatch ()
virtual const QStringlastMatch () const
QStringList items () const
virtual void setCompletionMode (OGlobalSettings::Completion mode)
OGlobalSettings::Completion completionMode () const
virtual void setOrder (CompOrder order)
CompOrder order () const
virtual void setIgnoreCase (bool ignoreCase)
bool ignoreCase () const
QStringList allMatches ()
QStringList allMatches (const QString &string)
OCompletionMatches allWeightedMatches ()
OCompletionMatches allWeightedMatches (const QString &string)
virtual void setEnableSounds (bool enable)
bool isSoundsEnabled () const
bool hasMultipleMatches () const

Protected Member Functions

virtual void postProcessMatch (QString *) const
virtual void postProcessMatches (QStringList *) const
virtual void postProcessMatches (OCompletionMatches *) const

Properties

CompOrder order
bool ignoreCase
QStringList items

Private Types

enum  BeepMode { NoMatch, PartialMatch, Rotation }

Private Member Functions

void addWeightedItem (const QString &)
QString findCompletion (const QString &string)
void findAllCompletions (const QString &, OCompletionMatchesWrapper *matches, bool &hasMultipleMatches) const
void extractStringsFromNode (const OCompTreeNode *, const QString &beginning, OCompletionMatchesWrapper *matches, bool addWeight=false) const
void extractStringsFromNodeCI (const OCompTreeNode *, const QString &beginning, const QString &restString, OCompletionMatchesWrapper *matches) const
void doBeep (BeepMode) const

Private Attributes

OGlobalSettings::Completion myCompletionMode
CompOrder myOrder
QString myLastString
QString myLastMatch
QString myCurrentMatch
OCompTreeNodemyTreeRoot
QStringList myRotations
bool myBeep
bool myIgnoreCase
bool myHasMultipleMatches
uint myRotationIndex
OCompletionPrivated

Detailed Description

A generic class for completing QStrings.

This class offers easy use of "auto-completion", "manual-completion" or "shell completion" on QString objects. A common use is completing filenames or URLs (see OURLCompletion()). 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 OCompletion, this is very easy, and if you are using a line edit widget (OLineEdit), it is even more easy. Basically, you tell a OCompletion object what strings should be completable and whenever completion should be invoked, you call makeCompletion(). OLineEdit and (an editable) OComboBox even do this automatically for you.

OCompletion 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:

You don't have to worry much about that though, OCompletion handles that for you, according to the setting setCompletionMode(). The default setting is globally configured by the user and read from OGlobalSettings::completionMode().

A short example:

 OCompletion completion;
 completion.setOrder( OCompletion::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 OCompletion objects. E.g. imagine an editor like kwrite with multiple open files. You could store items of each file in a different OCompletion object, so that you know (and tell the user) where a completion comes from.

Note: OCompletion does not work with strings that contain 0x0 characters (unicode nul), as this is used internally as a delimiter.

You may inherit from OCompletion and override makeCompletion() in special cases (like reading directories/urls and then supplying the contents to OCompletion, as OURLCompletion does), but generally, this is not necessary.

Author:
Carsten Pfeiffer <pfeiffer@kde.org>

Definition at line 155 of file ocompletion.h.


Member Enumeration Documentation

enum OCompletion::BeepMode [private]
 

Enumeration values:
NoMatch 
PartialMatch 
Rotation 

Definition at line 526 of file ocompletion.h.

enum OCompletion::CompOrder
 

Constants that represent the order in which OCompletion performs completion-lookups.

Enumeration values:
Sorted 
Insertion 
Weighted 

Definition at line 168 of file ocompletion.h.


Constructor & Destructor Documentation

OCompletion::OCompletion  ) 
 

Constructor, nothing special here :)

Definition at line 231 of file ocompletion.cpp.

References d, Insertion, myBeep, myCompletionMode, myHasMultipleMatches, myIgnoreCase, myRotationIndex, myTreeRoot, and setOrder().

OCompletion::~OCompletion  )  [virtual]
 

Destructor, nothing special here, either.

Definition at line 245 of file ocompletion.cpp.

References d, and myTreeRoot.


Member Function Documentation

void OCompletion::addItem const QString ,
uint  weight
[slot]
 

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).

Definition at line 305 of file ocompletion.cpp.

References QString::at(), OCompTreeNode::confirm(), i, OCompTreeNode::insert(), QString::isEmpty(), len, QString::length(), myOrder, myTreeRoot, Sorted, and Weighted.

void OCompletion::addItem const QString  )  [slot]
 

Adds an item to the list of available completions. Resets the current item-state (previousMatch() and nextMatch() won't work anymore).

Definition at line 295 of file ocompletion.cpp.

References OCompletionMatchesWrapper::clear(), d, OCompletionPrivate::matches, myLastString, myRotationIndex, and QString::null.

Referenced by addWeightedItem(), and insertItems().

void OCompletion::addWeightedItem const QString  )  [private]
 

Definition at line 331 of file ocompletion.cpp.

References addItem(), QString::findRev(), QString::left(), len, QString::length(), QString::mid(), myOrder, and Weighted.

Referenced by insertItems().

QStringList OCompletion::allMatches const QString string  ) 
 

Returns:
a list of all items matching string.

Definition at line 511 of file ocompletion.cpp.

References findAllCompletions(), l, OCompletionMatchesWrapper::list(), matches(), myOrder, postProcessMatches(), and Weighted.

QStringList OCompletion::allMatches  ) 
 

Returns:
a list of all items matching the last completed string. Might take some time, when you have LOTS of items.
See also:
substringCompletion

Definition at line 484 of file ocompletion.cpp.

References findAllCompletions(), l, OCompletionMatchesWrapper::list(), matches(), myLastString, myOrder, postProcessMatches(), and Weighted.

Referenced by OLineEdit::makeCompletion().

OCompletionMatches OCompletion::allWeightedMatches const QString string  ) 
 

Returns:
a list of all items matching string.

Definition at line 521 of file ocompletion.cpp.

References findAllCompletions(), matches(), myOrder, postProcessMatches(), and Weighted.

OCompletionMatches OCompletion::allWeightedMatches  ) 
 

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 OCompletionMatches, 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
See also:
substringCompletion

Definition at line 498 of file ocompletion.cpp.

References findAllCompletions(), matches(), myLastString, myOrder, postProcessMatches(), and Weighted.

void OCompletion::clear  )  [virtual, slot]
 

Removes all inserted items.

Definition at line 367 of file ocompletion.cpp.

References OCompletionMatchesWrapper::clear(), d, OCompletionPrivate::matches, myLastString, myRotationIndex, myTreeRoot, and QString::null.

Referenced by setItems().

OGlobalSettings::Completion OCompletion::completionMode  )  const [inline]
 

Returns:
the current completion mode. May be different from OGlobalSettings::completionMode(), if you explicitly called setCompletionMode().
See also:
setCompletionMode

Definition at line 276 of file ocompletion.h.

References myCompletionMode.

void OCompletion::doBeep BeepMode   )  const [private]
 

Definition at line 811 of file ocompletion.cpp.

References QString::fromLatin1(), myBeep, myCompletionMode, NoMatch, PartialMatch, Rotation, text, and tr.

Referenced by findCompletion(), makeCompletion(), nextMatch(), previousMatch(), and substringCompletion().

void OCompletion::extractStringsFromNode const OCompTreeNode ,
const QString beginning,
OCompletionMatchesWrapper matches,
bool  addWeight = false
const [private]
 

Definition at line 734 of file ocompletion.cpp.

References OCompletionMatchesWrapper::append(), QString::append(), OCompTreeNodeList::begin(), OCompTreeNode::children(), OCompTreeNode::childrenCount(), OCompTreeNode::firstChild(), QChar::isNull(), QString::setNum(), Opie::Internal::string(), and OCompTreeNode::weight().

Referenced by extractStringsFromNodeCI(), findAllCompletions(), and substringCompletion().

void OCompletion::extractStringsFromNodeCI const OCompTreeNode ,
const QString beginning,
const QString restString,
OCompletionMatchesWrapper matches
const [private]
 

Definition at line 775 of file ocompletion.cpp.

References QString::at(), extractStringsFromNode(), OCompTreeNode::find(), QString::isEmpty(), QChar::isLetter(), QChar::lower(), QString::mid(), and QChar::upper().

Referenced by findAllCompletions().

void OCompletion::findAllCompletions const QString ,
OCompletionMatchesWrapper matches,
bool &  hasMultipleMatches
const [private]
 

Definition at line 679 of file ocompletion.cpp.

References OCompletionMatchesWrapper::append(), QString::at(), OCompTreeNode::childrenCount(), OCompletionMatchesWrapper::count(), extractStringsFromNode(), extractStringsFromNodeCI(), OCompTreeNode::find(), i, QString::isEmpty(), QString::length(), myIgnoreCase, myTreeRoot, and QString::null.

Referenced by allMatches(), allWeightedMatches(), makeCompletion(), nextMatch(), and previousMatch().

QString OCompletion::findCompletion const QString string  )  [private]
 

Definition at line 603 of file ocompletion.cpp.

References QString::at(), OCompTreeNode::childAt(), OCompTreeNode::childrenCount(), doBeep(), OCompTreeNode::find(), OCompTreeNode::firstChild(), i, QChar::isNull(), QString::length(), myCompletionMode, myHasMultipleMatches, myOrder, myRotationIndex, myTreeRoot, QString::null, PartialMatch, OCompTreeNode::weight(), and Weighted.

Referenced by makeCompletion().

bool OCompletion::hasMultipleMatches  )  const [inline]
 

Returns:
true when more than one match is found
See also:
multipleMatches

Definition at line 377 of file ocompletion.h.

References myHasMultipleMatches.

bool OCompletion::ignoreCase  )  const [inline]
 

Returns:
whether OCompletion acts case insensitively or not. Default is false (case sensitive).
See also:
setIgnoreCase

Definition at line 318 of file ocompletion.h.

References myIgnoreCase.

void OCompletion::insertItems const QStringList items  )  [slot]
 

Inserts items into the list of possible completions. Does the same as setItems(), but does not call clear() before.

Definition at line 272 of file ocompletion.cpp.

References addItem(), addWeightedItem(), QValueList< T >::begin(), QValueList< T >::end(), myOrder, and Weighted.

Referenced by setItems().

bool OCompletion::isSoundsEnabled  )  const [inline]
 

Tells you whether OCompletion will play sounds on certain occasions. Default is enabled

See also:
#enableSounds

#disableSounds

Definition at line 371 of file ocompletion.h.

References myBeep.

QStringList OCompletion::items  )  const
 

Returns a list of all items inserted into OCompletion. This is useful if you need to save the state of a OCompletion 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( OCompletion::Insertion ) before calling items().

Returns:
a list of all items
See also:
setItems

virtual const QString& OCompletion::lastMatch  )  const [inline, virtual]
 

Returns:
the last match. Might be useful if you need to check whether a completion is different from the last one. QString::null is returned when there is no last match.

Definition at line 238 of file ocompletion.h.

References myLastMatch.

QString OCompletion::makeCompletion const QString string  )  [virtual]
 

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 QString::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.

Returns:
the matching item, or QString::null if there is no matching item.
See also:
slotMakeCompletion

substringCompletion

Definition at line 378 of file ocompletion.cpp.

References OCompletionMatchesWrapper::clear(), d, doBeep(), findAllCompletions(), findCompletion(), OCompletionMatchesWrapper::first(), QString::isEmpty(), OCompletionMatchesWrapper::isEmpty(), QValueList< T >::isEmpty(), QString::isNull(), l, OCompletionMatchesWrapper::list(), match(), matches(), OCompletionPrivate::matches, multipleMatches(), myCompletionMode, myCurrentMatch, myHasMultipleMatches, myLastMatch, myLastString, myRotationIndex, NoMatch, QString::null, postProcessMatch(), and postProcessMatches().

Referenced by OLineEdit::makeCompletion(), and slotMakeCompletion().

void OCompletion::match const QString  )  [signal]
 

The matching item. Will be emitted by makeCompletion(), previousMatch() or nextMatch(). May be QString::null if there is no matching item.

Referenced by makeCompletion(), nextMatch(), and previousMatch().

void OCompletion::matches const QStringList  )  [signal]
 

All matching items. Will be emitted by makeCompletion() in shell- completion-mode, when the same string is passed to makeCompletion twice or more often.

Referenced by allMatches(), allWeightedMatches(), makeCompletion(), nextMatch(), previousMatch(), and substringCompletion().

void OCompletion::multipleMatches  )  [signal]
 

This signal is emitted, when calling makeCompletion() and more than one matching item is found.

See also:
hasMultipleMatches

Referenced by makeCompletion().

QString OCompletion::nextMatch  ) 
 

Returns:
the previous 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()). When there is no match, QString::null is returned and a sound is issued.
See also:
slotNextMatch

Definition at line 535 of file ocompletion.cpp.

References QValueList< T >::count(), d, doBeep(), findAllCompletions(), OCompletionMatchesWrapper::first(), OCompletionMatchesWrapper::isEmpty(), OCompletionMatchesWrapper::list(), match(), matches(), OCompletionPrivate::matches, myCurrentMatch, myHasMultipleMatches, myLastMatch, myLastString, myRotationIndex, postProcessMatch(), and Rotation.

Referenced by OLineEdit::rotateText(), and slotNextMatch().

CompOrder OCompletion::order  )  const [inline]
 

Returns:
the current completion order.
See also:
setOrder

Definition at line 303 of file ocompletion.h.

References myOrder.

virtual void OCompletion::postProcessMatch QString  )  const [inline, protected, virtual]
 

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 OURLCompletion(), where files with spaces in their names are shown escaped ("filename\ with\ spaces"), but stored unescaped inside OCompletion. Never delete that pointer!

Default implementation does nothing.

See also:
postProcessMatches

Definition at line 488 of file ocompletion.h.

Referenced by makeCompletion(), nextMatch(), previousMatch(), and substringCompletion().

virtual void OCompletion::postProcessMatches OCompletionMatches  )  const [inline, protected, virtual]
 

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.

See also:
postProcessMatch

Definition at line 510 of file ocompletion.h.

virtual void OCompletion::postProcessMatches QStringList  )  const [inline, protected, virtual]
 

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.

See also:
postProcessMatch

Definition at line 499 of file ocompletion.h.

Referenced by allMatches(), allWeightedMatches(), makeCompletion(), and substringCompletion().

QString OCompletion::previousMatch  ) 
 

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()). When there is no match, QString::null is returned and a sound is be issued.
See also:
slotPreviousMatch

Definition at line 568 of file ocompletion.cpp.

References QValueList< T >::count(), d, doBeep(), findAllCompletions(), OCompletionMatchesWrapper::isEmpty(), OCompletionMatchesWrapper::last(), OCompletionMatchesWrapper::list(), match(), matches(), OCompletionPrivate::matches, myCurrentMatch, myHasMultipleMatches, myLastMatch, myLastString, myRotationIndex, postProcessMatch(), and Rotation.

Referenced by OLineEdit::rotateText(), and slotPreviousMatch().

void OCompletion::removeItem const QString  )  [slot]
 

Removes an item from the list of available completions. Resets the current item-state (previousMatch() and nextMatch() won't work anymore).

Definition at line 357 of file ocompletion.cpp.

References OCompletionMatchesWrapper::clear(), d, OCompletionPrivate::matches, myLastString, myRotationIndex, myTreeRoot, QString::null, and OCompTreeNode::remove().

void OCompletion::setCompletionMode OGlobalSettings::Completion  mode  )  [virtual]
 

Sets the completion mode to Auto/Manual, Shell or None. If you don't set the mode explicitly, the global default value OGlobalSettings::completionMode() is used. OGlobalSettings::CompletionNone disables completion.

See also:
completionMode

#OGlobalSettings::completionMode

Definition at line 478 of file ocompletion.cpp.

References myCompletionMode.

virtual void OCompletion::setEnableSounds bool  enable  )  [inline, virtual]
 

Enables/disables playing a sound when

For playing the sounds, ONotifyClient() is used. // FIXME: Revise this for Opie

See also:
isSoundsEnabled

Definition at line 363 of file ocompletion.h.

References myBeep.

void OCompletion::setIgnoreCase bool  ignoreCase  )  [virtual]
 

Setting this to true makes OCompletion behave case insensitively. E.g. makeCompletion( "CA" ); might return "carp@cs.tu-berlin.de". Default is false (case sensitive).

See also:
ignoreCase

Definition at line 259 of file ocompletion.cpp.

References myIgnoreCase.

void OCompletion::setItems const QStringList  )  [virtual, slot]
 

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( OCompletion::Insertion ) before calling setItems().

See also:
items

Definition at line 265 of file ocompletion.cpp.

References clear(), and insertItems().

Referenced by OpieUIDemo::demoOComboBox(), OpieUIDemo::demoOEditListBox(), OpieUIDemo::demoOLineEdit(), and OHistoryCombo::setHistoryItems().

void OCompletion::setOrder CompOrder  order  )  [virtual]
 

OCompletion offers three different ways in which it offers its items:

  • in the order of insertion
  • sorted alphabetically
  • weighted
Choosing weighted makes OCompletion 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

See also:
order

Definition at line 252 of file ocompletion.cpp.

References d, OCompletionPrivate::matches, myOrder, OCompletionMatchesWrapper::setSorting(), and Weighted.

Referenced by OCompletion(), and OHistoryCombo::setHistoryItems().

void OCompletion::slotMakeCompletion const QString string  )  [inline, slot]
 

Attempts to complete "string" and emits the completion via match(). Same as makeCompletion() (just as a slot).

See also:
makeCompletion

Definition at line 385 of file ocompletion.h.

References makeCompletion().

void OCompletion::slotNextMatch  )  [inline, slot]
 

Searches the next matching item and emits it via match() Same as nextMatch() (just as a slot).

See also:
nextMatch

Definition at line 399 of file ocompletion.h.

References nextMatch().

void OCompletion::slotPreviousMatch  )  [inline, slot]
 

Searches the previous matching item and emits it via match() Same as previousMatch() (just as a slot).

See also:
previousMatch

Definition at line 392 of file ocompletion.h.

References previousMatch().

QStringList OCompletion::substringCompletion const QString string  )  const
 

Returns:
a list of items which all contain text as a substring, i.e. not necessarily at the beginning.
See also:
makeCompletion

Definition at line 439 of file ocompletion.cpp.

References QValueList< T >::append(), QValueList< T >::begin(), doBeep(), QValueList< T >::end(), extractStringsFromNode(), QString::find(), QString::isEmpty(), QValueList< T >::isEmpty(), OCompletionMatchesWrapper::list(), matches(), myOrder, myTreeRoot, NoMatch, QString::null, postProcessMatch(), postProcessMatches(), and Weighted.


Member Data Documentation

OCompletionPrivate* OCompletion::d [private]
 

Definition at line 543 of file ocompletion.h.

Referenced by addItem(), clear(), makeCompletion(), nextMatch(), OCompletion(), previousMatch(), removeItem(), setOrder(), and ~OCompletion().

bool OCompletion::myBeep [private]
 

Definition at line 537 of file ocompletion.h.

Referenced by doBeep(), isSoundsEnabled(), OCompletion(), and setEnableSounds().

OGlobalSettings::Completion OCompletion::myCompletionMode [private]
 

Definition at line 529 of file ocompletion.h.

Referenced by completionMode(), doBeep(), findCompletion(), makeCompletion(), OCompletion(), and setCompletionMode().

QString OCompletion::myCurrentMatch [private]
 

Definition at line 534 of file ocompletion.h.

Referenced by makeCompletion(), nextMatch(), and previousMatch().

bool OCompletion::myHasMultipleMatches [private]
 

Definition at line 539 of file ocompletion.h.

Referenced by findCompletion(), hasMultipleMatches(), makeCompletion(), nextMatch(), OCompletion(), and previousMatch().

bool OCompletion::myIgnoreCase [private]
 

Definition at line 538 of file ocompletion.h.

Referenced by findAllCompletions(), ignoreCase(), OCompletion(), and setIgnoreCase().

QString OCompletion::myLastMatch [private]
 

Definition at line 533 of file ocompletion.h.

Referenced by lastMatch(), makeCompletion(), nextMatch(), and previousMatch().

QString OCompletion::myLastString [private]
 

Definition at line 532 of file ocompletion.h.

Referenced by addItem(), allMatches(), allWeightedMatches(), clear(), makeCompletion(), nextMatch(), previousMatch(), and removeItem().

CompOrder OCompletion::myOrder [private]
 

Definition at line 531 of file ocompletion.h.

Referenced by addItem(), addWeightedItem(), allMatches(), allWeightedMatches(), findCompletion(), insertItems(), order(), setOrder(), and substringCompletion().

uint OCompletion::myRotationIndex [private]
 

Definition at line 540 of file ocompletion.h.

Referenced by addItem(), clear(), findCompletion(), makeCompletion(), nextMatch(), OCompletion(), previousMatch(), and removeItem().

QStringList OCompletion::myRotations [private]
 

Definition at line 536 of file ocompletion.h.

OCompTreeNode* OCompletion::myTreeRoot [private]
 

Definition at line 535 of file ocompletion.h.

Referenced by addItem(), clear(), findAllCompletions(), findCompletion(), OCompletion(), removeItem(), substringCompletion(), and ~OCompletion().


Property Documentation

bool OCompletion::ignoreCase [read, write]
 

Definition at line 159 of file ocompletion.h.

QStringList OCompletion::items [read, write]
 

Definition at line 160 of file ocompletion.h.

CompOrder OCompletion::order [read, write]
 

Definition at line 158 of file ocompletion.h.


The documentation for this class was generated from the following files:
Generated on Sat Nov 5 17:41:52 2005 for OPIE by  doxygen 1.4.2