//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.TQShowEvent; import org.kde.qt.TQWidget; /** @brief A generic "find" dialog. etail: This widget inherits from KDialogBase and implements the following additional functionalities: a find string object and an area for a user-defined widget to extend the dialog. xample: To use the basic modal find dialog, and then run the search:
KFindDialog dlg(....) if ( dlg.exec() != TQDialog.Accepted ) return; // proceed with KFind from hereTo create a non-modal find dialog:
if ( m_findDia ) KWin.setActiveWindow( m_findDia.winId() ); else { m_findDia = new KFindDialog(false,...); connect( m_findDia, SIGNAL("okClicked()"), this, SLOT("findTextNext()") ); }Don't forget to delete and reset m_findDia when closed. (But do NOT delete your KFind object at that point, it's needed for "Find Next") To use your own extensions: see findExtension(). @author S.R.Haque
strings
to be displayed as the history
of find strings. strings
might get truncated if it is
too long.
@param history The find history.
@short Provide the list of strings
to be displayed as the history of find strings.
@see #findHistory
*/
public native void setFindHistory(String[] history);
/**
Returns the list of history items.
@short Returns the list of history items.
@see #setFindHistory
*/
public native ArrayList findHistory();
/**
Enable/disable the 'search in selection' option, depending
on whether there actually is a selection.
@param hasSelection true if a selection exists
@short Enable/disable the 'search in selection' option, depending on whether there actually is a selection.
*/
public native void setHasSelection(boolean hasSelection);
/**
Hide/show the 'from cursor' option, depending
on whether the application implements a cursor.
@param hasCursor true if the application features a cursor
This is assumed to be the case by default.
@short Hide/show the 'from cursor' option, depending on whether the application implements a cursor.
*/
public native void setHasCursor(boolean hasCursor);
/**
Enable/disable the 'Find backwards' option, depending
on whether the application supports it.
@param supports true if the application supports backwards find
This is assumed to be the case by default.
@short Enable/disable the 'Find backwards' option, depending on whether the application supports it.
*/
public native void setSupportsBackwardsFind(boolean supports);
/**
Enable/disable the 'Case sensitive' option, depending
on whether the application supports it.
@param supports true if the application supports case sensitive find
This is assumed to be the case by default.
@short Enable/disable the 'Case sensitive' option, depending on whether the application supports it.
*/
public native void setSupportsCaseSensitiveFind(boolean supports);
/**
Enable/disable the 'Whole words only' option, depending
on whether the application supports it.
@param supports true if the application supports whole words only find
This is assumed to be the case by default.
@short Enable/disable the 'Whole words only' option, depending on whether the application supports it.
*/
public native void setSupportsWholeWordsFind(boolean supports);
/**
Enable/disable the 'Regular expression' option, depending
on whether the application supports it.
@param supports true if the application supports regular expression find
This is assumed to be the case by default.
@short Enable/disable the 'Regular expression' option, depending on whether the application supports it.
*/
public native void setSupportsRegularExpressionFind(boolean supports);
/**
Set the options which are checked.
@param options The setting of the Options.
@short Set the options which are checked.
*/
public native void setOptions(long options);
/**
Returns the state of the options. Disabled options may be returned in
an indeterminate state.
@short Returns the state of the options.
@see #setOptions
*/
public native long options();
/**
Returns the pattern to find.
@short Returns the pattern to find.
*/
public native String pattern();
/**
Sets the pattern to find
@short Sets the pattern to find
*/
public native void setPattern(String pattern);
/**
Returns an empty widget which the user may fill with additional UI
elements as required. The widget occupies the width of the dialog,
and is positioned immediately below the regular expression support
widgets for the pattern string.
@short Returns an empty widget which the user may fill with additional UI elements as required.
*/
public native TQWidget findExtension();
public native void showEvent(TQShowEvent arg1);
protected native void slotOk();
protected native void slotSelectedTextToggled(boolean arg1);
protected native void showPatterns();
protected native void showPlaceholders();
protected native void textSearchChanged(String 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();
}