libyui-mga
1.0.7
|
Abstract extension widget factory to create widget extensions. More...
#include <YMGAWidgetExtensionFactory.h>
Public Member Functions | |
YMGAAboutDialog * | createAboutDialog (const std::string &appname, const std::string &appversion, const std::string &applicense, const std::string &appauthors, const std::string &appdescription, const std::string &applogo, const std::string &appicon=std::string(), const std::string &appcredits=std::string(), const std::string &appinfo=std::string()) |
creates an About Dialog providing the information passed as arguments Remember to remove this instance after. More... | |
virtual YMGA_CBTable * | createCBTable (YWidget *parent, YTableHeader *header_disown, YCBTableMode mode=YCBTableCheckBoxOnFirstColumn)=0 |
creates a check boxed table More... | |
YMGAMessageBox * | createDialogBox (YMGAMessageBox::DLG_BUTTON button_number=YMGAMessageBox::B_ONE, YMGAMessageBox::DLG_MODE dialog_mode=YMGAMessageBox::D_NORMAL) |
creates a dialog box dialog, use the instance to set dialog information and call show() to use it. More... | |
YMGAMessageBox * | createMessageBox (const std::string &title, const std::string &text, bool useRichText, const std::string &btn_label) |
creates an messagebox dialog, use the instance to set dialog information and call show() to use it. More... | |
YMGAMessageBox * | createInfoBox (const std::string &title, const std::string &text, bool useRichText, const std::string &btn_label) |
creates an Info messagebox dialog, use the instance to set dialog information and call show() to use it. More... | |
YMGAMessageBox * | createWarningBox (const std::string &title, const std::string &text, bool useRichText, const std::string &btn_label) |
creates an Warning messagebox dialog, use the instance to set dialog information and call show() to use it. More... | |
Static Public Member Functions | |
static YMGAWidgetFactory * | getYMGAWidgetFactory (YExternalWidgetFactory *instance) |
casts useful for bindings from YExternalWidgetFactory* to YMGAWidgetFactory* More... | |
static YWidgetEvent * | getYWidgetEvent (YEvent *event) |
casts useful for bindings from YEvent* to YWidgetEvent* More... | |
static YKeyEvent * | getYKeyEvent (YEvent *event) |
casts useful for bindings from YEvent* to YKeyEvent* More... | |
static YMenuEvent * | getYMenuEvent (YEvent *event) |
casts useful for bindings from YEvent* to YMenuEvent* More... | |
static YCancelEvent * | getYCancelEvent (YEvent *event) |
casts useful for bindings from YEvent* to YCancelEvent* More... | |
static YDebugEvent * | getYDebugEvent (YEvent *event) |
casts useful for bindings from YEvent* to YDebugEvent* More... | |
static YTimeoutEvent * | getYTimeoutEvent (YEvent *event) |
casts useful for bindings from YEvent* to YTimeoutEvent* More... | |
Protected Member Functions | |
YMGAWidgetFactory () | |
Constructor. More... | |
virtual | ~YMGAWidgetFactory () |
Destructor. | |
Friends | |
class | YExternalWidgets |
Abstract extension widget factory to create widget extensions.
Refer to the respective widget's documentation (in the header file) for documentation about the function parameters.
Definition at line 52 of file YMGAWidgetExtensionFactory.h.
|
protected |
Constructor.
Use YExternalWidgets::widgetExtensionFactory() to get the singleton for this class.
Definition at line 41 of file YMGAWidgetExtensionFactory.cc.
YMGAAboutDialog * YMGAWidgetFactory::createAboutDialog | ( | const std::string & | appname, |
const std::string & | appversion, | ||
const std::string & | applicense, | ||
const std::string & | appauthors, | ||
const std::string & | appdescription, | ||
const std::string & | applogo, | ||
const std::string & | appicon = std::string() , |
||
const std::string & | appcredits = std::string() , |
||
const std::string & | appinfo = std::string() |
||
) |
creates an About Dialog providing the information passed as arguments Remember to remove this instance after.
appname | the application name |
appver | the application version |
applicense | the application license, short-length (e.g. GPLv2, GPLv3, LGPL, LGPLv2+, etc) |
appauthors | the application authors |
appdescription | a brief description of the application |
applogo | the file path to the application logo |
appicon | the file path to the application icon |
appcredits | optional, the credits |
appinfo | optional, other extra information |
Definition at line 52 of file YMGAWidgetExtensionFactory.cc.
|
pure virtual |
creates a check boxed table
parent | parent widget |
header_disown | YTable header |
mode | check box position (YCBTableCheckBoxOnFirstColumn, YCBTableCheckBoxOnLastColumn) |
YMGAMessageBox * YMGAWidgetFactory::createDialogBox | ( | YMGAMessageBox::DLG_BUTTON | button_number = YMGAMessageBox::B_ONE , |
YMGAMessageBox::DLG_MODE | dialog_mode = YMGAMessageBox::D_NORMAL |
||
) |
creates a dialog box dialog, use the instance to set dialog information and call show() to use it.
Remember to remove this instance after.
button_number | one button (such as "ok" for instance) B_ONE or two buttons (such as "ok" and "cancel") B_TWO |
dialog_mode | dialog type (D_NORMAL, D_INFO, D_WARNING) |
Definition at line 68 of file YMGAWidgetExtensionFactory.cc.
YMGAMessageBox * YMGAWidgetFactory::createInfoBox | ( | const std::string & | title, |
const std::string & | text, | ||
bool | useRichText, | ||
const std::string & | btn_label | ||
) |
creates an Info messagebox dialog, use the instance to set dialog information and call show() to use it.
Remember to remove this instance after.
title | dialog title |
text | dialog content text |
useRichText | set text using rich text if true |
btn_label | button label (such as Ok, for instance) |
Definition at line 84 of file YMGAWidgetExtensionFactory.cc.
YMGAMessageBox * YMGAWidgetFactory::createMessageBox | ( | const std::string & | title, |
const std::string & | text, | ||
bool | useRichText, | ||
const std::string & | btn_label | ||
) |
creates an messagebox dialog, use the instance to set dialog information and call show() to use it.
Remember to remove this instance after.
title | dialog title |
text | dialog content text |
useRichText | set text using rich text if true |
btn_label | button label (such as Ok, for instance) |
Definition at line 75 of file YMGAWidgetExtensionFactory.cc.
YMGAMessageBox * YMGAWidgetFactory::createWarningBox | ( | const std::string & | title, |
const std::string & | text, | ||
bool | useRichText, | ||
const std::string & | btn_label | ||
) |
creates an Warning messagebox dialog, use the instance to set dialog information and call show() to use it.
casts
Remember to remove this instance after.
title | dialog title |
text | dialog content text |
useRichText | set text using rich text if true |
btn_label | button label (such as Ok, for instance) |
Definition at line 93 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YEvent* to YCancelEvent*
Definition at line 123 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YEvent* to YDebugEvent*
Definition at line 128 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YEvent* to YKeyEvent*
Definition at line 113 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YEvent* to YMenuEvent*
Definition at line 118 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YExternalWidgetFactory* to YMGAWidgetFactory*
Definition at line 103 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YEvent* to YTimeoutEvent*
Definition at line 133 of file YMGAWidgetExtensionFactory.cc.
|
static |
casts useful for bindings from YEvent* to YWidgetEvent*
Definition at line 108 of file YMGAWidgetExtensionFactory.cc.