21 #include <QTranslator> 22 #include <QSystemTrayIcon> 35 #define QETAPP_COMMON_TBT_PROTOCOL "commontbt" 36 #define QETAPP_CUSTOM_TBT_PROTOCOL "customtbt" 104 static QString
realPath(
const QString &);
111 #ifdef QET_ALLOW_OVERRIDE_CED_OPTION 113 static void overrideCommonElementsDir(
const QString &);
115 static QString common_elements_dir;
118 #ifdef QET_ALLOW_OVERRIDE_CTBTD_OPTION 120 static void overrideCommonTitleBlockTemplatesDir(
const QString &);
122 static QString common_tbt_dir_;
125 #ifdef QET_ALLOW_OVERRIDE_CD_OPTION 127 static void overrideConfigDir(
const QString &);
129 static QString config_dir;
153 bool eventFiltrer(QObject *
object, QEvent *);
202 void systray(QSystemTrayIcon::ActivationReason);
244 const QList<QETDiagramEditor *> &,
245 const QList<QETElementEditor *> &,
246 const QList<QETTitleBlockTemplateEditor *> &
static TitleBlockTemplatesFilesCollection * commonTitleBlockTemplatesCollection()
static QTextOrientationSpinBoxWidget * createTextOrientationSpinBoxWidget()
static QString symbolicPath(const QString &)
void fetchWindowStats(const QList< QETDiagramEditor *> &, const QList< QETElementEditor *> &, const QList< QETTitleBlockTemplateEditor *> &)
Met a jour les booleens concernant l'etat des fenetres.
void reduceEveryEditor()
Reduit toutes les fenetres de l'application dans le systray.
static QString customTitleBlockTemplatesDir()
static QString commonTitleBlockTemplatesDir()
static bool unregisterProject(QETProject *)
static QStringList handledFiles(const QList< QUrl > &)
QPalette initial_palette_
System color palette.
void invertMainWindowVisibility(QWidget *)
static TitleBlockTemplate * defaultTitleBlockTemplate()
void openElementFiles(const QStringList &)
QETArguments qet_arguments_
Comand-line arguments parser.
void reduceDiagramEditors()
Reduit tous les editeurs de schemas dans le systray.
static RecentFiles * m_elements_recent_files
void restoreElementEditors()
Restaure tous les editeurs d'element dans le systray.
void newElementEditor()
lance un nouvel editeur d'element
static QMap< uint, QETProject * > registeredProjects()
static QString customElementsDir()
QETApp::customElementsDir.
static QStringList handledFileExtensions()
void addWindowsListToMenu(QMenu *, const QList< T *> &)
bool every_diagram_visible
void aboutQET()
QETApp::aboutQET Open the dialog about qet.
void systray(QSystemTrayIcon::ActivationReason)
static int projectIdFromString(const QString &)
void setMainWindowVisible(QMainWindow *, bool)
static QFont foliolistTextsFont(qreal=-1.0)
QETApp::foliolistTextsFont the font for to use in summary pages.
bool non_interactive_execution_
Whether the application will end without any user interaction.
QHash< QMainWindow *, QByteArray > window_geometries
void openFiles(const QETArguments &)
void initStyle()
QETApp::initStyle Setup the gui style.
QAction * reduce_templates
void reduceElementEditors()
Reduit tous les editeurs d'element dans le systray.
void buildSystemTrayMenu()
construit le menu de l'icone dans le systray
QAction * restore_elements
static ElementsCollectionCache * collectionCache()
~QETApp() override
QETApp::~QETApp.
void openTitleBlockTemplate(const TitleBlockTemplateLocation &, bool=false)
QAction * reduce_elements
static bool registerProject(QETProject *)
void setSplashScreenStep(const QString &=QString())
static int projectId(const QETProject *)
static QETProject * project(const uint &)
static QString langFromSetting()
QETApp::langFromSetting.
void receiveMessage(int instanceId, QByteArray message)
static QString languagesPath()
QAction * reduce_diagrams
static QStringList conductorInfoKeys()
QETApp::conductorInfoKeys.
static QString m_user_common_elements_dir
static QString diagramTranslatedInfoKey(const QString &key)
QETApp::diagramTranslatedInfoKey.
QAction * restore_diagrams
static QETProject * projectFromString(const QString &)
static TitleBlockTemplatesFilesCollection * customTitleBlockTemplatesCollection()
bool every_editor_reduced
QList< QWidget * > floatingToolbarsAndDocksForMainWindow(QMainWindow *) const
bool every_element_reduced
bool every_template_visible
bool every_diagram_reduced
static QFont indiTextsItemFont(qreal=-1.0)
QETApp::indiTextsItemFont The default font to use for independent text item.
static void overrideLangDir(const QString &)
void checkBackupFiles()
QETApp::checkBackupFiles Check for backup files. If backup was found, open a dialog and ask user what...
static RecentFiles * projectsRecentFiles()
static QList< QETTitleBlockTemplateEditor * > titleBlockTemplateEditors()
static RecentFiles * m_projects_recent_files
static QList< QETElementEditor * > elementEditors()
static QString m_user_custom_elements_dir
static QMap< uint, QETProject * > registered_projects_
static QString elementInfoToVar(const QString &info)
QETApp::elementInfoToVar.
QSplashScreen * m_splash_screen
static QStringList elementInfoKeys()
QETApp::elementInfoKeys.
static QFont dynamicTextsItemFont(qreal=-1.0)
QETApp::dynamicTextsFont the defaukt font of dynamic element text item.
static void printVersion()
bool every_template_reduced
static ElementsCollectionCache * collections_cache_
QAction * restore_templates
void switchLayout(Qt::LayoutDirection)
void restoreEveryEditor()
Restaure toutes les fenetres de l'application dans le systray.
QHash< QMainWindow *, QByteArray > window_states
static TitleBlockTemplatesFilesCollection * m_custom_tbt_collection
void setLanguage(const QString &)
QTranslator qetTranslator
static QString conductorTranslatedInfoKey(const QString &key)
QETApp::conductorTranslatedInfoKey.
static QFont diagramTextsItemFont(qreal=-1.0)
QETApp::diagramTextsItemFont the font for to use in independent text item.
void openProjectFiles(const QStringList &)
void useSystemPalette(bool)
void setMainWindowsVisible(bool)
static TitleBlockTemplate * default_titleblock_template_
void openTitleBlockTemplateFiles(const QStringList &)
static TitleBlockTemplatesCollection * titleBlockTemplatesCollection(const QString &)
void newDiagramEditor()
lance un nouvel editeur de schemas
bool every_element_visible
static QFont diagramTextsFont(qreal=-1.0)
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9...
void reduceTitleBlockTemplateEditors()
Reduce all known template editors.
static QETDiagramEditor * diagramEditorAncestorOf(const QWidget *child)
QETApp::diagramEditorAncestorOf.
static QString customElementsDirN()
QETApp::customElementsDirN like QString QETApp::customElementsDir but without "/" at the end...
static QList< TitleBlockTemplatesCollection * > availableTitleBlockTemplatesCollections()
static QString elementTranslatedInfoKey(const QString &)
ElementsProperties::translatedInfo Return the translated information key given by If don't match...
void restoreTitleBlockTemplateEditors()
Restore all known template editors.
static QList< QETDiagramEditor * > diagramEditors()
static QString commonElementsDir()
QETApp::commonElementsDir.
void openElementLocations(const QList< ElementsLocation > &)
static TitleBlockTemplatesFilesCollection * m_common_tbt_collection
static QString lang_dir
Directory containing localization files.
void checkRemainingWindows()
static QString commonElementsDirN()
QETApp::commonElementsDirN like QString QETApp::commonElementsDir but without "/" at the end...
static RecentFiles * elementsRecentFiles()
static QString m_user_custom_tbt_dir
static void resetUserElementsDir()
QETApp::resetUserElementsDir Reset the path of the user common and custom elements dir...
static uint next_project_id
static QETApp * instance()
static void printLicense()
QList< T * > detectWindows() const
static QETDiagramEditor * diagramEditorForFile(const QString &)
void restoreDiagramEditors()
Restaure tous les editeurs de schemas dans le systray.
static QString realPath(const QString &)
static QString configDir()
static QStringList diagramInfoKeys()
QETApp::diagramInfoKeys.