![]() |
QElectroTech
0.8-dev
|
#include <qetmainwindow.h>


Public Slots | |
| void | toggleFullScreen () |
| void | updateFullScreenAction () |
| void | checkToolbarsmenu () |
Public Member Functions | |
| QETMainWindow (QWidget *=nullptr, Qt::WindowFlags=Qt::Widget) | |
| ~QETMainWindow () override | |
Protected Member Functions | |
| void | initCommonActions () |
| void | initCommonMenus () |
| void | insertMenu (QMenu *, QMenu *, bool=true) |
| QAction * | actionForMenu (QMenu *) |
| bool | event (QEvent *) override |
| void | dragEnterEvent (QDragEnterEvent *e) override |
| void | dropEvent (QDropEvent *e) override |
| virtual void | firstActivation (QEvent *) |
Protected Attributes | |
| QAction * | configure_action_ |
| Launch the QElectroTech configuration dialog. More... | |
| QAction * | fullscreen_action_ |
| Toggle full screen. More... | |
| QAction * | whatsthis_action_ |
| Toggle "What's this" mode. More... | |
| QAction * | about_qet_ |
| Launch the "About QElectroTech" dialog. More... | |
| QAction * | manual_online_ |
| Launch browser on QElectroTech online manual. More... | |
| QAction * | youtube_ |
| Launch browser on QElectroTech Youtube channel. More... | |
| QAction * | upgrade_ |
| Launch browser on QElectroTech Windows Nightly builds. More... | |
| QAction * | upgrade_M |
| Launch browser on QElectroTech MAC_OS_X builds. More... | |
| QAction * | donate_ |
| Launch browser to donate link. More... | |
| QAction * | about_qt_ |
| launch the "About Qt" dialog More... | |
| QMenu * | settings_menu_ |
| Settings menu. More... | |
| QMenu * | help_menu_ |
| Help menu. More... | |
| QMenu * | display_toolbars_ |
| Show/hide toolbars/docks. More... | |
| QHash< QMenu *, QAction * > | menu_actions_ |
| Store actions retrieved when inserting menus. More... | |
| bool | first_activation_ |
| Used to detect whether the window is activated for the first time. More... | |
This is the base class for the main top-level windows within QElectroTech.
| QETMainWindow::QETMainWindow | ( | QWidget * | widget = nullptr, |
| Qt::WindowFlags | flags = Qt::Widget |
||
| ) |
Constructor

|
override |
Destructor
|
protected |

|
slot |
Check whether a sub menu dedicated to docks and toolbars can be inserted on top of the settings menu.


|
overrideprotected |
Accept or refuse drag'n drop events depending on the dropped mime type; especially, accepts only URLs to local files that we could open.
| e | le QDragEnterEvent correspondant au drag'n drop tente |

|
overrideprotected |
Handle drops accepted on main windows; more specifically, open dropped files as long as they are handled by QElectrotech.
| e | the QDropEvent describing the current drag'n drop |

|
overrideprotected |
Handle the e event.


|
protectedvirtual |
Base implementation of firstActivation (does nothing).
Reimplemented in QETElementEditor, and QETTitleBlockTemplateEditor.

|
protected |
Initialize common actions.


|
protected |
Initialize common menus.


|
protected |
Add menu before before. Unless customize is false, this method also enables some common settings on the inserted menu.


|
slot |
Toggle the window from/to full screen.
|
slot |
Update the look of the full screen action according to the current state of the window.

|
protected |
Launch the "About QElectroTech" dialog.
|
protected |
launch the "About Qt" dialog
|
protected |
Launch the QElectroTech configuration dialog.
|
protected |
Show/hide toolbars/docks.
|
protected |
Launch browser to donate link.
|
protected |
Used to detect whether the window is activated for the first time.
|
protected |
Toggle full screen.
|
protected |
Help menu.
|
protected |
Launch browser on QElectroTech online manual.
|
protected |
Store actions retrieved when inserting menus.
|
protected |
Settings menu.
|
protected |
Launch browser on QElectroTech Windows Nightly builds.
|
protected |
Launch browser on QElectroTech MAC_OS_X builds.
|
protected |
Toggle "What's this" mode.
|
protected |
Launch browser on QElectroTech Youtube channel.
1.8.18