CuteHMI - Graphical User Interface (CuteHMI.GUI.0)
cutehmi::gui::CuteApplication Class Reference

Application. More...

#include <cutehmi/gui/CuteApplication.hpp>

Inheritance diagram for cutehmi::gui::CuteApplication:
QApplication QGuiApplication QCoreApplication QObject

Signals

void idleChanged ()
 
void idleMeasureEnabledChanged ()
 
void themeChanged ()
 

Public Member Functions

 CuteApplication (int &argc, char **argv)
 
double idle () const
 
bool idleMeasureEnabled () const
 
void setIdleMeasureEnabled (bool idleMeasureEnabled)
 
ThemedefaultTheme () const
 
Themetheme () const
 
void setTheme (Theme *theme)
 
bool notify (QObject *receiver, QEvent *event) override
 
- Public Member Functions inherited from QApplication
virtual const QMetaObjectmetaObject () const const
 
virtual void * qt_metacast (const char *)
 
virtual int qt_metacall (QMetaObject::Call, int, void **)
 
 QApplication (int &argc, char **argv)
 
virtual ~QApplication ()
 
void focusChanged (QWidget *old, QWidget *now)
 
QString styleSheet () const const
 
void setStyleSheet (const QString &sheet)
 
void setAutoSipEnabled (const bool enabled)
 
bool autoSipEnabled () const const
 
- Public Member Functions inherited from QGuiApplication
 QGuiApplication (int &argc, char **argv)
 
virtual ~QGuiApplication ()
 
qreal devicePixelRatio () const const
 
bool isSessionRestored () const const
 
QString sessionId () const const
 
QString sessionKey () const const
 
bool isSavingSession () const const
 
void fontDatabaseChanged ()
 
void screenAdded (QScreen *screen)
 
void screenRemoved (QScreen *screen)
 
void primaryScreenChanged (QScreen *screen)
 
void lastWindowClosed ()
 
void focusObjectChanged (QObject *focusObject)
 
void focusWindowChanged (QWindow *focusWindow)
 
void applicationStateChanged (Qt::ApplicationState state)
 
void layoutDirectionChanged (Qt::LayoutDirection direction)
 
void commitDataRequest (QSessionManager &manager)
 
void saveStateRequest (QSessionManager &manager)
 
void paletteChanged (const QPalette &palette)
 
void applicationDisplayNameChanged ()
 
void fontChanged (const QFont &font)
 
- Public Member Functions inherited from QCoreApplication
 QCoreApplication (int &argc, char **argv)
 
virtual ~QCoreApplication ()
 
void installNativeEventFilter (QAbstractNativeEventFilter *filterObj)
 
void removeNativeEventFilter (QAbstractNativeEventFilter *filterObject)
 
void aboutToQuit ()
 
- Public Member Functions inherited from QObject
 QObject (QObject *parent)
 
virtual ~QObject ()
 
virtual bool eventFilter (QObject *watched, QEvent *event)
 
QString objectName () const const
 
void setObjectName (const QString &name)
 
bool isWidgetType () const const
 
bool isWindowType () const const
 
bool signalsBlocked () const const
 
bool blockSignals (bool block)
 
QThreadthread () const const
 
void moveToThread (QThread *targetThread)
 
int startTimer (int interval, Qt::TimerType timerType)
 
int startTimer (std::chrono::milliseconds time, Qt::TimerType timerType)
 
void killTimer (int id)
 
findChild (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QString &name, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegExp &regExp, Qt::FindChildOptions options) const const
 
QList< T > findChildren (const QRegularExpression &re, Qt::FindChildOptions options) const const
 
const QObjectList & children () const const
 
void setParent (QObject *parent)
 
void installEventFilter (QObject *filterObj)
 
void removeEventFilter (QObject *obj)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const char *method, Qt::ConnectionType type) const const
 
bool disconnect (const char *signal, const QObject *receiver, const char *method) const const
 
bool disconnect (const QObject *receiver, const char *method) const const
 
void dumpObjectTree ()
 
void dumpObjectInfo ()
 
