QElectroTech  0.8-dev
qetapp.h
Go to the documentation of this file.
1 /*
2  Copyright 2006-2020 The QElectroTech Team
3  This file is part of QElectroTech.
4 
5  QElectroTech is free software: you can redistribute it and/or modify
6  it under the terms of the GNU General Public License as published by
7  the Free Software Foundation, either version 2 of the License, or
8  (at your option) any later version.
9 
10  QElectroTech is distributed in the hope that it will be useful,
11  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  GNU General Public License for more details.
14 
15  You should have received a copy of the GNU General Public License
16  along with QElectroTech. If not, see <http://www.gnu.org/licenses/>.
17 */
18 #ifndef QET_APP_H
19 #define QET_APP_H
20 
21 #include <QTranslator>
22 #include <QSystemTrayIcon>
23 #include <QPalette>
24 #include <QByteArray>
25 
26 #include "elementslocation.h"
27 #include "templatelocation.h"
28 #include "qetarguments.h"
29 
30 class QSplashScreen;
31 class QMenu;
32 class QAction;
33 class QMainWindow;
34 
35 #define QETAPP_COMMON_TBT_PROTOCOL "commontbt"
36 #define QETAPP_CUSTOM_TBT_PROTOCOL "customtbt"
37 
38 class AboutQET;
39 class QETDiagramEditor;
40 class QETElementEditor;
42 class TitleBlockTemplate;
45 class QETProject;
48 class RecentFiles;
49 
54 class QETApp : public QObject
55 {
56  Q_OBJECT
57  // constructors, destructor
58  public:
59  QETApp();
60  ~QETApp() override;
61 
62  private:
63  QETApp(const QETApp &);
64 
65  // methods
66  public:
67  static QETApp *instance();
68  void setLanguage(const QString &);
69  static QString langFromSetting ();
70  void switchLayout(Qt::LayoutDirection);
71  static void printHelp();
72  static void printVersion();
73  static void printLicense();
74 
76  static QStringList elementInfoKeys();
77  static QString elementTranslatedInfoKey(const QString &);
78  static QString elementInfoToVar(const QString &info);
79 
80  static QStringList conductorInfoKeys();
81  static QString conductorTranslatedInfoKey(const QString &key);
82 
83  static QStringList diagramInfoKeys();
84  static QString diagramTranslatedInfoKey(const QString &key);
85 
88  static QList<TitleBlockTemplatesCollection *> availableTitleBlockTemplatesCollections();
90 
91  static QString commonElementsDir();
92  static QString customElementsDir();
93  static QString commonElementsDirN();
94  static QString customElementsDirN();
95  static void resetUserElementsDir();
96  static QString commonTitleBlockTemplatesDir();
97  static QString customTitleBlockTemplatesDir();
98  static bool registerProject(QETProject *);
99  static bool unregisterProject(QETProject *);
100  static QMap<uint, QETProject *> registeredProjects();
101  static QETProject *project(const uint &);
102  static int projectId(const QETProject *);
103  static QString configDir();
104  static QString languagesPath();
105  static QString realPath(const QString &);
106  static QString symbolicPath(const QString &);
107  static QStringList handledFileExtensions();
108  static QStringList handledFiles(const QList<QUrl> &);
111 
112 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION
113  public:
114  static void overrideCommonElementsDir(const QString &);
115  private:
120  static QString common_elements_dir;
121 #endif
122 
123 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION
124  public:
125  static void overrideCommonTitleBlockTemplatesDir(const QString &);
126  private:
132  static QString common_tbt_dir_;
133 #endif
134 
135 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION
136  public:
137  static void overrideConfigDir(const QString &);
138  private:
144  static QString config_dir;
145 #endif
146 
147  public:
148  static void overrideLangDir(const QString &);
153  static QString lang_dir;
154  static QFont diagramTextsFont(qreal = -1.0);
155  static QFont diagramTextsItemFont(qreal = -1.0);
156  static QFont dynamicTextsItemFont(qreal = -1.0);
157  static QFont indiTextsItemFont (qreal = -1.0);
158  static QETDiagramEditor *diagramEditorForFile(const QString &);
159  static QETDiagramEditor *diagramEditorAncestorOf (const QWidget *child);
160  static QList<QETDiagramEditor *> diagramEditors();
161  static QList<QETElementEditor *> elementEditors();
162  static QList<QETElementEditor *> elementEditors(QETProject *);
163  static QList<QETTitleBlockTemplateEditor *> titleBlockTemplateEditors();
164  static QList<QETTitleBlockTemplateEditor *> titleBlockTemplateEditors(QETProject *);
167 
168  protected:
169 
170 #ifdef Q_OS_DARWIN
171  bool eventFiltrer(QObject *object, QEvent *);
172 #endif
173 
174  // attributes
175  private:
176  static QETApp *m_qetapp;
177  QTranslator qtTranslator;
178  QTranslator qetTranslator;
179  QSystemTrayIcon *m_qsti;
180  QSplashScreen *m_splash_screen;
181  QMenu *menu_systray;
182  QAction *quitter_qet;
183  QAction *reduce_appli;
184  QAction *restore_appli;
185  QAction *reduce_diagrams;
187  QAction *reduce_elements;
191  QAction *new_diagram;
192  QAction *new_element;
193  QHash<QMainWindow *, QByteArray> window_geometries;
194  QHash<QMainWindow *, QByteArray> window_states;
202  QSignalMapper signal_map;
204 
210  QPalette initial_palette_;
211 
215  static QMap<uint, QETProject *> registered_projects_;
216  static uint next_project_id;
222  static QString m_user_custom_tbt_dir;
223 
224  public slots:
225  void systray(QSystemTrayIcon::ActivationReason);
226  void reduceEveryEditor();
227  void restoreEveryEditor();
228  void reduceDiagramEditors();
229  void restoreDiagramEditors();
230  void reduceElementEditors();
231  void restoreElementEditors();
234  void newDiagramEditor();
235  void newElementEditor();
236  bool closeEveryEditor();
237  void setMainWindowVisible(QMainWindow *, bool);
238  void invertMainWindowVisibility(QWidget *);
239  void useSystemPalette(bool);
240  void quitQET();
241  void checkRemainingWindows();
242  void openFiles(const QETArguments &);
243  void openProjectFiles(const QStringList &);
244  void openElementFiles(const QStringList &);
245  void openElementLocations(const QList<ElementsLocation> &);
246  void openTitleBlockTemplate(const TitleBlockTemplateLocation &, bool = false);
247  void openTitleBlockTemplate(const QString &);
248  void openTitleBlockTemplateFiles(const QStringList &);
249  void configureQET();
250  void aboutQET();
251  void receiveMessage(int instanceId, QByteArray message);
252 
253  private:
254  template <class T> QList<T *> detectWindows() const;
255  template <class T> void setMainWindowsVisible(bool);
256  QList<QWidget *> floatingToolbarsAndDocksForMainWindow(QMainWindow *) const;
257  void parseArguments();
258  void initSplashScreen();
259  void setSplashScreenStep(const QString & = QString());
260  void initLanguage();
261  void initStyle();
262  void initConfiguration();
263  void initSystemTray();
264  void buildSystemTrayMenu();
265  void checkBackupFiles();
266  void fetchWindowStats(
267  const QList<QETDiagramEditor *> &,
268  const QList<QETElementEditor *> &,
269  const QList<QETTitleBlockTemplateEditor *> &
270  );
271  template <class T> void addWindowsListToMenu(QMenu *, const QList<T *> &);
272  static int projectIdFromString(const QString &);
273  static QETProject *projectFromString(const QString &);
274 };
275 
276 #endif
QETApp::diagramEditorAncestorOf
static QETDiagramEditor * diagramEditorAncestorOf(const QWidget *child)
QETApp::diagramEditorAncestorOf.
Definition: qetapp.cpp:961
QETApp::openTitleBlockTemplateFiles
void openTitleBlockTemplateFiles(const QStringList &)
QETApp::openTitleBlockTemplateFiles Open provided title block template files. If a title block templa...
Definition: qetapp.cpp:1703
QETApp::initSystemTray
void initSystemTray()
QETApp::initSystemTray Build the icon in the systray and its menu.
Definition: qetapp.cpp:1985
QETApp::titleBlockTemplateEditors
static QList< QETTitleBlockTemplateEditor * > titleBlockTemplateEditors()
QETApp::titleBlockTemplateEditors.
Definition: qetapp.cpp:1231
QETApp::dynamicTextsItemFont
static QFont dynamicTextsItemFont(qreal=-1.0)
QETApp::dynamicTextsFont the default font of dynamic element text item.
Definition: qetapp.cpp:1169
QETApp::initLanguage
void initLanguage()
QETApp::initLanguage Determine and apply the language to use for the application.
Definition: qetapp.cpp:1920
QETArguments::printVersionRequested
virtual bool printVersionRequested() const
Definition: qetarguments.cpp:376
QETApp::qetTranslator
QTranslator qetTranslator
Definition: qetapp.h:178
QETApp::restore_appli
QAction * restore_appli
Definition: qetapp.h:184
QETApp::initStyle
void initStyle()
QETApp::initStyle Setup the gui style.
Definition: qetapp.cpp:1928
QETApp::overrideLangDir
static void overrideLangDir(const QString &)
QETApp::overrideLangDir Redefines the path of the folder containing the language files.
Definition: qetapp.cpp:1034
QETApp::initSplashScreen
void initSplashScreen()
QETApp::initSplashScreen Initializes the splash screen if and only if the execution is interactive....
Definition: qetapp.cpp:1888
QETApp::collectionCache
static ElementsCollectionCache * collectionCache()
QETApp::collectionCache.
Definition: qetapp.cpp:358
QETApp::fetchWindowStats
void fetchWindowStats(const QList< QETDiagramEditor * > &, const QList< QETElementEditor * > &, const QList< QETTitleBlockTemplateEditor * > &)
QETApp::fetchWindowStats Updates the booleans concerning the state of the windows.
Definition: qetapp.cpp:2246
QETApp::initConfiguration
void initConfiguration()
QETApp::initConfiguration Reads and takes into account the configuration of the application....
Definition: qetapp.cpp:1950
QETApp::restore_elements
QAction * restore_elements
Definition: qetapp.h:188
QETApp::customTitleBlockTemplatesDir
static QString customTitleBlockTemplatesDir()
QETApp::customTitleBlockTemplatesDir.
Definition: qetapp.cpp:758
QETApp::registered_projects_
static QMap< uint, QETProject * > registered_projects_
Definition: qetapp.h:215
QETApp::symbolicPath
static QString symbolicPath(const QString &)
QETApp::symbolicPath Build the symbolic path (of the type custom: // tools_pervers / sado_maso / cont...
Definition: qetapp.cpp:874
QETApp::diagramTranslatedInfoKey
static QString diagramTranslatedInfoKey(const QString &key)
QETApp::diagramTranslatedInfoKey.
Definition: qetapp.cpp:502
QETApp::restoreEveryEditor
void restoreEveryEditor()
QETApp::restoreEveryEditor Restores all application windows in the systray.
Definition: qetapp.cpp:276
QETApp::reduce_diagrams
QAction * reduce_diagrams
Definition: qetapp.h:185
QETApp::elementEditors
static QList< QETElementEditor * > elementEditors()
QETApp::elementEditors.
Definition: qetapp.cpp:1223
QETArguments::titleBlockTemplateFiles
virtual QList< QString > titleBlockTemplateFiles() const
Definition: qetarguments.cpp:149
QET::Icons::Restore
QIcon Restore
Definition: qeticons.cpp:156
QETApp::every_diagram_visible
bool every_diagram_visible
Definition: qetapp.h:197
AboutQETDialog
The AboutQETDialog class.
Definition: aboutqetdialog.h:33
QETArguments::langDir
virtual QString langDir() const
Definition: qetarguments.cpp:352
PrintConfigPage
The PrintConfigPage class This configuration page enables users to set default printing options.
Definition: configpages.h:103
QETApp
The QETApp class This class represents the QElectroTech application.
Definition: qetapp.h:55
QETApp::realPath
static QString realPath(const QString &)
QETApp::realPath Allows you to know the absolute path of the * .elmt file corresponding to a symbolic...
Definition: qetapp.cpp:842
QETTitleBlockTemplateEditor
Definition: qettemplateeditor.h:36
QETApp::m_common_tbt_collection
static TitleBlockTemplatesFilesCollection * m_common_tbt_collection
Definition: qetapp.h:212
elementscollectioncache.h
QETApp::qtTranslator
QTranslator qtTranslator
Definition: qetapp.h:177
elementpicturefactory.h
QET::Custom
@ Custom
From user collection.
Definition: qet.h:154
QETApp::checkBackupFiles
void checkBackupFiles()
QETApp::checkBackupFiles Check for backup files. If backup was found, open a dialog and ask user what...
Definition: qetapp.cpp:2160
QETApp::restoreTitleBlockTemplateEditors
void restoreTitleBlockTemplateEditors()
QETApp::restoreTitleBlockTemplateEditors Restore all known template editors.
Definition: qetapp.cpp:332
QETApp::customElementsDir
static QString customElementsDir()
QETApp::customElementsDir.
Definition: qetapp.cpp:657
QETApp::newElementEditor
void newElementEditor()
QETApp::newElementEditor launches a new element editor.
Definition: qetapp.cpp:350
qettemplateeditor.h
QETApp::availableTitleBlockTemplatesCollections
static QList< TitleBlockTemplatesCollection * > availableTitleBlockTemplatesCollections()
QETApp::availableTitleBlockTemplatesCollections.
Definition: qetapp.cpp:560
QETArguments::langDirSpecified
virtual bool langDirSpecified() const
Definition: qetarguments.cpp:344
QETApp::m_qsti
QSystemTrayIcon * m_qsti
Definition: qetapp.h:179
QETApp::createTextOrientationSpinBoxWidget
static QTextOrientationSpinBoxWidget * createTextOrientationSpinBoxWidget()
QETApp::createTextOrientationSpinBoxWidget Instantiates a QTextOrientationSpinBoxWidget and configure...
Definition: qetapp.cpp:1272
QETApp::registerProject
static bool registerProject(QETProject *)
QETApp::registerProject.
Definition: qetapp.cpp:2368
projectview.h
RecentFiles
Definition: recentfiles.h:26
QETApp::commonTitleBlockTemplatesDir
static QString commonTitleBlockTemplatesDir()
QETApp::commonTitleBlockTemplatesDir.
Definition: qetapp.cpp:729
QETApp::diagramEditors
static QList< QETDiagramEditor * > diagramEditors()
QETApp::diagramEditors.
Definition: qetapp.cpp:1214
aboutqetdialog.h
QETApp::setMainWindowsVisible
void setMainWindowsVisible(bool)
Definition: qetapp.cpp:1375
QUOTE
#define QUOTE(x)
Definition: qetapp.cpp:39
QETApp::restore_diagrams
QAction * restore_diagrams
Definition: qetapp.h:186
QET::splitWithSpaces
QStringList splitWithSpaces(const QString &)
Definition: qet.cpp:469
ElementsCollectionCache
Definition: elementscollectioncache.h:31
QETApp::elementInfoKeys
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
Definition: qetapp.cpp:366
QETApp::checkRemainingWindows
void checkRemainingWindows()
QETApp::checkRemainingWindows Check if there are any windows (hidden or not) and exit if there are no...
Definition: qetapp.cpp:1489
QETApp::every_template_visible
bool every_template_visible
Definition: qetapp.h:201
QETApp::setMainWindowVisible
void setMainWindowVisible(QMainWindow *, bool)
QETApp::setMainWindowVisible Show or hide a window (schema editors / element editors)
Definition: qetapp.cpp:1409
QETApp::commonTitleBlockTemplatesCollection
static TitleBlockTemplatesFilesCollection * commonTitleBlockTemplatesCollection()
QETApp::commonTitleBlockTemplatesCollection.
Definition: qetapp.cpp:521
QETApp::configureQET
void configureQET()
QETApp::configureQET Allows the user to configure QET by launching an appropriate dialog.
Definition: qetapp.cpp:1744
QETApp::every_editor_reduced
bool every_editor_reduced
Definition: qetapp.h:195
configpages.h
QETArguments::printLicenseRequested
virtual bool printLicenseRequested() const
Definition: qetarguments.cpp:368
QETApp::openProjectFiles
void openProjectFiles(const QStringList &)
QETApp::openProjectFiles Opens a list of files. Files are opened in the first visible schematic edito...
Definition: qetapp.cpp:1540
qetmessagebox.h
QETApp::diagramEditorForFile
static QETDiagramEditor * diagramEditorForFile(const QString &)
QETApp::diagramEditorForFile.
Definition: qetapp.cpp:940
QETApp::reduce_elements
QAction * reduce_elements
Definition: qetapp.h:187
QET::Icons::Hide
QIcon Hide
Definition: qeticons.cpp:113
QETApp::unregisterProject
static bool unregisterProject(QETProject *)
QETApp::unregisterProject Cancel the recording of the project project.
Definition: qetapp.cpp:2395
QETApp::resetUserElementsDir
static void resetUserElementsDir()
QETApp::resetUserElementsDir Reset the path of the user common and custom elements dir....
Definition: qetapp.cpp:717
QET::Icons::Element
QIcon Element
Definition: qeticons.cpp:83
QETApp::m_splash_screen
QSplashScreen * m_splash_screen
Definition: qetapp.h:180
ConfigDialog::addPage
void addPage(ConfigPage *)
Definition: configdialog.cpp:132
QET::Icons::initIcons
void initIcons()
Definition: qeticons.cpp:372
QETApp::systray
void systray(QSystemTrayIcon::ActivationReason)
QETApp::systray Manages QSystemTrayIcon related events.
Definition: qetapp.cpp:229
QETApp::languagesPath
static QString languagesPath()
QETApp::languagesPath.
Definition: qetapp.cpp:1047
qetapp.h
ElementPictureFactory::dropInstance
static void dropInstance()
dropInstance Drop the instance of factory
Definition: elementpicturefactory.h:73
qetelementeditor.h
QETApp::addWindowsListToMenu
void addWindowsListToMenu(QMenu *, const QList< T * > &)
Definition: qetapp.cpp:2055
QET::TitleBlockTemplate
@ TitleBlockTemplate
Definition: qet.h:105
QETApp::detectWindows
QList< T * > detectWindows() const
Definition: qetapp.cpp:1360
QETApp::reduceEveryEditor
void reduceEveryEditor()
QETApp::reduceEveryEditor Minimizes all application windows in the systray.
Definition: qetapp.cpp:264
TitleBlockTemplate
The TitleBlockTemplate class This class represents an title block template for an electric diagram....
Definition: titleblocktemplate.h:36
TitleBlockTemplatesFilesCollection
Definition: templatescollection.h:124
QETArguments
Definition: qetarguments.h:26
QETApp::indiTextsItemFont
static QFont indiTextsItemFont(qreal=-1.0)
QETApp::indiTextsItemFont The default font to use for independent text item.
Definition: qetapp.cpp:1193
QETApp::elementTranslatedInfoKey
static QString elementTranslatedInfoKey(const QString &)
ElementsProperties::translatedInfo Return the translated information key given by info If info don't ...
Definition: qetapp.cpp:400
generalconfigurationpage.h
qtextorientationspinboxwidget.h
QETApp::elementsRecentFiles
static RecentFiles * elementsRecentFiles()
QETApp::elementsRecentFiles.
Definition: qetapp.cpp:1395
QETApp::conductorInfoKeys
static QStringList conductorInfoKeys()
QETApp::conductorInfoKeys.
Definition: qetapp.cpp:446
qeticons.h
QETApp::lang_dir
static QString lang_dir
lang_dir Directory containing localization files.
Definition: qetapp.h:153
QETAPP_CUSTOM_TBT_PROTOCOL
#define QETAPP_CUSTOM_TBT_PROTOCOL
Definition: qetapp.h:36
ElementsLocation::isNull
bool isNull() const
ElementsLocation::isNull.
Definition: elementslocation.cpp:387
ConfigDialog
Definition: configdialog.h:31
QETApp::reduce_templates
QAction * reduce_templates
Definition: qetapp.h:189
QETApp::m_user_custom_tbt_dir
static QString m_user_custom_tbt_dir
Definition: qetapp.h:222
QET::QetMessageBox::question
QMessageBox::StandardButton question(QWidget *, const QString &, const QString &, QMessageBox::StandardButtons=QMessageBox::Ok, QMessageBox::StandardButton=QMessageBox::NoButton)
Definition: qetmessagebox.cpp:53
QET::Icons::ProjectFile
QIcon ProjectFile
Definition: qeticons.cpp:147
QETApp::projectFromString
static QETProject * projectFromString(const QString &)
QETApp::projectFromString.
Definition: qetapp.cpp:2093
QET::displayedVersion
const QString displayedVersion
QElectroTech displayed version.
Definition: qet.h:34
QETArguments::projectFiles
virtual QList< QString > projectFiles() const
Definition: qetarguments.cpp:135
ExportConfigPage
The ExportConfigPage class This configuration page enables users to set default export options.
Definition: configpages.h:79
NewDiagramPage
The NewDiagramPage class This configuration page enables users to define the properties of new diagra...
Definition: configpages.h:39
QETApp::commonElementsDir
static QString commonElementsDir()
QETApp::commonElementsDir.
Definition: qetapp.cpp:598
QTextOrientationSpinBoxWidget
Definition: qtextorientationspinboxwidget.h:27
QETApp::m_projects_recent_files
static RecentFiles * m_projects_recent_files
Definition: qetapp.h:217
QETApp::non_interactive_execution_
bool non_interactive_execution_
non_interactive_execution_ Whether the application will end without any user interaction
Definition: qetapp.h:209
QETApp::conductorTranslatedInfoKey
static QString conductorTranslatedInfoKey(const QString &key)
QETApp::conductorTranslatedInfoKey.
Definition: qetapp.cpp:465
elementslocation.h
QET::license
QString license()
Definition: qet.cpp:373
QETApp::projectIdFromString
static int projectIdFromString(const QString &)
QETApp::projectIdFromString.
Definition: qetapp.cpp:2074
QETApp::every_diagram_reduced
bool every_diagram_reduced
Definition: qetapp.h:196
TitleBlockTemplateLocation
Definition: templatelocation.h:29
ElementsCollectionCache::setLocale
void setLocale(const QString &)
Definition: elementscollectioncache.cpp:119
QETApp::customTitleBlockTemplatesCollection
static TitleBlockTemplatesFilesCollection * customTitleBlockTemplatesCollection()
QETApp::customTitleBlockTemplatesCollection.
Definition: qetapp.cpp:541
recentfiles.h
QETApp::diagramInfoKeys
static QStringList diagramInfoKeys()
QETApp::diagramInfoKeys.
Definition: qetapp.cpp:480
templatescollection.h
QETProject::filePath
QString filePath()
Definition: qetproject.cpp:250
QET::Icons::de
QIcon de
Definition: qeticons.cpp:188
QETApp::floatingToolbarsAndDocksForMainWindow
QList< QWidget * > floatingToolbarsAndDocksForMainWindow(QMainWindow *) const
QETApp::floatingToolbarsAndDocksForMainWindow.
Definition: qetapp.cpp:1793
ElementFactory::dropInstance
static void dropInstance()
Definition: elementfactory.h:49
QETApp::setSplashScreenStep
void setSplashScreenStep(const QString &=QString())
QETApp::setSplashScreenStep Changes the text of the splash screen and takes events into account....
Definition: qetapp.cpp:1906
QETApp::handledFileExtensions
static QStringList handledFileExtensions()
QETApp::handledFileExtensions.
Definition: qetapp.cpp:899
QETApp::openElementFiles
void openElementFiles(const QStringList &)
QETApp::openElementFiles Open the elements files passed in parameter. If an element is already open,...
Definition: qetapp.cpp:1586
QETApp::projectId
static int projectId(const QETProject *)
QETApp::projectId.
Definition: qetapp.cpp:2433
QETApp::initial_palette_
QPalette initial_palette_
System color palette.
Definition: qetapp.h:210
QETApp::registeredProjects
static QMap< uint, QETProject * > registeredProjects()
QETApp::registeredProjects.
Definition: qetapp.cpp:2353
QETApp::customElementsDirN
static QString customElementsDirN()
QETApp::customElementsDirN like QString QETApp::customElementsDir but without "/" at the end.
Definition: qetapp.cpp:705
QETAPP_COMMON_TBT_PROTOCOL
#define QETAPP_COMMON_TBT_PROTOCOL
Definition: qetapp.h:35
QETApp::quitter_qet
QAction * quitter_qet
Definition: qetapp.h:182
QETApp::~QETApp
~QETApp() override
QETApp::~QETApp.
Definition: qetapp.cpp:128
QETArguments::printHelpRequested
virtual bool printHelpRequested() const
Definition: qetarguments.cpp:360
QET::Icons::QETLogo
QIcon QETLogo
Definition: qeticons.cpp:151
QETApp::reduceElementEditors
void reduceElementEditors()
QETApp::reduceElementEditors Minimize all element editors in systray.
Definition: qetapp.cpp:307
QETApp::openElementLocations
void openElementLocations(const QList< ElementsLocation > &)
QETApp::openElementLocations Open the elements whose location is passed in parameter....
Definition: qetapp.cpp:1637
qetproject.h
QETApp::printHelp
static void printHelp()
QETApp::printHelp Display help and usage on standard output.
Definition: qetapp.cpp:2306
QETApp::every_element_reduced
bool every_element_reduced
Definition: qetapp.h:198
QETApp::printVersion
static void printVersion()
QETApp::printVersion Print version to standard output.
Definition: qetapp.cpp:2335
QETApp::every_element_visible
bool every_element_visible
Definition: qetapp.h:199
QET::Icons::WindowNew
QIcon WindowNew
Definition: qeticons.cpp:175
ElementsLocation
The ElementsLocation class This class represents the location, the location of an element or of a cat...
Definition: elementslocation.h:46
QETApp::receiveMessage
void receiveMessage(int instanceId, QByteArray message)
QETApp::receiveMessage openFiles from message.
Definition: qetapp.cpp:1342
QETApp::instance
static QETApp * instance()
QETApp::instance.
Definition: qetapp.cpp:153
QETApp::openFiles
void openFiles(const QETArguments &)
QETApp::openFiles Open files passed as arguments.
Definition: qetapp.cpp:1519
QETApp::projectsRecentFiles
static RecentFiles * projectsRecentFiles()
QETApp::projectsRecentFiles.
Definition: qetapp.cpp:1386
QETApp::window_geometries
QHash< QMainWindow *, QByteArray > window_geometries
Definition: qetapp.h:193
QETApp::closeEveryEditor
bool closeEveryEditor()
QETApp::closeEveryEditor Close all editors.
Definition: qetapp.cpp:1087
QETApp::elementInfoToVar
static QString elementInfoToVar(const QString &info)
QETApp::elementInfoToVar.
Definition: qetapp.cpp:435
QETApp::openTitleBlockTemplate
void openTitleBlockTemplate(const TitleBlockTemplateLocation &, bool=false)
QETApp::openTitleBlockTemplate Launch a new title block template editor to edit the given template.
Definition: qetapp.cpp:1677
QETProject
Definition: qetproject.h:51
QETApp::commonElementsDirN
static QString commonElementsDirN()
QETApp::commonElementsDirN like QString QETApp::commonElementsDir but without "/" at the end.
Definition: qetapp.cpp:693
QETApp::reduceTitleBlockTemplateEditors
void reduceTitleBlockTemplateEditors()
QETApp::reduceTitleBlockTemplateEditors Reduce all known template editors.
Definition: qetapp.cpp:324
QETApp::m_qetapp
static QETApp * m_qetapp
Definition: qetapp.h:176
QETApp::aboutQET
void aboutQET()
QETApp::aboutQET Open the dialog about qet.
Definition: qetapp.cpp:1775
RecentFiles::save
void save()
Definition: recentfiles.cpp:93
QETApp::newDiagramEditor
void newDiagramEditor()
QETApp::newDiagramEditor launches a new schema editor.
Definition: qetapp.cpp:341
QETApp::diagramTextsItemFont
static QFont diagramTextsItemFont(qreal=-1.0)
QETApp::diagramTextsItemFont the font for to use in independent text item.
Definition: qetapp.cpp:1137
QETApp::switchLayout
void switchLayout(Qt::LayoutDirection)
Definition: qetapp.cpp:217
QETDiagramEditor
Definition: qetdiagrameditor.h:51
QETApp::collections_cache_
static ElementsCollectionCache * collections_cache_
Definition: qetapp.h:214
qetarguments.h
configdialog.h
QETApp::setLanguage
void setLanguage(const QString &)
QETApp::setLanguage Change the language used by the application.
Definition: qetapp.cpp:166
elementfactory.h
QETApp::project
static QETProject * project(const uint &)
QETApp::project.
Definition: qetapp.cpp:2416
QETApp::parseArguments
void parseArguments()
QETApp::parseArguments Parse the following arguments:
Definition: qetapp.cpp:1833
QETApp::handledFiles
static QStringList handledFiles(const QList< QUrl > &)
QETApp::handledFiles.
Definition: qetapp.cpp:914
QETApp::reduce_appli
QAction * reduce_appli
Definition: qetapp.h:183
QETApp::menu_systray
QMenu * menu_systray
Definition: qetapp.h:181
GeneralConfigurationPage
Definition: generalconfigurationpage.h:29
QETApp::QETApp
QETApp(const QETApp &)
QETApp::QETApp
QETApp()
QETApp::QETApp.
Definition: qetapp.cpp:73
QETApp::m_elements_recent_files
static RecentFiles * m_elements_recent_files
Definition: qetapp.h:218
QETApp::diagramTextsFont
static QFont diagramTextsFont(qreal=-1.0)
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9.
Definition: qetapp.cpp:1111
QETApp::restoreDiagramEditors
void restoreDiagramEditors()
QETApp::restoreDiagramEditors Restore all schema editors in the systray.
Definition: qetapp.cpp:297
QETApp::quitQET
void quitQET()
QETApp::quitQET Request the closing of all windows; if the user accepts them, the application quits.
Definition: qetapp.cpp:1475
qetdiagrameditor.h
TitleBlockTemplatesCollection
Definition: templatescollection.h:34
QETApp::defaultTitleBlockTemplate
static TitleBlockTemplate * defaultTitleBlockTemplate()
QETApp::defaultTitleBlockTemplate.
Definition: qetapp.cpp:1294
QETApp::default_titleblock_template_
static TitleBlockTemplate * default_titleblock_template_
Definition: qetapp.h:219
ElementsLocation::project
QETProject * project() const
ElementsLocation::project.
Definition: elementslocation.cpp:365
QETApp::next_project_id
static uint next_project_id
Definition: qetapp.h:216
QETApp::printLicense
static void printLicense()
QETApp::printLicense Display license on standard output.
Definition: qetapp.cpp:2344
templatelocation.h
QETApp::useSystemPalette
void useSystemPalette(bool)
QETApp::useSystemPalette Change the application palette.
Definition: qetapp.cpp:1451
QETApp::reduceDiagramEditors
void reduceDiagramEditors()
QETApp::reduceDiagramEditors Minimize all schema editors in the systray.
Definition: qetapp.cpp:288
TITLEBLOCKS_FILE_EXTENSION
#define TITLEBLOCKS_FILE_EXTENSION
Definition: templatescollection.h:20
QETApp::qet_arguments_
QETArguments qet_arguments_
Comand-line arguments parser.
Definition: qetapp.h:203
QETApp::buildSystemTrayMenu
void buildSystemTrayMenu()
QETApp::buildSystemTrayMenu builds the icon menu in the systray.
Definition: qetapp.cpp:2104
titleblocktemplate.h
QETApp::signal_map
QSignalMapper signal_map
Definition: qetapp.h:202
QET::Common
@ Common
From common collection.
Definition: qet.h:153
QETApp::new_diagram
QAction * new_diagram
Definition: qetapp.h:191
QETApp::window_states
QHash< QMainWindow *, QByteArray > window_states
Definition: qetapp.h:194
QETApp::new_element
QAction * new_element
Definition: qetapp.h:192
QETApp::every_template_reduced
bool every_template_reduced
Definition: qetapp.h:200
QETApp::invertMainWindowVisibility
void invertMainWindowVisibility(QWidget *)
QETApp::invertMainWindowVisibility Display a window (schema editors / element editors) if this is hid...
Definition: qetapp.cpp:1437
QETArguments::files
virtual QList< QString > files() const
Definition: qetarguments.cpp:128
QETDiagramEditor::openBackupFiles
void openBackupFiles(QList< KAutoSaveFile * > backup_files)
QETDiagramEditor::openBackupFiles.
Definition: qetdiagrameditor.cpp:1791
QET::Icons::tr
QIcon tr
Definition: qeticons.cpp:206
QETApp::langFromSetting
static QString langFromSetting()
QETApp::langFromSetting.
Definition: qetapp.cpp:205
QETApp::restoreElementEditors
void restoreElementEditors()
QETApp::restoreElementEditors Restore all element editors in the systray.
Definition: qetapp.cpp:316
QETArguments::elementFiles
virtual QList< QString > elementFiles() const
Definition: qetarguments.cpp:142
QET::Icons::Cancel
QIcon Cancel
Definition: qeticons.cpp:34
QETElementEditor
Definition: qetelementeditor.h:33
QETApp::m_custom_tbt_collection
static TitleBlockTemplatesFilesCollection * m_custom_tbt_collection
Definition: qetapp.h:213
QETApp::m_user_custom_elements_dir
static QString m_user_custom_elements_dir
Definition: qetapp.h:221
QETApp::restore_templates
QAction * restore_templates
Definition: qetapp.h:190
QETApp::m_user_common_elements_dir
static QString m_user_common_elements_dir
Definition: qetapp.h:220
QETApp::configDir
static QString configDir()
QETApp::configDir Return the QET configuration folder, i.e. the path to the folder in which QET will ...
Definition: qetapp.cpp:805
QET::Icons::ApplicationExit
QIcon ApplicationExit
Definition: qeticons.cpp:27
QETApp::titleBlockTemplatesCollection
static TitleBlockTemplatesCollection * titleBlockTemplatesCollection(const QString &)
QETApp::titleBlockTemplatesCollection.
Definition: qetapp.cpp:579