Linux and UNIX Man Pages

Linux & Unix Commands - Search Man Pages

prima::editdialog(3) [debian man page]

Prima::EditDialog(3)					User Contributed Perl Documentation				      Prima::EditDialog(3)

NAME
Prima::FindDialog, Prima::ReplaceDialog - standard interface dialogs to find and replace options selection. SYNOPSIS
use Prima::StdDlg; my $dlg = Prima::FindDialog-> create( findStyle => 0); my $res = $dlg-> execute; if ( $res == mb::Ok) { print $dlg-> findText, " is to be found "; } elsif ( $res == mb::ChangeAll) { print "all occurences of ", $dlg-> findText, " is to be replaced by ", $dlg-> replaceText; } The "mb::ChangeAll" constant, one of possible results of "execute" method, is defined in Prima::StdDlg module. Therefore it is recommended to include this module instead. DESCRIPTION
The module provides two classes - Prima::FindDialog and Prima::ReplaceDialog; Prima::ReplaceDialog is exactly same as Prima::FindDialog except that its default findStyle property value is set to 0. One can use a dialog-caching technique, arbitrating between findStyle value 0 and 1, and use only one instance of Prima::FindDialog. The module does not provide the actual search algorithm; this must be implemented by the programmer. The toolkit currently include some facilitation to the problem - the part of algorithm for "Prima::Edit" class is found in "find" in Prima::Edit, and the another part - in examples/editor.pl example program. Prima::HelpWindow also uses the module, and realizes its own searching algorithm. API
Properties All the properties select the user-assigned values, except findStyle. findText STRING Selects the text string to be found. Default value: '' findStyle BOOLEAN If 1, the dialog provides only 'find text' interface. If 0, the dialog provides also 'replace text' interface. Default value: 1 for "Prima::FindDialog", 0 for "Prima::ReplaceDialog". options INTEGER Combination of "fdo::" constants. For the detailed description see "find" in Prima::Edit. fdo::MatchCase fdo::WordsOnly fdo::RegularExpression fdo::BackwardSearch fdo::ReplacePrompt Default value: 0 replaceText STRING Selects the text string that is to replace the found text. Default value: '' scope One of "fds::" constants. Represents the scope of the search: it can be started from the cursor position, of from the top or of the bottom of the text. fds::Cursor fds::Top fds::Bottom Default value: "fds::Cursor" AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. SEE ALSO
Prima, Prima::Window, Prima::StdDlg, Prima::Edit, Prima::HelpWindow, examples/editor.pl perl v5.14.2 2009-02-24 Prima::EditDialog(3)

Check Out this Related Man Page

Prima::ComboBox(3)					User Contributed Perl Documentation					Prima::ComboBox(3)

NAME
Prima::ComboBox - standard combo box widget SYNOPSIS
use Prima::ComboBox; my $combo = Prima::ComboBox-> create( style => cs::DropDown, items => [ 1 .. 10 ]); $combo-> style( cs::DropDownList ); print $combo-> text; DESCRIPTION
Provides a combo box widget which consists of an input line, list box of possible selections and eventual drop-down button. The combo box can be either in form with a drop-down selection list, that is shown by the command of the user, or in form when the selection list is always visible. The combo box is a grouping widget, and contains neither painting nor user-input code. All such functionality is delegated into the children widgets: input line, list box and button. "Prima::ComboBox" exports a fixed list of methods and properties from namespaces of Prima::InputLine and Prima::ListBox. Since, however, it is possible to tweak the "Prima::ComboBox" ( using its editClass and listClass create-only properties ) so the input line and list box would be other classes, it is not necessarily that all default functionality would work. The list of exported names is stored in package variables %listProps, %editProps and %listDynas. These also described in "Exported names" section. The module defines "cs::" package for the constants used by style property. API
Properties buttonClass STRING Assigns a drop-down button class. Create-only property. Default value: "Prima::Widget" buttonDelegations ARRAY Assigns a drop-down button list of delegated notifications. Create-only property. buttonProfile HASH Assigns hash of properties, passed to the drop-down button during the creation. Create-only property. caseSensitive BOOLEAN Selects whether the user input is case-sensitive or not, when a value is picked from the selection list. Default value: 0 editClass STRING Assigns an input line class. Create-only property. Default value: "Prima::InputLine" editProfile HASH Assigns hash of properties, passed to the input line during the creation. Create-only property. editDelegations ARRAY Assigns an input line list of delegated notifications. Create-only property. editHeight INTEGER Selects height of an input line. items ARRAY Mapped onto the list widget's "items" property. See Prima::Lists for details. listClass STRING Assigns a listbox class. Create-only property. Default value: "Prima::ListBox" listHeight INTEGER Selects height of the listbox widget. Default value: 100 listVisible BOOLEAN Sets whether the listbox is visible or not. Not writable when style is "cs::Simple". listProfile HASH Assigns hash of properties, passed to the listbox during the creation. Create-only property. listDelegations ARRAY Assigns a selection listbox list of delegated notifications. Create-only property. literal BOOLEAN Selects whether the combo box user input routine assume that the listbox contains literal strings, that can be fetched via "get_item_text" ( see Prima::Lists ). As an example when this property is set to 0 is "Prima::ColorComboBox" from Prima::ComboBox package. Default value: 1 style INTEGER Selected one of three styles: cs::Simple The listbox is always visible, and the drop-down button is not. cs::DropDown The listbox is not visible, but the drop-down button is. When the use presses the drop-down button, the listbox is shown; when the list-box is defocused, it gets hidden. cs::DropDownList Same as "cs::DropDown", but the user is restricted in the selection: the input line can only accept user input that is contained in listbox. If literal set to 1, the auto completion feature is provided. text STRING Mapped onto the edit widget's "text" property. Exported names %editProps alignment autoScroll text text charOffset maxLen insertMode firstChar selection selStart selEnd writeOnly copy cut delete paste wordDelimiters readOnly passwordChar focus select_all %listProps autoHeight focusedItem hScroll integralHeight items itemHeight topItem vScroll gridColor multiColumn offset %listDynas onDrawItem onSelectItem AUTHOR
Dmitry Karasik, <dmitry@karasik.eu.org>. SEE ALSO
Prima, Prima::InputLine, Prima::Lists, Prima::ColorDialog, Prima::FileDialog, examples/listbox.pl. perl v5.14.2 2009-02-24 Prima::ComboBox(3)
Man Page