swift
Signals | Public Member Functions | List of all members
swift::gui::components::CNavigatorDialog Class Reference

Navigator dialog. More...

Inheritance diagram for swift::gui::components::CNavigatorDialog:
[legend]

Signals

void navigatorClosed ()
 Navigator closed.
 

Public Member Functions

 CNavigatorDialog (QWidget *parent=nullptr)
 Constructor.
 
virtual ~CNavigatorDialog ()
 Destructor.
 
void buildNavigator (int columns)
 Navigator.
 
virtual void reject ()
 Called when dialog is closed.
 
void toggleFrameless ()
 Toggle frameless mode.
 
void showNavigator (bool visible)
 Visibility visibility.
 
void toggleNavigatorVisibility ()
 Toggle visibility.
 
void restoreFromSettings ()
 Restore from settings.
 
void saveToSettings ()
 Save to settings.
 
void setMainWindow (QMainWindow *window)
 The main window.
 
- Public Member Functions inherited from swift::gui::CEnableForFramelessWindow
 CEnableForFramelessWindow (WindowMode mode, bool isMainApplicationWindow, const char *framelessPropertyname, QWidget *correspondingWidget)
 Constructor. More...
 
virtual ~CEnableForFramelessWindow ()
 Destructor.
 
 CEnableForFramelessWindow (const CEnableForFramelessWindow &)=delete
 Copy constructor.
 
CEnableForFramelessWindowoperator= (const CEnableForFramelessWindow &)=delete
 Copy assignment operator.
 
void setMode (WindowMode mode)
 Window mode.
 
virtual void setFrameless (bool frameless)
 Framless.
 
bool isFrameless () const
 Frameless?
 
bool isMainApplicationWindow () const
 Is main application, explicitly set.
 
void alwaysOnTop (bool onTop)
 Always on top?
 
void activate ()
 Activates the window.
 
QWidget * getWidget () const
 Corresponding QMainWindow.
 

Protected Member Functions

Base class events
virtual void mouseMoveEvent (QMouseEvent *event)
 
virtual void mousePressEvent (QMouseEvent *event)
 
virtual void mouseReleaseEvent (QMouseEvent *event)
 
virtual void changeEvent (QEvent *evt)
 
virtual void windowFlagsChanged ()
 Can be used as notification if window mode changes. More...
 
virtual void paintEvent (QPaintEvent *event)
 
virtual void enterEvent (QEnterEvent *event)
 
- Protected Member Functions inherited from swift::gui::CEnableForFramelessWindow
void addFramelessSizeGripToStatusBar (QStatusBar *statusBar)
 Resize grip handle.
 
void hideFramelessSizeGripInStatusBar ()
 Resize grip handle.
 
void setWindowAttributes (WindowMode mode)
 Attributes. More...
 
void setDynamicProperties (bool frameless)
 Set dynamic properties such as frameless.
 
QHBoxLayout * addFramelessCloseButton (QMenuBar *menuBar)
 Close button for frameless windows.
 
void toolToNormalWindow ()
 Remove tool and add desktop window.
 
void normalToToolWindow ()
 Remove desktop and add tool window.
 
bool isToolWindow () const
 Tool window.
 
bool handleMousePressEvent (QMouseEvent *event)
 Mouse press, required for frameless window.
 
bool handleMouseMoveEvent (QMouseEvent *event)
 Mouse moving, required for frameless window.
 
bool handleChangeEvent (QEvent *event)
 Mouse window change event.
 
void showMinimizedModeChecked ()
 Check mode and then show minimized.
 
void showNormalModeChecked ()
 Check mode and then show normal.
 

Additional Inherited Members

- Public Types inherited from swift::gui::CEnableForFramelessWindow
enum  WindowMode { WindowNormal , WindowFrameless , WindowTool }
 Window modes.
 
- Static Public Member Functions inherited from swift::gui::CEnableForFramelessWindow
static WindowMode stringToWindowMode (const QString &s)
 String to window mode.
 
static const QString & windowModeToString (WindowMode m)
 String to window mode.
 
- Static Protected Member Functions inherited from swift::gui::CEnableForFramelessWindow
static Qt::WindowFlags modeToWindowFlags (WindowMode mode)
 Translate mode.
 
- Protected Attributes inherited from swift::gui::CEnableForFramelessWindow
QPoint m_framelessDragPosition
 position, if moving is handled with frameless window
 
QSize m_moveSize
 size when moved (in frameless window)
 
QPushButton * m_framelessCloseButton = nullptr
 close button
 
WindowMode m_windowMode = WindowNormal
 Window mode,. More...
 
WindowMode m_originalWindowMode = WindowNormal
 mode when initialized
 
bool m_isMainApplicationWindow = false
 is this the main application window (only 1)?
 
QWidget * m_widget = nullptr
 corresponding window or dock widget
 
QSizeGrip * m_framelessSizeGrip = nullptr
 size grip object
 
QByteArray m_framelessPropertyName
 property name for frameless widgets
 
int m_windowFrameSizeW = -1
 window frame width
 
int m_windowFrameSizeH = -1
 window frame height
 

Detailed Description

Navigator dialog.

Definition at line 37 of file navigatordialog.h.

Member Function Documentation

◆ changeEvent()

void swift::gui::components::CNavigatorDialog::changeEvent ( QEvent *  evt)
protectedvirtual

Definition at line 227 of file navigatordialog.cpp.

◆ enterEvent()

void swift::gui::components::CNavigatorDialog::enterEvent ( QEnterEvent *  event)
protectedvirtual

Definition at line 251 of file navigatordialog.cpp.

◆ mouseMoveEvent()

void swift::gui::components::CNavigatorDialog::mouseMoveEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 186 of file navigatordialog.cpp.

◆ mousePressEvent()

void swift::gui::components::CNavigatorDialog::mousePressEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 204 of file navigatordialog.cpp.

◆ mouseReleaseEvent()

void swift::gui::components::CNavigatorDialog::mouseReleaseEvent ( QMouseEvent *  event)
protectedvirtual

Definition at line 221 of file navigatordialog.cpp.

◆ paintEvent()

void swift::gui::components::CNavigatorDialog::paintEvent ( QPaintEvent *  event)
protectedvirtual

Definition at line 244 of file navigatordialog.cpp.

◆ windowFlagsChanged()

void swift::gui::components::CNavigatorDialog::windowFlagsChanged ( )
protectedvirtual

Can be used as notification if window mode changes.

Reimplemented from swift::gui::CEnableForFramelessWindow.

Definition at line 238 of file navigatordialog.cpp.


The documentation for this class was generated from the following files: