libyui-ncurses  2.44.1
YNCursesUI Class Reference
Inheritance diagram for YNCursesUI:
Collaboration diagram for YNCursesUI:

List of all members.

Public Member Functions

 YNCursesUI (bool withThreads)
 ~YNCursesUI ()
virtual void idleLoop (int fd_ycp)
virtual void setConsoleFont (const std::string &console_magic, const std::string &font, const std::string &screen_map, const std::string &unicode_map, const std::string &lang)
virtual YEvent * runPkgSelection (YWidget *packageSelector)
NCPackageSelectorPluginStubpackageSelectorPlugin ()

Static Public Member Functions

static YNCursesUIui ()

Protected Member Functions

virtual YWidgetFactory * createWidgetFactory ()
virtual YOptionalWidgetFactory * createOptionalWidgetFactory ()
virtual YApplication * createApplication ()
virtual bool want_colors ()
virtual void init_title ()

Static Protected Attributes

static YNCursesUI_ui = 0

Detailed Description

Definition at line 38 of file YNCursesUI.h.


Constructor & Destructor Documentation

YNCursesUI::YNCursesUI ( bool  withThreads)

Constructor

Definition at line 60 of file YNCursesUI.cc.

Destructor

Definition at line 109 of file YNCursesUI.cc.


Member Function Documentation

YOptionalWidgetFactory * YNCursesUI::createOptionalWidgetFactory ( ) [protected, virtual]

Create the widget factory that provides all the createXY() methods for optional ("special") widgets and the corresponding hasXYWidget() methods.

Reimplemented from YUI.

Definition at line 128 of file YNCursesUI.cc.

YWidgetFactory * YNCursesUI::createWidgetFactory ( ) [protected, virtual]

Create the widget factory that provides all the createXY() methods for standard (mandatory, i.e. non-optional) widgets.

Reimplemented from YUI.

Definition at line 118 of file YNCursesUI.cc.

void YNCursesUI::idleLoop ( int  fd_ycp) [virtual]

Idle around until fd_ycp is readable

Definition at line 147 of file YNCursesUI.cc.

Here is the call graph for this function:

Returns the package selector plugin singleton of this UI or creates it (including loading the plugin lib) if it does not exist yet.

Create the package selector plugin

Definition at line 201 of file YNCursesUI.cc.

YEvent * YNCursesUI::runPkgSelection ( YWidget *  packageSelector) [virtual]

Fills the PackageSelector widget and runs package selection.

Definition at line 219 of file YNCursesUI.cc.

Here is the call graph for this function:

void YNCursesUI::setConsoleFont ( const std::string &  console_magic,
const std::string &  font,
const std::string &  screen_map,
const std::string &  unicode_map,
const std::string &  lang 
) [virtual]

Set the (text) console font according to the current encoding etc. See the setfont(8) command and the console HowTo for details.

This should really be in NCApplication, but it uses so many non-exported member variables that it's not easy to move it there.

Set the console font, encoding etc. This is called from Console.ycp. The terminal encoding must be std::set correctly.

This doesn't belong here, but it is so utterly entangled with member variables that are not exported at all (sic!) that it's not really feasible to extract the relevant parts.

Definition at line 337 of file YNCursesUI.cc.

static YNCursesUI* YNCursesUI::ui ( ) [inline, static]

Access the global Y2NCursesUI.

Definition at line 91 of file YNCursesUI.h.


Member Data Documentation

YNCursesUI * YNCursesUI::_ui = 0 [static, protected]

Global reference to the UI

Definition at line 84 of file YNCursesUI.h.


The documentation for this class was generated from the following files:
 All Classes Functions Variables