void dumpObjectTree () const const
 
void dumpObjectInfo () const const
 
bool setProperty (const char *name, const QVariant &value)
 
QVariant property (const char *name) const const
 
QList< QByteArraydynamicPropertyNames () const const
 
void destroyed (QObject *obj)
 
void objectNameChanged (const QString &objectName)
 
QObjectparent () const const
 
bool inherits (const char *className) const const
 
void deleteLater ()
 

Static Public Attributes

static constexpr int IDLE_MEASURE_INTERVAL = 1000
 Idle measurement update interval [milliseconds]. More...
 

Properties

double idle
 
bool idleMeasureEnabled
 
Theme defaultTheme
 Default theme. More...
 
Theme theme
 Current theme. More...
 
- Properties inherited from QApplication
 windowIcon
 
 cursorFlashTime
 
 doubleClickInterval
 
 keyboardInputInterval
 
 wheelScrollLines
 
 globalStrut
 
 startDragTime
 
 startDragDistance
 
 styleSheet
 
 autoSipEnabled
 
- Properties inherited from QGuiApplication
 windowIcon
 
 applicationDisplayName
 
 desktopFileName
 
 layoutDirection
 
 platformName
 
 quitOnLastWindowClosed
 
 primaryScreen
 
- Properties inherited from QCoreApplication
 applicationName
 
 applicationVersion
 
 organizationName
 
 organizationDomain
 
 quitLockEnabled
 
- Properties inherited from QObject
 objectName
 

Additional Inherited Members

- Static Public Member Functions inherited from QApplication
QString tr (const char *s, const char *c, int n)
 
QString trUtf8 (const char *s, const char *c, int n)
 
QStylestyle ()
 
void setStyle (QStyle *style)
 
QStylesetStyle (const QString &style)
 
int colorSpec ()
 
void setColorSpec (int spec)
 
void setGraphicsSystem (const QString &)
 
QPalette palette (const QWidget *widget)
 
QPalette palette (const char *className)
 
void setPalette (const QPalette &palette, const char *className)
 
QFont font ()
 
QFont font (const QWidget *widget)
 
QFont font (const char *className)
 
void setFont (const QFont &font, const char *className)
 
QFontMetrics fontMetrics ()
 
void setWindowIcon (const QIcon &icon)
 
QIcon windowIcon ()
 
QWidgetList allWidgets ()
 
QWidgetList topLevelWidgets ()
 
QDesktopWidgetdesktop ()
 
QWidgetactivePopupWidget ()
 
QWidgetactiveModalWidget ()
 
QWidgetfocusWidget ()
 
QWidgetactiveWindow ()
 
void setActiveWindow (QWidget *active)
 
QWidgetwidgetAt (const QPoint &point)
 
QWidgetwidgetAt (int x, int y)
 
QWidgettopLevelAt (const QPoint &point)
 
QWidgettopLevelAt (int x, int y)
 
void beep ()
 
void alert (QWidget *widget, int msec)
 
void setCursorFlashTime (int)
 
int cursorFlashTime ()
 
void setDoubleClickInterval (int)
 
int doubleClickInterval ()
 
void setKeyboardInputInterval (int)
 
int keyboardInputInterval ()
 
void setWheelScrollLines (int)
 
int wheelScrollLines ()
 
void setGlobalStrut (const QSize &)
 
QSize globalStrut ()
 
void setStartDragTime (int ms)
 
int startDragTime ()
 
void setStartDragDistance (int l)
 
int startDragDistance ()
 
bool isEffectEnabled (Qt::UIEffect effect)
 
void setEffectEnabled (Qt::UIEffect effect, bool enable)
 
QLocale keyboardInputLocale ()
 
Qt::LayoutDirection keyboardInputDirection ()
 
int exec ()
 
void setKeypadNavigationEnabled (bool enable)
 
bool keypadNavigationEnabled ()
 
void setNavigationMode (Qt::NavigationMode mode)
 
Qt::NavigationMode navigationMode ()
 
void closeAllWindows ()
 
void aboutQt ()
 
