|
| YQUI (bool withThreads) |
| Constructor.
|
|
virtual | ~YQUI () |
| Destructor.
|
|
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)
|
|
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...
|
|
QPalette | normalPalette () const |
| Returns the normal color palette.
|
|
void | toggleVisionImpairedPalette () |
| Toggle between the vision impaired and the normal color palette.
|
|
bool | usingVisionImpairedPalette () const |
| Returns 'true' if high-contrast colors for vision impaired users is in use. 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.
|
|
|
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.
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 486 of file YQUI.cc.