28 #include <qapplication.h>
33 #include <type_traits>
36 #include <yui/YSimpleEventHandler.h>
37 #include <yui/YCommandLine.h>
39 #define YQWidgetMargin 4
40 #define YQWidgetSpacing 4
41 #define YQButtonBorder 3
47 #define pclass(ptr) std::remove_reference<decltype(*ptr)>::type
71 YQUI(
bool withThreads );
112 virtual YApplication * createApplication();
141 {
return _eventHandler.eventPendingFor( widget ); }
329 virtual void idleLoop(
int fd_ycp );
349 QMap<QString, int> screenShotNo;
350 QString screenShotNameTemplate;
357 bool _received_ycp_command;
360 QTimer * _busyCursorTimer;
362 YSimpleEventHandler _eventHandler;
365 QPalette _normalPalette;
366 bool _usingVisionImpairedPalette;
368 bool _leftHandedMouse;
369 bool _askedForLeftHandedMouse;
374 QString _applicationTitle;
395 void slotBusyCursor();
396 void slotReceivedYCPCommand();
406 YUI * createUI(
bool withThreads );
void receivedYCPCommand()
static YQApplication * yqApp()
void askConfigureLogging()
void forceUnblockEvents()
bool eventPendingFor(YWidget *widget) const
void setApplicationTitle(const QString &title)
int defaultSize(YUIDimension dim) const
void makeScreenShot(std::string filename)
virtual YEvent * runPkgSelection(YWidget *packageSelector)
virtual YOptionalWidgetFactory * createOptionalWidgetFactory()
QString applicationTitle()
bool usingVisionImpairedPalette() const
void sendEvent(YEvent *event)
virtual void idleLoop(int fd_ycp)
void probeX11Display(const YCommandLine &cmdLine)
virtual bool eventsBlocked() const
virtual void deleteNotify(YWidget *widget)
void processCommandLineArgs(int argc, char **argv)
static QPalette visionImpairedPalette()
YEvent * consumePendingEvent()
QPalette normalPalette() const
virtual void blockEvents(bool block=true)
YEvent * pendingEvent() const
static void setTextdomain(const char *domain)
void toggleVisionImpairedPalette()
virtual YWidgetFactory * createWidgetFactory()