- Static Public Member Functions inherited from QGuiApplication
QString tr (const char *s, const char *c, int n)
 
QString trUtf8 (const char *s, const char *c, int n)
 
void setApplicationDisplayName (const QString &name)
 
QString applicationDisplayName ()
 
void setDesktopFileName (const QString &name)
 
QString desktopFileName ()
 
QWindowList allWindows ()
 
QWindowList topLevelWindows ()
 
QWindowtopLevelAt (const QPoint &pos)
 
void setWindowIcon (const QIcon &icon)
 
QIcon windowIcon ()
 
QString platformName ()
 
QWindowmodalWindow ()
 
QWindowfocusWindow ()
 
QObjectfocusObject ()
 
QScreenprimaryScreen ()
 
QList< QScreen * > screens ()
 
QScreenscreenAt (const QPoint &point)
 
QCursoroverrideCursor ()
 
void setOverrideCursor (const QCursor &cursor)
 
void changeOverrideCursor (const QCursor &cursor)
 
void restoreOverrideCursor ()
 
QFont font ()
 
void setFont (const QFont &font)
 
QClipboardclipboard ()
 
QPalette palette ()
 
void setPalette (const QPalette &pal)
 
Qt::KeyboardModifiers keyboardModifiers ()
 
Qt::KeyboardModifiers queryKeyboardModifiers ()
 
Qt::MouseButtons mouseButtons ()
 
void setLayoutDirection (Qt::LayoutDirection direction)
 
Qt::LayoutDirection layoutDirection ()
 
bool isRightToLeft ()
 
bool isLeftToRight ()
 
QStyleHintsstyleHints ()
 
void setDesktopSettingsAware (bool on)
 
bool desktopSettingsAware ()
 
QInputMethodinputMethod ()
 
QPlatformNativeInterface * platformNativeInterface ()
 
QFunctionPointer platformFunction (const QByteArray &function)
 
void setQuitOnLastWindowClosed (bool quit)
 
bool quitOnLastWindowClosed ()
 
Qt::ApplicationState applicationState ()
 
int exec ()
 
bool isFallbackSessionManagementEnabled ()
 
void setFallbackSessionManagementEnabled (bool enabled)
 
void sync ()
 
- Static Public Member Functions inherited from QCoreApplication
QString tr (const char *s, const char *c, int n)
 
QString trUtf8 (const char *s, const char *c, int n)
 
QStringList arguments ()
 
void setAttribute (Qt::ApplicationAttribute attribute, bool on)
 
bool testAttribute (Qt::ApplicationAttribute attribute)
 
void setOrganizationDomain (const QString &orgDomain)
 
QString organizationDomain ()
 
void setOrganizationName (const QString &orgName)
 
QString organizationName ()
 
void setApplicationName (const QString &application)
 
QString applicationName ()
 
void setApplicationVersion (const QString &version)
 
QString applicationVersion ()
 
void setSetuidAllowed (bool allow)
 
bool isSetuidAllowed ()
 
QCoreApplicationinstance ()
 
int exec ()
 
void processEvents (QEventLoop::ProcessEventsFlags flags)
 
void processEvents (QEventLoop::ProcessEventsFlags flags, int maxtime)
 
void exit (int returnCode)
 
bool sendEvent (QObject *receiver, QEvent *event)
 
void postEvent (QObject *receiver, QEvent *event, int priority)
 
void sendPostedEvents (QObject *receiver, int event_type)
 
void removePostedEvents (QObject *receiver, int eventType)
 
bool hasPendingEvents ()
 
QAbstractEventDispatchereventDispatcher ()
 
void setEventDispatcher (QAbstractEventDispatcher *eventDispatcher)
 
bool startingUp ()
 
bool closingDown ()
 
QString applicationDirPath ()
 
QString applicationFilePath ()
 
qint64 applicationPid ()
 
void setLibraryPaths (const QStringList &paths)
 
QStringList libraryPaths ()
 
void addLibraryPath (const QString &path)
 
void removeLibraryPath (const QString &path)
 
bool installTranslator (QTranslator *translationFile)
 
