Loading...
Searching...
No Matches
SBGApp Class Referenceabstract

This class is the base class for App's GUI.

Public Member Functions

 SBGApp (SBDApp *app)
 
- Public Member Functions inherited from SBGWindowWidget
virtual ~SBGWindowWidget ()
 Destructor.
 
virtual QString getName () const
 Returns the widget name (used as a title for the embedding window)
 
virtual QPixmap getLogo () const
 Returns the pixmap logo.
 
virtual int getFormat () const
 Returns the format.
 
virtual QString getCitation () const
 Returns the citation information.
 
SBGWindowgetWindow () const
 Returns the pointer to the embedding window, if any.
 
SBGWindowDockgetDockWindow () const
 Returns the pointer to the embedding dock window, if any.
 
virtual void loadSettings (SBGSettings *settings)
 Loads settings.
 
virtual void saveSettings (SBGSettings *settings)
 Saves settings.
 
void loadDefaultSettings ()
 Loads default settings

 
void saveDefaultSettings ()
 Saves default settings

 
void setLockedFlag (bool lockedFlag)
 Sets whether the widget is locked (on top)
 
bool getLockedFlag () const
 Returns whether the widget is locked (on top)
 
void highlight (const SBQuantity::second &duration=SBQuantity::second(1.0))
 Highlights the widget for a moment.
 
bool getHighlightingFlag () const
 Returns the highlighting flag.
 
void setHighlightingFlag (bool highlightingFlag)
 Sets the highlighting flag.
 
 SB_DECLARE_DATA (SBGWindowWidget)
 

Identity

virtual SBCContainerUUID getUUID () const =0
 Returns the app GUI UUID.
 
virtual QKeySequence getShortcut () const
 Returns the shortcut.
 
virtual QString getToolTip () const
 Returns the tool tip.
 

App

SBDAppgetApp () const
 Returns a pointer to the app.
 
void setApp (SBDApp *app)
 Sets the pointer to the app.
 

Settings

virtual bool getVerticalSpacerFlag () const
 Returns whether the GUI should have a vertical spacer added.
 
virtual Qt::DockWidgetArea getDockWidgetArea () const
 Returns the preferred dock widget area.
 
 SB_DECLARE_DATA (SBGApp)
 

Additional Inherited Members

- Public Slots inherited from SBGWindowWidget
void stopHighlighting ()
 
- Signals inherited from SBGWindowWidget
void shown (bool)
 Emitted when the widget is shown or hidden.
 
- Protected Member Functions inherited from SBGWindowWidget
 SBGWindowWidget ()
 
 SBGWindowWidget (SBGWindowWidgetData *dataPointer)
 
void hideEvent (QHideEvent *event)
 
void showEvent (QShowEvent *event)
 
void changeEvent (QEvent *event)
 
- Protected Attributes inherited from SBGWindowWidget
SBGWindowWidgetData * dataPointer
 

Member Function Documentation

◆ getUUID()

virtual SBCContainerUUID SBGApp::getUUID ( ) const
pure virtual

Reimplemented from SBGWindowWidget.