|
QMap< QString, int > | screenShotNo |
|
bool | _fullscreen |
|
bool | _noborder |
|
QSize | _defaultSize |
|
bool | _do_exit_loop |
|
bool | _received_ycp_command |
|
bool | _fatalError |
|
QTimer * | _busyCursorTimer |
|
YSimpleEventHandler | _eventHandler |
|
int | _blockedLevel |
|
bool | _leftHandedMouse |
|
bool | _askedForLeftHandedMouse |
|
bool | _uiInitialized |
|
YQUISignalReceiver * | _signalReceiver |
|
QString | _applicationTitle |
|
int | _ui_argc |
|
◆ YQUI()
YQUI::YQUI |
( |
bool | withThreads, |
|
|
bool | topmostConstructor = true ) |
Constructors. Having second boolean topmostConstructor to be called only when there is topmost constructor and not a plugin which inherits from YQUI. Used by integration testing framework
◆ ~YQUI()
◆ applicationTitle()
QString YQUI::applicationTitle |
( |
| ) |
|
|
inline |
Returns the application name for the window title (e.g. "YaST2@hostname")
◆ askConfigureLogging()
void YQUI::askConfigureLogging |
( |
| ) |
|
Open dialog to configure logging. (Shift-F7)
◆ askPlayMacro()
void YQUI::askPlayMacro |
( |
| ) |
|
Open file selection box and ask for a macro file to play (activated by Ctrl-Shift-Alt-P)
◆ askSaveLogs()
void YQUI::askSaveLogs |
( |
| ) |
|
Open file selection box and let the user save y2logs to that location. (Shift-F8)
◆ askSendWidgetID()
void YQUI::askSendWidgetID |
( |
| ) |
|
Open a pop-up dialog to ask the user for a widget ID and then send it with sendWidgetID().
◆ blockEvents()
void YQUI::blockEvents |
( |
bool | block = true | ) |
|
|
virtual |
Block (or unblock) events. If events are blocked, any event sent should be ignored until events are unblocked again.
Reimplemented from YUI.
◆ busyCursor()
void YQUI::busyCursor |
( |
| ) |
|
Show mouse cursor indicating busy state.
◆ calcDefaultSize()
void YQUI::calcDefaultSize |
( |
| ) |
|
|
protected |
Calculate size of Opt(:defaultsize) dialogs
◆ close()
◆ consumePendingEvent()
YEvent * YQUI::consumePendingEvent |
( |
| ) |
|
|
inline |
Return the pending event, if there is one, and mark it as "consumed".
This returns 0 if there is no pending event.
◆ createOptionalWidgetFactory()
YOptionalWidgetFactory * YQUI::createOptionalWidgetFactory |
( |
| ) |
|
|
protectedvirtual |
Create the widget factory that provides all the createXY() methods for optional ("special") widgets and the corresponding hasXYWidget() methods.
Reimplemented from YUI.
◆ createWidgetFactory()
YWidgetFactory * YQUI::createWidgetFactory |
( |
| ) |
|
|
protectedvirtual |
Create the widget factory that provides all the createXY() methods for standard (mandatory, i.e. non-optional) widgets.
Reimplemented from YUI.
◆ defaultSize()
int YQUI::defaultSize |
( |
YUIDimension | dim | ) |
const |
Returns size for Opt(:defaultsize) dialogs (in one dimension).
◆ deleteNotify()
void YQUI::deleteNotify |
( |
YWidget * | widget | ) |
|
|
virtual |
Notification that a widget is being deleted.
Reimplemented from YUI.
◆ eventPendingFor()
bool YQUI::eventPendingFor |
( |
YWidget * | widget | ) |
const |
|
inline |
Returns 'true' if there is any event pending for the specified widget.
◆ eventsBlocked()
bool YQUI::eventsBlocked |
( |
| ) |
const |
|
virtual |
Returns 'true' if events are currently blocked.
Reimplemented from YUI.
◆ fatalError()
bool YQUI::fatalError |
( |
| ) |
const |
|
inline |
Returns 'true' if the UI had a fatal error that requires the application to abort.
◆ forceUnblockEvents()
void YQUI::forceUnblockEvents |
( |
| ) |
|
Force unblocking all events, no matter how many times blockEvents() has This returns 0 if there is no pending eventbeen called before.
◆ fullscreen()
bool YQUI::fullscreen |
( |
| ) |
const |
|
inline |
Return 'true' if defaultsize windows should use the full screen.
◆ idleLoop()
void YQUI::idleLoop |
( |
int | fd_ycp | ) |
|
|
protectedvirtual |
Idle around until fd_ycp is readable and handle repaints. This is only used when a separate ui thread is running.
Reimplemented from YUI.
◆ initUI()
Post-constructor initialization. If running with threads, this has to be called in the UI thread. Any subsequent calls will do nothing.
◆ loadBuiltInIcon()
QIcon YQUI::loadBuiltInIcon |
( |
const QString & | iconName | ) |
const |
|
protected |
Load a built-in icon, i.e. one from the Qt resource system.
Use either an alias from qt_icons.rcc (and no filename extension) or a full filename with path and extension, e.g. "icons/foo.svg". A leading ":/" will be added if not already there.
◆ loadIcon()
QIcon YQUI::loadIcon |
( |
const string & | iconName | ) |
const |
Load an icon. This tries several locations:
- The icon theme from the current desktop
- The compiled-in Qt resources
- An external file
If the icon does not have a filename extension, the icon theme will try to append ".svg" and ".png". For the compiled-in Qt resources, there are aliases specified ("foo" -> "foo.svg"), so it will also work without an extension.
For external files, a path and an extension will be necessary.
If no icon could be loaded, this will return a null QIcon (check with icon.isNull()), and a warning is logged.
◆ loadIconFromPath()
QIcon YQUI::loadIconFromPath |
( |
const QString & | iconPath | ) |
const |
|
protected |
Load an icon from an absolute path (including filename extension).
◆ loadThemeIcon()
QIcon YQUI::loadThemeIcon |
( |
const QString & | iconName | ) |
const |
|
protected |
Load an icon from the desktop theme. Those icon names typically do not contain a leading path or a filename extension.
◆ makeScreenShot()
void YQUI::makeScreenShot |
( |
std::string | filename | ) |
|
Make a screen shot in .png format and save it to 'filename'. Opens a file selection box if 'filename' is empty.
◆ noBorder()
bool YQUI::noBorder |
( |
| ) |
const |
|
inline |
Return 'true' if defaultsize windows should not get window manager borders / frames.
◆ normalCursor()
void YQUI::normalCursor |
( |
| ) |
|
Show normal mouse cursor not indicating busy status.
◆ pendingEvent()
YEvent * YQUI::pendingEvent |
( |
| ) |
const |
|
inline |
Returns the last event that isn't processed yet or 0 if there is none.
The Qt UI keeps track of only one single (the last one) event.
◆ processCommandLineArgs()
void YQUI::processCommandLineArgs |
( |
int | argc, |
|
|
char ** | argv ) |
|
protected |
◆ raiseFatalError()
void YQUI::raiseFatalError |
( |
| ) |
|
|
inline |
Raise a fatal UI error. It will be delivered when it is safe to do so. The caller should make sure it can continue for some time until the error is delivered.
◆ receivedYCPCommand()
void YQUI::receivedYCPCommand |
( |
| ) |
|
|
protected |
Notification that a YCP command has been received on fd_ycp to leave idleLoop()
◆ runPkgSelection()
YEvent * YQUI::runPkgSelection |
( |
YWidget * | packageSelector | ) |
|
|
virtual |
UI-specific runPkgSeleciton method: Start the package selection. This implementation does the same as UserInput().
Reimplemented from YUI.
◆ sendEvent()
void YQUI::sendEvent |
( |
YEvent * | event | ) |
|
Widget event handlers (slots) call this when an event occured that should be the answer to a UserInput() / PollInput() (etc.) call.
The UI assumes ownership of the event object that 'event' points to. In particular, it takes care to delete that object.
It is an error to pass 0 for 'event'.
◆ setApplicationTitle()
void YQUI::setApplicationTitle |
( |
const QString & | title | ) |
|
|
inline |
Sets the application name for the window title
◆ setTextdomain()
void YQUI::setTextdomain |
( |
const char * | domain | ) |
|
|
static |
Initialize and set a textdomain for gettext()
◆ timeoutBusyCursor()
void YQUI::timeoutBusyCursor |
( |
| ) |
|
Show mouse cursor indicating busy state if the UI is unable to respond to user input for more than a predefined timeout (200 millisec).
◆ toggleRecordMacro()
void YQUI::toggleRecordMacro |
( |
| ) |
|
Toggle macro recording (activated by Ctrl-Shift-Alt-M): Stop macro recording if it is in progress, open a file selection box and ask for a macro file name to save to and start recording if no recording has been in progress.
◆ ui()
static YQUI * YQUI::ui |
( |
| ) |
|
|
inlinestatic |
◆ uiThreadDestructor()
void YQUI::uiThreadDestructor |
( |
| ) |
|
|
protectedvirtual |
Destroy whatever needs to be destroyed within the UI thread.
Reimplemented from YUI.
◆ yqApp()
Return the global YApplication object as YQApplication.
This will create the Y(Q)Application upon the first call and return a pointer to the one and only (singleton) Y(Q)Application upon each subsequent call. This may throw exceptions if the Y(Q)Application cannot be created.
The documentation for this class was generated from the following files:
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQUI.h
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQUI.cc
- /builddir/build/BUILD/libyui-4.6.0/libyui-qt/src/YQUI_builtins.cc