bool removeTranslator (QTranslator *translationFile)
 
QString translate (const char *context, const char *sourceText, const char *disambiguation, int n)
 
QString translate (const char *context, const char *key, const char *disambiguation, QCoreApplication::Encoding encoding, int n)
 
void flush ()
 
bool isQuitLockEnabled ()
 
void setQuitLockEnabled (bool enabled)
 
void quit ()
 
- Static Public Member Functions inherited from QObject
QString tr (const char *sourceText, const char *disambiguation, int n)
 
QString trUtf8 (const char *sourceText, const char *disambiguation, int n)
 
QMetaObject::Connection connect (const QObject *sender, const char *signal, const QObject *receiver, const char *method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method, Qt::ConnectionType type)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, Functor functor)
 
QMetaObject::Connection connect (const QObject *sender, PointerToMemberFunction signal, const QObject *context, Functor functor, Qt::ConnectionType type)
 
bool disconnect (const QObject *sender, const char *signal, const QObject *receiver, const char *method)
 
bool disconnect (const QObject *sender, const QMetaMethod &signal, const QObject *receiver, const QMetaMethod &method)
 
bool disconnect (const QMetaObject::Connection &connection)
 
bool disconnect (const QObject *sender, PointerToMemberFunction signal, const QObject *receiver, PointerToMemberFunction method)
 
- Protected Member Functions inherited from QApplication
virtual bool event (QEvent *e) override
 
- Protected Member Functions inherited from QObject
QObjectsender () const const
 
int senderSignalIndex () const const
 
int receivers (const char *signal) const const
 
bool isSignalConnected (const QMetaMethod &signal) const const
 
virtual void timerEvent (QTimerEvent *event)
 
virtual void childEvent (QChildEvent *event)
 
virtual void customEvent (QEvent *event)
 
virtual void connectNotify (const QMetaMethod &signal)
 
virtual void disconnectNotify (const QMetaMethod &signal)
 

Detailed Description

Application.

This class extends QApplication to provide idle measurment. It is also associated with theme objects.

Constructor & Destructor Documentation

◆ CuteApplication()

cutehmi::gui::CuteApplication::CuteApplication ( int &  argc,
char **  argv 
)

Member Function Documentation

◆ defaultTheme()

Theme* cutehmi::gui::CuteApplication::defaultTheme ( ) const

◆ idle()

double cutehmi::gui::CuteApplication::idle ( ) const

◆ idleChanged

void cutehmi::gui::CuteApplication::idleChanged ( )
signal

◆ idleMeasureEnabled()

bool cutehmi::gui::CuteApplication::idleMeasureEnabled ( ) const

◆ idleMeasureEnabledChanged

void cutehmi::gui::CuteApplication::idleMeasureEnabledChanged ( )
signal

◆ notify()

bool cutehmi::gui::CuteApplication::notify ( QObject receiver,
QEvent event 
)
overridevirtual

Reimplemented from QApplication.

◆ setIdleMeasureEnabled()

void cutehmi::gui::CuteApplication::setIdleMeasureEnabled ( bool  idleMeasureEnabled)

◆ setTheme()

void cutehmi::gui::CuteApplication::setTheme ( Theme theme)

◆ theme()

Theme* cutehmi::gui::CuteApplication::theme ( ) const

◆ themeChanged

void cutehmi::gui::CuteApplication::themeChanged ( )
signal

Member Data Documentation

◆ IDLE_MEASURE_INTERVAL

constexpr int cutehmi::gui::CuteApplication::IDLE_MEASURE_INTERVAL = 1000
staticconstexpr

Idle measurement update interval [milliseconds].

Property Documentation

◆ defaultTheme

Theme * cutehmi::gui::CuteApplication::defaultTheme
read

Default theme.

◆ idle

double cutehmi::gui::CuteApplication::idle
read

◆ idleMeasureEnabled

bool cutehmi::gui::CuteApplication::idleMeasureEnabled
readwrite

◆ theme

Theme * cutehmi::gui::CuteApplication::theme
readwrite

Current theme.