#include <YNCursesUI.h>
Inheritance diagram for YNCursesUI:
Public Member Functions | |
YNCursesUI (int argc, char **argv, bool with_threads, const char *macro_file) | |
~YNCursesUI () | |
virtual void | idleLoop (int fd_ycp) |
virtual YEvent * | userInput (unsigned long timeout_millisec) |
virtual YEvent * | pollInput () |
virtual YDialog * | createDialog (YWidgetOpt &opt) |
virtual void | showDialog (YDialog *dialog) |
virtual void | closeDialog (YDialog *dialog) |
virtual YContainerWidget * | createSplit (YWidget *parent, YWidgetOpt &opt, YUIDimension dimension) |
virtual YContainerWidget * | createReplacePoint (YWidget *parent, YWidgetOpt &opt) |
virtual YContainerWidget * | createAlignment (YWidget *parent, YWidgetOpt &opt, YAlignmentType halign, YAlignmentType valign) |
virtual YContainerWidget * | createSquash (YWidget *parent, YWidgetOpt &opt, bool hsquash, bool vsquash) |
virtual YContainerWidget * | createRadioButtonGroup (YWidget *parent, YWidgetOpt &opt) |
virtual YContainerWidget * | createFrame (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createEmpty (YWidget *parent, YWidgetOpt &opt) |
virtual YWidget * | createSpacing (YWidget *parent, YWidgetOpt &opt, float size, bool horizontal, bool vertical) |
virtual YWidget * | createLabel (YWidget *parent, YWidgetOpt &opt, const YCPString &text) |
virtual YWidget * | createRichText (YWidget *parent, YWidgetOpt &opt, const YCPString &text) |
virtual YWidget * | createLogView (YWidget *parent, YWidgetOpt &opt, const YCPString &label, int visibleLines, int maxLines) |
virtual YWidget * | createMultiLineEdit (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &text) |
virtual YWidget * | createPushButton (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createMenuButton (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createRadioButton (YWidget *parent, YWidgetOpt &opt, YRadioButtonGroup *rbg, const YCPString &label, bool checked) |
virtual YWidget * | createCheckBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label, bool checked) |
virtual YWidget * | createTextEntry (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPString &text) |
virtual YWidget * | createSelectionBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createMultiSelectionBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createComboBox (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createTree (YWidget *parent, YWidgetOpt &opt, const YCPString &label) |
virtual YWidget * | createTable (YWidget *parent, YWidgetOpt &opt, vector< string > header) |
virtual YWidget * | createProgressBar (YWidget *parent, YWidgetOpt &opt, const YCPString &label, const YCPInteger &maxprogress, const YCPInteger &progress) |
virtual YWidget * | createImage (YWidget *parent, YWidgetOpt &opt, YCPByteblock imagedata, YCPString defaulttext) |
virtual YWidget * | createImage (YWidget *parent, YWidgetOpt &opt, YCPString filename, YCPString defaulttext) |
virtual YWidget * | createIntField (YWidget *parent, YWidgetOpt &opt, const YCPString &label, int minValue, int maxValue, int initialValue) |
virtual YWidget * | createPackageSelector (YWidget *parent, YWidgetOpt &opt, const YCPString &floppyDevice) |
virtual YCPValue | runPkgSelection (YWidget *packageSelector) |
virtual YWidget * | createPkgSpecial (YWidget *parent, YWidgetOpt &opt, const YCPString &subwidget) |
virtual YCPValue | setLanguage (const YCPTerm &term) |
virtual YCPValue | setConsoleFont (const YCPString &console_magic, const YCPString &font, const YCPString &screen_map, const YCPString &unicode_map, const YCPString &encoding) |
virtual YCPValue | setKeyboard () |
virtual YCPValue | askForExistingDirectory (const YCPString &startDir, const YCPString &headline) |
virtual YCPValue | askForExistingFile (const YCPString &startWith, const YCPString &filter, const YCPString &headline) |
virtual YCPValue | askForSaveFileName (const YCPString &startWith, const YCPString &filter, const YCPString &headline) |
virtual void | redrawScreen () |
virtual int | getDisplayWidth () |
virtual int | getDisplayHeight () |
virtual int | getDisplayDepth () |
virtual long | getDisplayColors () |
virtual int | getDefaultWidth () |
virtual int | getDefaultHeight () |
virtual bool | textMode () |
virtual bool | hasImageSupport () |
virtual bool | hasIconSupport () |
virtual bool | hasFullUtf8Support () |
Static Public Member Functions | |
static YNCursesUI * | ui () |
Protected Member Functions | |
virtual bool | want_colors () |
virtual void | init_title () |
Static Protected Attributes | |
static YNCursesUI * | _ui = 0 |
Private Member Functions | |
bool | setLanguage (string lang) |
|
Initialize data. |
|
Cleans up. |
|
Open a directory selection box and prompt the user for an existing directory. [Inherited from YUIInterpreter] 'startDir' is the initial directory that is displayed. 'headline' is an explanatory text for the directory selection box. Graphical UIs may omit that if no window manager is running. Returns the selected directory name or 'nil' (YCPVoid()) if the user canceled the operation. Implements YUI. |
|
Open a file selection box and prompt the user for an existing file. [Inherited from YUIInterpreter] 'startWith' is the initial directory or file. 'filter' is one or more blank-separated file patterns, e.g. "*.png *.jpg" 'headline' is an explanatory text for the file selection box. Graphical UIs may omit that if no window manager is running. Returns the selected file name or 'nil' (YCPVoid()) if the user canceled the operation. Implements YUI. |
|
Open a file selection box and prompt the user for a file to save data to. Automatically asks for confirmation if the user selects an existing file. [Inherited from YUIInterpreter] 'startWith' is the initial directory or file. 'filter' is one or more blank-separated file patterns, e.g. "*.png *.jpg" 'headline' is an explanatory text for the file selection box. Graphical UIs may omit that if no window manager is running. Returns the selected file name or 'nil' (YCPVoid()) if the user canceled the operation. Implements YUI. |
|
Inherited from YUIInterpreter. Decativates and closes a dialog Reimplemented from YUI. |
|
Creates an alignment widget Implements YUI. |
|
Creates a check box
Implements YUI. |
|
Creates a combo box Implements YUI. |
|
Inherited from YUIInterpreter. Creates a dialog. Implements YUI. |
|
Creates an empty widget Implements YUI. |
|
Creates a frame widget Implements YUI. |
|
Creates an image widget from a YCP byteblock Implements YUI. |
|
Creates an image widget from a YCP byteblock Implements YUI. |
|
Creates an IntField widget. Implements YUI. |
|
Creates a label.
Implements YUI. |
|
Creates a log view widget
Implements YUI. |
|
Creates a menu button.
Implements YUI. |
|
Creates a MultiLineEdit widget
Implements YUI. |
|
Creates a multi selection box Implements YUI. |
|
Creates the PackageSelector widget (i.e. a widget tree). Implements YUI. |
|
Creates a special subwidget used for Package Selection (which doesn't exist in QT-UI). Implements YUI. |
|
Creates a progress bar Implements YUI. |
|
Creates a push button.
Implements YUI. |
|
Creates a radio button and inserts it into a radio button group
Implements YUI. |
|
Creates a radio button group. Implements YUI. |
|
Creates a replace point. Implements YUI. |
|
Creates a rich text widget
Implements YUI. |
|
Creates a selection box Implements YUI. |
|
Creates a spacing widget Implements YUI. |
|
Creates a split Implements YUI. |
|
Creates a squash widget Implements YUI. |
|
Creates a table widget Implements YUI. |
|
Creates a text entry or password entry field. Implements YUI. |
|
Creates a tree Implements YUI. |
|
Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
UI-specific getDisplayInfo() functions. See UI builtin GetDisplayInfo() doc for details. Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Idle around until fd_ycp is readable Reimplemented from YUI. |
|
Reimplemented from NCurses. |
|
Check the event queue for user input. Don't wait. Reimplemented from YUIInterpreter. Implements YUI. |
|
UI-specific redrawScreen method. This default implementation does nothing. Reimplemented from YUI. |
|
Fills the PackageSelector widget. Reimplemented from YUI. |
|
UI-specific setConsoleFont() function. Returns YCPVoid() if OK and YCPNull() on error. Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
|
|
UI-specific setLanguage() function. Returns YCPVoid() if OK and YCPNull() on error. This default implementation does nothing. Reimplemented from YUI. |
|
Inherited from YUIInterpreter. Shows and activates a dialog Reimplemented from YUI. |
|
Reimplemented from YUI. |
|
Access the global Y2NCursesUI. Reimplemented from YUI. |
|
Go into event loop until user input is available or until the specified timeout (in milliseconds) has elapsed. Reimplemented from YUIInterpreter. Implements YUI. |
|
Reimplemented from NCurses. |
|
Global reference to the UI |