|
| | YQUI (bool withThreads, bool topmostConstructor=true) |
| | Constructors. More...
|
| |
|
virtual | ~YQUI () |
| | Destructor.
|
| |
| virtual void | initUI () |
| | Post-constructor initialization. More...
|
| |
| void | sendEvent (YEvent *event) |
| | Widget event handlers (slots) call this when an event occured that should be the answer to a UserInput() / PollInput() (etc.) call. More...
|
| |
|
bool | eventPendingFor (YWidget *widget) const |
| | Returns 'true' if there is any event pending for the specified widget.
|
| |
| YEvent * | pendingEvent () const |
| | Returns the last event that isn't processed yet or 0 if there is none. More...
|
| |
| YEvent * | consumePendingEvent () |
| | Return the pending event, if there is one, and mark it as "consumed". More...
|
| |
| virtual void | deleteNotify (YWidget *widget) |
| | Notification that a widget is being deleted. More...
|
| |
|
bool | fullscreen () const |
| | Return 'true' if defaultsize windows should use the full screen.
|
| |
|
bool | noBorder () const |
| | Return 'true' if defaultsize windows should not get window manager borders / frames.
|
| |
|
bool | fatalError () const |
| | Returns 'true' if the UI had a fatal error that requires the application to abort.
|
| |
| void | raiseFatalError () |
| | Raise a fatal UI error. More...
|
| |
|
int | defaultSize (YUIDimension dim) const |
| | Returns size for opt(defaultsize) dialogs (in one dimension).
|
| |
| void | makeScreenShot (std::string filename) |
| | Make a screen shot in .png format and save it to 'filename'. More...
|
| |
| virtual YEvent * | runPkgSelection (YWidget *packageSelector) |
| | UI-specific runPkgSeleciton method: Start the package selection. More...
|
| |
|
void | 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.
|
| |
|
void | askPlayMacro () |
| | Open file selection box and ask for a macro file to play (activated by Ctrl-Shift-Alt-P)
|
| |
|
void | askSendWidgetID () |
| | Open a pop-up dialog to ask the user for a widget ID and then send it with sendWidgetID().
|
| |
| virtual void | blockEvents (bool block=true) |
| | Block (or unblock) events. More...
|
| |
| virtual bool | eventsBlocked () const |
| | Returns 'true' if events are currently blocked. More...
|
| |
|
void | forceUnblockEvents () |
| | Force unblocking all events, no matter how many times blockEvents() has This returns 0 if there is no pending eventbeen called before.
|
| |
|
void | busyCursor () |
| | Show mouse cursor indicating busy state.
|
| |
|
void | normalCursor () |
| | Show normal mouse cursor not indicating busy status.
|
| |
|
void | 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).
|
| |
| void | askSaveLogs () |
| | Open file selection box and let the user save y2logs to that location. More...
|
| |
| void | askConfigureLogging () |
| | Open dialog to configure logging. More...
|
| |
| QString | applicationTitle () |
| | Returns the application name for the window title (e.g. More...
|
| |
|
void | setApplicationTitle (const QString &title) |
| | Sets the application name for the window title.
|
| |
| QIcon | loadIcon (const string &iconName) const |
| | Load an icon. More...
|
| |
|
| virtual YWidgetFactory * | createWidgetFactory () |
| | Create the widget factory that provides all the createXY() methods for standard (mandatory, i.e. More...
|
| |
| virtual YOptionalWidgetFactory * | createOptionalWidgetFactory () |
| | Create the widget factory that provides all the createXY() methods for optional ("special") widgets and the corresponding hasXYWidget() methods. More...
|
| |
|
virtual YApplication * | createApplication () |
| |
|
void | processCommandLineArgs (int argc, char **argv) |
| | Handle command line args.
|
| |
| void | probeX11Display (const YCommandLine &cmdLine) |
| | Probe the X11 display. More...
|
| |
|
void | calcDefaultSize () |
| | Calculate size of opt(defaultsize) dialogs.
|
| |
| virtual void | idleLoop (int fd_ycp) |
| | Idle around until fd_ycp is readable and handle repaints. More...
|
| |
| virtual void | uiThreadDestructor () |
| | Destroy whatever needs to be destroyed within the UI thread. More...
|
| |
|
void | receivedYCPCommand () |
| | Notification that a YCP command has been received on fd_ycp to leave idleLoop()
|
| |
|
bool | close () |
| | Application shutdown.
|
| |
Definition at line 62 of file YQUI.h.
| 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.
Definition at line 708 of file YQUI.cc.
| 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'.
Definition at line 480 of file YQUI.cc.