QElectroTech  0.70
Public Slots | Public Member Functions | Static Public Member Functions | Static Public Attributes | Private Member Functions | Static Private Member Functions | Private Attributes | Static Private Attributes | List of all members
QETApp Class Reference

#include <qetapp.h>

Public Slots

void systray (QSystemTrayIcon::ActivationReason)
 
void reduceEveryEditor ()
 Reduit toutes les fenetres de l'application dans le systray. More...
 
void restoreEveryEditor ()
 Restaure toutes les fenetres de l'application dans le systray. More...
 
void reduceDiagramEditors ()
 Reduit tous les editeurs de schemas dans le systray. More...
 
void restoreDiagramEditors ()
 Restaure tous les editeurs de schemas dans le systray. More...
 
void reduceElementEditors ()
 Reduit tous les editeurs d'element dans le systray. More...
 
void restoreElementEditors ()
 Restaure tous les editeurs d'element dans le systray. More...
 
void reduceTitleBlockTemplateEditors ()
 Reduce all known template editors. More...
 
void restoreTitleBlockTemplateEditors ()
 Restore all known template editors. More...
 
void newDiagramEditor ()
 lance un nouvel editeur de schemas More...
 
void newElementEditor ()
 lance un nouvel editeur d'element More...
 
bool closeEveryEditor ()
 
void setMainWindowVisible (QMainWindow *, bool)
 
void invertMainWindowVisibility (QWidget *)
 
void useSystemPalette (bool)
 
void quitQET ()
 
void checkRemainingWindows ()
 
void openFiles (const QETArguments &)
 
void openProjectFiles (const QStringList &)
 
void openElementFiles (const QStringList &)
 
void openElementLocations (const QList< ElementsLocation > &)
 
void openTitleBlockTemplate (const TitleBlockTemplateLocation &, bool=false)
 
void openTitleBlockTemplate (const QString &)
 
void openTitleBlockTemplateFiles (const QStringList &)
 
void configureQET ()
 
void aboutQET ()
 QETApp::aboutQET Open the dialog about qet. More...
 
void receiveMessage (int instanceId, QByteArray message)
 

Public Member Functions

 QETApp ()
 QETApp::QETApp. More...
 
 ~QETApp () override
 QETApp::~QETApp. More...
 
void setLanguage (const QString &)
 
void switchLayout (Qt::LayoutDirection)
 

Static Public Member Functions

static QETAppinstance ()
 
static QString langFromSetting ()
 QETApp::langFromSetting. More...
 
static void printHelp ()
 
static void printVersion ()
 
static void printLicense ()
 
static ElementsCollectionCachecollectionCache ()
 
static QStringList elementInfoKeys ()
 QETApp::elementInfoKeys. More...
 
static QString elementTranslatedInfoKey (const QString &)
 ElementsProperties::translatedInfo Return the translated information key given by If don't match, return an empty string. More...
 
static QString elementInfoToVar (const QString &info)
 QETApp::elementInfoToVar. More...
 
static QStringList conductorInfoKeys ()
 QETApp::conductorInfoKeys. More...
 
static QString conductorTranslatedInfoKey (const QString &key)
 QETApp::conductorTranslatedInfoKey. More...
 
static QStringList diagramInfoKeys ()
 QETApp::diagramInfoKeys. More...
 
static QString diagramTranslatedInfoKey (const QString &key)
 QETApp::diagramTranslatedInfoKey. More...
 
static TitleBlockTemplatesFilesCollectioncommonTitleBlockTemplatesCollection ()
 
static TitleBlockTemplatesFilesCollectioncustomTitleBlockTemplatesCollection ()
 
static QList< TitleBlockTemplatesCollection * > availableTitleBlockTemplatesCollections ()
 
static TitleBlockTemplatesCollectiontitleBlockTemplatesCollection (const QString &)
 
static QString commonElementsDir ()
 QETApp::commonElementsDir. More...
 
static QString customElementsDir ()
 QETApp::customElementsDir. More...
 
static QString commonElementsDirN ()
 QETApp::commonElementsDirN like QString QETApp::commonElementsDir but without "/" at the end. More...
 
static QString customElementsDirN ()
 QETApp::customElementsDirN like QString QETApp::customElementsDir but without "/" at the end. More...
 
static void resetUserElementsDir ()
 QETApp::resetUserElementsDir Reset the path of the user common and custom elements dir. Use this function when the user path (common and/or custom) change. More...
 
static QString commonTitleBlockTemplatesDir ()
 
static QString customTitleBlockTemplatesDir ()
 
static bool registerProject (QETProject *)
 
static bool unregisterProject (QETProject *)
 
static QMap< uint, QETProject * > registeredProjects ()
 
static QETProjectproject (const uint &)
 
static int projectId (const QETProject *)
 
static QString configDir ()
 
static QString languagesPath ()
 
static QString realPath (const QString &)
 
static QString symbolicPath (const QString &)
 
static QStringList handledFileExtensions ()
 
static QStringList handledFiles (const QList< QUrl > &)
 
static RecentFilesprojectsRecentFiles ()
 
static RecentFileselementsRecentFiles ()
 
static void overrideLangDir (const QString &)
 
static QFont diagramTextsFont (qreal=-1.0)
 QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9. More...
 
static QFont diagramTextsItemFont (qreal=-1.0)
 QETApp::diagramTextsItemFont the font for to use in independent text item. More...
 
static QFont dynamicTextsItemFont (qreal=-1.0)
 QETApp::dynamicTextsFont the defaukt font of dynamic element text item. More...
 
static QFont foliolistTextsFont (qreal=-1.0)
 QETApp::foliolistTextsFont the font for to use in summary pages. More...
 
static QFont indiTextsItemFont (qreal=-1.0)
 QETApp::indiTextsItemFont The default font to use for independent text item. More...
 
static QETDiagramEditordiagramEditorForFile (const QString &)
 
static QETDiagramEditordiagramEditorAncestorOf (const QWidget *child)
 QETApp::diagramEditorAncestorOf. More...
 
static QList< QETDiagramEditor * > diagramEditors ()
 
static QList< QETElementEditor * > elementEditors ()
 
static QList< QETElementEditor * > elementEditors (QETProject *)
 
static QList< QETTitleBlockTemplateEditor * > titleBlockTemplateEditors ()
 
static QList< QETTitleBlockTemplateEditor * > titleBlockTemplateEditors (QETProject *)
 
static QTextOrientationSpinBoxWidgetcreateTextOrientationSpinBoxWidget ()
 
static TitleBlockTemplatedefaultTitleBlockTemplate ()
 

Static Public Attributes

static QString lang_dir = QString()
 Directory containing localization files. More...
 

Private Member Functions

 QETApp (const QETApp &)
 
template<class T >
QList< T * > detectWindows () const
 
template<class T >
void setMainWindowsVisible (bool)
 
QList< QWidget * > floatingToolbarsAndDocksForMainWindow (QMainWindow *) const
 
void parseArguments ()
 
void initSplashScreen ()
 
void setSplashScreenStep (const QString &=QString())
 
void initLanguage ()
 
void initStyle ()
 QETApp::initStyle Setup the gui style. More...
 
void initConfiguration ()
 
void initSystemTray ()
 
void buildSystemTrayMenu ()
 construit le menu de l'icone dans le systray More...
 
void checkBackupFiles ()
 QETApp::checkBackupFiles Check for backup files. If backup was found, open a dialog and ask user what to do. More...
 
void fetchWindowStats (const QList< QETDiagramEditor *> &, const QList< QETElementEditor *> &, const QList< QETTitleBlockTemplateEditor *> &)
 Met a jour les booleens concernant l'etat des fenetres. More...
 
template<class T >
void addWindowsListToMenu (QMenu *, const QList< T *> &)
 

Static Private Member Functions

static int projectIdFromString (const QString &)
 
static QETProjectprojectFromString (const QString &)
 

Private Attributes

QTranslator qtTranslator
 
QTranslator qetTranslator
 
QSystemTrayIcon * m_qsti
 
QSplashScreen * m_splash_screen
 
QMenu * menu_systray
 
QAction * quitter_qet
 
QAction * reduce_appli
 
QAction * restore_appli
 
QAction * reduce_diagrams
 
QAction * restore_diagrams
 
QAction * reduce_elements
 
QAction * restore_elements
 
QAction * reduce_templates
 
QAction * restore_templates
 
QAction * new_diagram
 
QAction * new_element
 
QHash< QMainWindow *, QByteArray > window_geometries
 
QHash< QMainWindow *, QByteArray > window_states
 
bool every_editor_reduced
 
bool every_diagram_reduced
 
bool every_diagram_visible
 
bool every_element_reduced
 
bool every_element_visible
 
bool every_template_reduced
 
bool every_template_visible
 
QSignalMapper signal_map
 
QETArguments qet_arguments_
 Comand-line arguments parser. More...
 
bool non_interactive_execution_
 Whether the application will end without any user interaction. More...
 
QPalette initial_palette_
 System color palette. More...
 

Static Private Attributes

static QETAppm_qetapp = nullptr
 
static TitleBlockTemplatesFilesCollectionm_common_tbt_collection
 
static TitleBlockTemplatesFilesCollectionm_custom_tbt_collection
 
static ElementsCollectionCachecollections_cache_ = nullptr
 
static QMap< uint, QETProject * > registered_projects_ = QMap<uint, QETProject *>()
 
static uint next_project_id = 0
 
static RecentFilesm_projects_recent_files = nullptr
 
static RecentFilesm_elements_recent_files = nullptr
 
static TitleBlockTemplatedefault_titleblock_template_ = nullptr
 
static QString m_user_common_elements_dir = QString()
 
static QString m_user_custom_elements_dir = QString()
 
static QString m_user_custom_tbt_dir = QString()
 

Detailed Description

This class represents the QElectroTech application.

Definition at line 53 of file qetapp.h.

Constructor & Destructor Documentation

◆ QETApp() [1/2]

QETApp::QETApp ( )

◆ ~QETApp()

QETApp::~QETApp ( )
override

◆ QETApp() [2/2]

QETApp::QETApp ( const QETApp )
private

Member Function Documentation

◆ aboutQET

void QETApp::aboutQET ( )
slot

QETApp::aboutQET Open the dialog about qet.

Definition at line 1500 of file qetapp.cpp.

◆ addWindowsListToMenu()

template<class T >
void QETApp::addWindowsListToMenu ( QMenu *  menu,
const QList< T *> &  windows 
)
private

Add a list of windows to menu. This template function assumes it will be given a QList of pointers to objects inheriting the QMainWindow class.

Parameters
Tthe class inheriting QMainWindow
menuthe menu windows will be added to
windowsA list of top-level windows.

Definition at line 1702 of file qetapp.cpp.

References signal_map.

◆ availableTitleBlockTemplatesCollections()

QList< TitleBlockTemplatesCollection * > QETApp::availableTitleBlockTemplatesCollections ( )
static
Returns
the list of all available title block tempaltes collections, beginning with the common and custom ones, plus the projects-embedded ones.

Definition at line 476 of file qetapp.cpp.

References commonTitleBlockTemplatesCollection(), customTitleBlockTemplatesCollection(), and registered_projects_.

Referenced by TitleBlockTemplateLocationChooser::updateCollections().

◆ buildSystemTrayMenu()

void QETApp::buildSystemTrayMenu ( )
private

◆ checkBackupFiles()

void QETApp::checkBackupFiles ( )
private

QETApp::checkBackupFiles Check for backup files. If backup was found, open a dialog and ask user what to do.

Definition at line 1793 of file qetapp.cpp.

References QET::Icons::Cancel, diagramEditors(), QETProject::filePath(), QETDiagramEditor::openBackupFiles(), project(), QET::QetMessageBox::question(), registeredProjects(), and QET::Icons::tr.

Referenced by QETApp().

◆ checkRemainingWindows

void QETApp::checkRemainingWindows ( )
slot

Verifie s'il reste des fenetres (cachees ou non) et quitte s'il n'en reste plus.

Definition at line 1264 of file qetapp.cpp.

References diagramEditors(), and elementEditors().

Referenced by QETApp().

◆ closeEveryEditor

bool QETApp::closeEveryEditor ( )
slot

Ferme tous les editeurs

Returns
true si l'utilisateur a accepte toutes les fermetures, false sinon

Definition at line 887 of file qetapp.cpp.

References diagramEditors(), elementEditors(), project(), registered_projects_, and restoreEveryEditor().

Referenced by quitQET().

◆ collectionCache()

ElementsCollectionCache * QETApp::collectionCache ( )
static
Returns
the collection cache provided by the application itself.

Definition at line 281 of file qetapp.cpp.

References collections_cache_.

Referenced by ElementsLocation::icon().

◆ commonElementsDir()

QString QETApp::commonElementsDir ( )
static

QETApp::commonElementsDir.

Returns
the dir path of the common elements collection.

Definition at line 511 of file qetapp.cpp.

References m_user_common_elements_dir, and QUOTE.

Referenced by commonElementsDirN(), autonum::elementPrefixForLocation(), realPath(), and symbolicPath().

◆ commonElementsDirN()

QString QETApp::commonElementsDirN ( )
static

◆ commonTitleBlockTemplatesCollection()

TitleBlockTemplatesFilesCollection * QETApp::commonTitleBlockTemplatesCollection ( )
static
Returns
the common title block templates collection, i.e. the one provided by QElecrotTech

Definition at line 448 of file qetapp.cpp.

References QET::Common, commonTitleBlockTemplatesDir(), m_common_tbt_collection, QETAPP_COMMON_TBT_PROTOCOL, and QET::Icons::tr.

Referenced by availableTitleBlockTemplatesCollections(), NewDiagramPage::NewDiagramPage(), ElementsPanel::reload(), and QETProject::setDefaultTitleBlockProperties().

◆ commonTitleBlockTemplatesDir()

QString QETApp::commonTitleBlockTemplatesDir ( )
static
Returns
the path of the directory containing the common title block templates collection.

Definition at line 621 of file qetapp.cpp.

References QUOTE.

Referenced by commonTitleBlockTemplatesCollection(), and realPath().

◆ conductorInfoKeys()

QStringList QETApp::conductorInfoKeys ( )
static

QETApp::conductorInfoKeys.

Returns
the conductor information keys

Definition at line 382 of file qetapp.cpp.

Referenced by replaceAdvancedDialog::fillWhatComboBox().

◆ conductorTranslatedInfoKey()

QString QETApp::conductorTranslatedInfoKey ( const QString &  key)
static

QETApp::conductorTranslatedInfoKey.

Parameters
key
Returns
the translated information key given by If don't match, return an empty string

Definition at line 399 of file qetapp.cpp.

References QET::Icons::tr.

Referenced by replaceAdvancedDialog::fillWhatComboBox().

◆ configDir()

QString QETApp::configDir ( )
static

Renvoie le dossier de configuration de QET, c-a-d le chemin du dossier dans lequel QET lira les informations de configuration et de personnalisation propres a l'utilisateur courant. Ce dossier est generalement C:\Documents And Settings\utilisateur\Application Data\qet sous Windows et ~/.qet sous les systemes type UNIX.

Returns
Le chemin du dossier de configuration de QElectroTech

Definition at line 676 of file qetapp.cpp.

Referenced by ImportElementTextPattern::apply(), customElementsDir(), customTitleBlockTemplatesDir(), ExportElementTextPattern::ExportElementTextPattern(), ImportElementTextPattern::ImportElementTextPattern(), initConfiguration(), QETApp(), and useSystemPalette().

◆ configureQET

void QETApp::configureQET ( )
slot

Permet a l'utilisateur de configurer QET en lancant un dialogue approprie.

See also
ConfigDialog

Definition at line 1472 of file qetapp.cpp.

References ConfigDialog::addPage(), and QET::Icons::tr.

Referenced by QETMainWindow::initCommonActions().

◆ createTextOrientationSpinBoxWidget()

QTextOrientationSpinBoxWidget * QETApp::createTextOrientationSpinBoxWidget ( )
static

Instancie un QTextOrientationSpinBoxWidget et configure : sa police de caracteres ses chaines de caracteres A noter que la suppression du widget ainsi alloue est a la charge de l'appelant.

Returns
un QTextOrientationSpinBoxWidget adapte pour une utilisation "directe" dans QET.
See also
QTextOrientationSpinBoxWidget

Definition at line 1072 of file qetapp.cpp.

References diagramTextsFont(), and QET::Icons::tr.

Referenced by ConductorPropertiesWidget::initWidget(), and RotateTextsCommand::openDialog().

◆ customElementsDir()

QString QETApp::customElementsDir ( )
static

◆ customElementsDirN()

QString QETApp::customElementsDirN ( )
static

◆ customTitleBlockTemplatesCollection()

TitleBlockTemplatesFilesCollection * QETApp::customTitleBlockTemplatesCollection ( )
static

◆ customTitleBlockTemplatesDir()

QString QETApp::customTitleBlockTemplatesDir ( )
static
Returns
the path of the directory containing the custom title block templates collection.

Definition at line 643 of file qetapp.cpp.

References configDir(), and m_user_custom_tbt_dir.

Referenced by customTitleBlockTemplatesCollection(), initConfiguration(), QETTitleBlockTemplateEditor::openFromFile(), realPath(), and QETTitleBlockTemplateEditor::saveAsFile().

◆ defaultTitleBlockTemplate()

TitleBlockTemplate * QETApp::defaultTitleBlockTemplate ( )
static
Returns
the default titleblock template for diagrams

Definition at line 1088 of file qetapp.cpp.

References default_titleblock_template_, instance(), and QET::TitleBlockTemplate.

Referenced by BorderTitleBlock::BorderTitleBlock(), QETTitleBlockTemplateEditor::edit(), and BorderTitleBlock::titleBlockTemplateRemoved().

◆ detectWindows()

template<class T >
QList< T * > QETApp::detectWindows ( ) const
private
Parameters
Ta class inheriting QMainWindow
Returns
the list of windows of type T

Definition at line 1142 of file qetapp.cpp.

◆ diagramEditorAncestorOf()

QETDiagramEditor * QETApp::diagramEditorAncestorOf ( const QWidget *  child)
static

QETApp::diagramEditorAncestorOf.

Parameters
child
Returns
the parent QETDiagramEditor (or grandparent and so on to any level) of the given child. If not return nullptr;

Definition at line 796 of file qetapp.cpp.

References diagramEditors().

Referenced by ElementsCollectionWidget::leaveEvent(), and ElementsCollectionWidget::setUpConnection().

◆ diagramEditorForFile()

QETDiagramEditor * QETApp::diagramEditorForFile ( const QString &  filepath)
static
Parameters
filepathUn chemin de fichier Note : si filepath est une chaine vide, cette methode retourne 0.
Returns
le QETDiagramEditor editant le fichier filepath, ou 0 si ce fichier n'est pas edite par l'application.

Definition at line 777 of file qetapp.cpp.

References diagramEditors(), and instance().

Referenced by QETDiagramEditor::openAndAddProject().

◆ diagramEditors()

QList< QETDiagramEditor * > QETApp::diagramEditors ( )
static

◆ diagramInfoKeys()

QStringList QETApp::diagramInfoKeys ( )
static

QETApp::diagramInfoKeys.

Returns
the diagram default information keys

Definition at line 412 of file qetapp.cpp.

Referenced by replaceAdvancedDialog::fillWhatComboBox().

◆ diagramTextsFont()

QFont QETApp::diagramTextsFont ( qreal  size = -1.0)
static

◆ diagramTextsItemFont()

QFont QETApp::diagramTextsItemFont ( qreal  size = -1.0)
static

QETApp::diagramTextsItemFont the font for to use in independent text item.

Parameters
sizeof font
Returns

Definition at line 934 of file qetapp.cpp.

Referenced by DiagramTextItem::build(), dynamicTextsItemFont(), and indiTextsItemFont().

◆ diagramTranslatedInfoKey()

QString QETApp::diagramTranslatedInfoKey ( const QString &  key)
static

QETApp::diagramTranslatedInfoKey.

Parameters
key
Returns
the translated information key given by If don't match, return an empty string

Definition at line 432 of file qetapp.cpp.

References QET::Icons::tr.

Referenced by replaceAdvancedDialog::fillWhatComboBox().

◆ dynamicTextsItemFont()

QFont QETApp::dynamicTextsItemFont ( qreal  size = -1.0)
static

QETApp::dynamicTextsFont the defaukt font of dynamic element text item.

Parameters
size
Returns

Definition at line 962 of file qetapp.cpp.

References diagramTextsItemFont().

Referenced by DynamicElementTextItem::DynamicElementTextItem(), PartDynamicTextField::fromXml(), DynamicElementTextItem::paint(), and PartDynamicTextField::PartDynamicTextField().

◆ elementEditors() [1/2]

QList< QETElementEditor * > QETApp::elementEditors ( )
static

◆ elementEditors() [2/2]

QList< QETElementEditor * > QETApp::elementEditors ( QETProject project)
static
Parameters
projectun projet
Returns
les editeurs d'elements editant un element appartenant au projet project

Definition at line 1104 of file qetapp.cpp.

References elementEditors(), ElementsLocation::isNull(), ElementsLocation::project(), and project().

◆ elementInfoKeys()

QStringList QETApp::elementInfoKeys ( )
static

◆ elementInfoToVar()

QString QETApp::elementInfoToVar ( const QString &  info)
static

QETApp::elementInfoToVar.

Parameters
info
Returns
var in form %{my-var} corresponding to the info, if there is not available var for the given info the returned var is %{void}

Definition at line 355 of file qetapp.cpp.

Referenced by CompositeTextEditDialog::setUpComboBox().

◆ elementsRecentFiles()

RecentFiles * QETApp::elementsRecentFiles ( )
static
Returns
La liste des fichiers recents pour les elements

Definition at line 1173 of file qetapp.cpp.

References m_elements_recent_files.

Referenced by QETElementEditor::fromFile(), QETElementEditor::setupMenus(), and QETElementEditor::slot_saveAsFile().

◆ elementTranslatedInfoKey()

QString QETApp::elementTranslatedInfoKey ( const QString &  info)
static

◆ fetchWindowStats()

void QETApp::fetchWindowStats ( const QList< QETDiagramEditor *> &  diagrams,
const QList< QETElementEditor *> &  elements,
const QList< QETTitleBlockTemplateEditor *> &  tbtemplates 
)
private

Met a jour les booleens concernant l'etat des fenetres.

Definition at line 1860 of file qetapp.cpp.

References every_diagram_reduced, every_diagram_visible, every_editor_reduced, every_element_reduced, every_element_visible, every_template_reduced, and every_template_visible.

Referenced by buildSystemTrayMenu(), and systray().

◆ floatingToolbarsAndDocksForMainWindow()

QList< QWidget * > QETApp::floatingToolbarsAndDocksForMainWindow ( QMainWindow *  window) const
private
Parameters
windowfenetre dont il faut trouver les barres d'outils et dock flottants
Returns
les barres d'outils et dock flottants de la fenetre

Definition at line 1514 of file qetapp.cpp.

Referenced by setMainWindowVisible().

◆ foliolistTextsFont()

QFont QETApp::foliolistTextsFont ( qreal  size = -1.0)
static

QETApp::foliolistTextsFont the font for to use in summary pages.

Parameters
size
Returns

Definition at line 982 of file qetapp.cpp.

Referenced by DiagramFolioList::fillRow().

◆ handledFileExtensions()

QStringList QETApp::handledFileExtensions ( )
static
Returns
the list of file extensions QElectroTech is able to open and supposed to handle. Note they are provided with no leading point.

Definition at line 743 of file qetapp.cpp.

References TITLEBLOCKS_FILE_EXTENSION.

Referenced by handledFiles().

◆ handledFiles()

QStringList QETApp::handledFiles ( const QList< QUrl > &  urls)
static
Parameters
anURLs list
Returns
the list of filepaths QElectroTech is able to open.

Definition at line 757 of file qetapp.cpp.

References handledFileExtensions().

Referenced by QETMainWindow::dragEnterEvent(), and QETMainWindow::dropEvent().

◆ indiTextsItemFont()

QFont QETApp::indiTextsItemFont ( qreal  size = -1.0)
static

QETApp::indiTextsItemFont The default font to use for independent text item.

Parameters
size
Returns

Definition at line 1007 of file qetapp.cpp.

References diagramTextsItemFont().

Referenced by IndependentTextItem::IndependentTextItem().

◆ initConfiguration()

void QETApp::initConfiguration ( )
private

Lit et prend en compte la configuration de l'application. Cette methode creera, si necessaire : le dossier de configuration le dossier de la collection perso the directory for custom title blocks

Definition at line 1631 of file qetapp.cpp.

References configDir(), customElementsDir(), customTitleBlockTemplatesDir(), QET::Icons::Element, m_elements_recent_files, m_projects_recent_files, and QET::Icons::ProjectFile.

Referenced by QETApp().

◆ initLanguage()

void QETApp::initLanguage ( )
private

Determine et applique le langage a utiliser pour l'application

Definition at line 1608 of file qetapp.cpp.

References langFromSetting(), and setLanguage().

Referenced by QETApp().

◆ initSplashScreen()

void QETApp::initSplashScreen ( )
private

Initialise le splash screen si et seulement si l'execution est interactive. Autrement, l'attribut splash_screen_ vaut 0.

Definition at line 1585 of file qetapp.cpp.

References m_splash_screen, non_interactive_execution_, setSplashScreenStep(), and QET::Icons::tr.

Referenced by QETApp().

◆ initStyle()

void QETApp::initStyle ( )
private

QETApp::initStyle Setup the gui style.

Definition at line 1616 of file qetapp.cpp.

References initial_palette_, and useSystemPalette().

Referenced by QETApp().

◆ initSystemTray()

void QETApp::initSystemTray ( )
private

◆ instance()

QETApp * QETApp::instance ( )
static

◆ invertMainWindowVisibility

void QETApp::invertMainWindowVisibility ( QWidget *  window)
slot

Affiche une fenetre (editeurs de schemas / editeurs d'elements) si celle-ci est cachee ou la cache si elle est affichee.

Parameters
windowfenetre a afficher / cacher

Definition at line 1206 of file qetapp.cpp.

References setMainWindowVisible().

Referenced by QETApp().

◆ langFromSetting()

QString QETApp::langFromSetting ( )
static

QETApp::langFromSetting.

Returns
the langage found in setting file if nothing was found return the system local.

Definition at line 184 of file qetapp.cpp.

Referenced by initLanguage(), NamesList::name(), and QETApp().

◆ languagesPath()

QString QETApp::languagesPath ( )
static
Returns
Le chemin du dossier contenant les fichiers de langue

Definition at line 864 of file qetapp.cpp.

References lang_dir, and QUOTE.

Referenced by setLanguage().

◆ newDiagramEditor

void QETApp::newDiagramEditor ( )
slot

lance un nouvel editeur de schemas

Definition at line 269 of file qetapp.cpp.

Referenced by initSystemTray().

◆ newElementEditor

void QETApp::newElementEditor ( )
slot

lance un nouvel editeur d'element

Definition at line 274 of file qetapp.cpp.

Referenced by initSystemTray().

◆ openElementFiles

void QETApp::openElementFiles ( const QStringList &  files_list)
slot

Ouvre les fichiers elements passes en parametre. Si un element est deja ouvert, la fenetre qui l'edite est activee.

Parameters
files_listFichiers a ouvrir

Definition at line 1336 of file qetapp.cpp.

References elementEditors().

Referenced by openFiles().

◆ openElementLocations

void QETApp::openElementLocations ( const QList< ElementsLocation > &  locations_list)
slot

Ouvre les elements dont l'emplacement est passe en parametre. Si un element est deja ouvert, la fentre qui l'edite est activee.

Parameters
locations_listEmplacements a ouvrir

Definition at line 1377 of file qetapp.cpp.

References elementEditors().

◆ openFiles

void QETApp::openFiles ( const QETArguments args)
slot

Ouvre les fichiers passes en arguments

Parameters
argsObjet contenant des arguments ; les fichiers
See also
openProjectFiles openElementFiles

Definition at line 1285 of file qetapp.cpp.

References QETArguments::elementFiles(), openElementFiles(), openProjectFiles(), openTitleBlockTemplateFiles(), QETArguments::projectFiles(), and QETArguments::titleBlockTemplateFiles().

Referenced by QETApp(), and receiveMessage().

◆ openProjectFiles

void QETApp::openProjectFiles ( const QStringList &  files_list)
slot

Ouvre une liste de fichiers. Les fichiers sont ouverts dans le premier editeur de schemas visible venu. Sinon, le premier editeur de schemas existant venu devient visible et est utilise. S'il n'y a aucun editeur de schemas ouvert, un nouveau est cree et utilise.

Parameters
files_listFichiers a ouvrir

Definition at line 1299 of file qetapp.cpp.

References QET::Icons::de, and diagramEditors().

Referenced by openFiles().

◆ openTitleBlockTemplate [1/2]

void QETApp::openTitleBlockTemplate ( const TitleBlockTemplateLocation location,
bool  duplicate = false 
)
slot

Launch a new title block template editor to edit the given template

Parameters
locationlocation of the title block template to be edited
duplicateif true, the template is opened for duplication, which means the user will be prompter for a new template name.
See also
QETTitleBlockTemplateEditor::setOpenForDuplication()

Definition at line 1412 of file qetapp.cpp.

Referenced by TitleBlockPropertiesWidget::duplicateCurrentTitleBlockTemplate(), TitleBlockPropertiesWidget::editCurrentTitleBlockTemplate(), and openTitleBlockTemplateFiles().

◆ openTitleBlockTemplate [2/2]

void QETApp::openTitleBlockTemplate ( const QString &  filepath)
slot

Launch a new title block template editor to edit the given template

Parameters
filepathPath of the .titleblock file to be opened

Definition at line 1423 of file qetapp.cpp.

◆ openTitleBlockTemplateFiles

void QETApp::openTitleBlockTemplateFiles ( const QStringList &  files_list)
slot

Open provided title block template files. If a title block template is already opened, the adequate window is activated.

Parameters
files_listFiles to be opened

Definition at line 1434 of file qetapp.cpp.

References openTitleBlockTemplate(), and titleBlockTemplateEditors().

Referenced by openFiles().

◆ overrideLangDir()

void QETApp::overrideLangDir ( const QString &  new_ld)
static

Redefinit le chemin du dossier contenant les fichiers de langue

Parameters
new_ldNouveau chemin du dossier contenant les fichiers de langue

Definition at line 853 of file qetapp.cpp.

References lang_dir.

Referenced by parseArguments().

◆ parseArguments()

void QETApp::parseArguments ( )
private

Parse les arguments suivants : –common-elements-dir= –config-dir –help –version -v –license Les autres arguments sont normalement des chemins de fichiers. S'ils existent, ils sont juste memorises dans l'attribut arguments_files_. Sinon, ils sont memorises dans l'attribut arguments_options_.

Definition at line 1537 of file qetapp.cpp.

References QETArguments::langDir(), QETArguments::langDirSpecified(), non_interactive_execution_, overrideLangDir(), printHelp(), QETArguments::printHelpRequested(), printLicense(), QETArguments::printLicenseRequested(), printVersion(), QETArguments::printVersionRequested(), and qet_arguments_.

Referenced by QETApp().

◆ printHelp()

void QETApp::printHelp ( )
static

Affiche l'aide et l'usage sur la sortie standard

Definition at line 1910 of file qetapp.cpp.

References QET::Icons::tr.

Referenced by parseArguments().

◆ printLicense()

void QETApp::printLicense ( )
static

Affiche la licence sur la sortie standard

Definition at line 1942 of file qetapp.cpp.

References QET::license().

Referenced by parseArguments().

◆ printVersion()

void QETApp::printVersion ( )
static

Affiche la version sur la sortie standard

Definition at line 1935 of file qetapp.cpp.

References QET::displayedVersion.

Referenced by parseArguments().

◆ project()

QETProject * QETApp::project ( const uint &  id)
static
Parameters
idId du projet voulu
Returns
le projet correspond a l'id passe en parametre

Definition at line 1990 of file qetapp.cpp.

References registered_projects_.

Referenced by checkBackupFiles(), closeEveryEditor(), elementEditors(), Diagram::fromXml(), projectFromString(), projectId(), registerProject(), ElementsLocation::setPath(), titleBlockTemplateEditors(), titleBlockTemplatesCollection(), and unregisterProject().

◆ projectFromString()

QETProject * QETApp::projectFromString ( const QString &  url)
staticprivate
Parameters
urlThe location of a collection item (title block template, element, category, ...).
Returns
the project mentionned in the URL, or 0 if none could be found.

Definition at line 1737 of file qetapp.cpp.

References project(), and projectIdFromString().

Referenced by titleBlockTemplatesCollection().

◆ projectId()

int QETApp::projectId ( const QETProject project)
static
Parameters
projectProjet dont on souhaite recuperer l'id
Returns
l'id du projet en parametre si celui-ci est enregistre, -1 sinon

Definition at line 2002 of file qetapp.cpp.

References project(), and registered_projects_.

Referenced by ElementsLocation::projectCollectionPath(), ElementsLocation::projectId(), TitleBlockTemplatesProjectCollection::protocol(), registerProject(), TitleBlockTemplatesProjectCollection::title(), ElementsLocation::toString(), Diagram::toXml(), and unregisterProject().

◆ projectIdFromString()

int QETApp::projectIdFromString ( const QString &  url)
staticprivate
Parameters
urlThe location of a collection item (title block template, element, category, ...).
Returns
the id of the project mentionned in the URL, or -1 if none could be found.

Definition at line 1719 of file qetapp.cpp.

Referenced by projectFromString().

◆ projectsRecentFiles()

RecentFiles * QETApp::projectsRecentFiles ( )
static
Returns
La liste des fichiers recents pour les projets

Definition at line 1166 of file qetapp.cpp.

References m_projects_recent_files.

Referenced by QETDiagramEditor::openAndAddProject(), QETDiagramEditor::save(), QETDiagramEditor::saveAs(), and QETDiagramEditor::setUpMenu().

◆ quitQET

void QETApp::quitQET ( )
slot

Demande la fermeture de toutes les fenetres ; si l'utilisateur les accepte, l'application quitte

Definition at line 1254 of file qetapp.cpp.

References closeEveryEditor().

Referenced by initSystemTray().

◆ realPath()

QString QETApp::realPath ( const QString &  sym_path)
static

Permet de connaitre le chemin absolu du fichier *.elmt correspondant a un chemin symbolique (du type custom://outils_pervers/sado_maso/contact_bizarre)

Parameters
sym_pathChaine de caracteres representant le chemin absolu du fichier
Returns
Une chaine de caracteres vide en cas d'erreur ou le chemin absolu du fichier *.elmt.

Definition at line 704 of file qetapp.cpp.

References commonElementsDir(), commonTitleBlockTemplatesDir(), customElementsDir(), customTitleBlockTemplatesDir(), QETAPP_COMMON_TBT_PROTOCOL, and QETAPP_CUSTOM_TBT_PROTOCOL.

Referenced by QETTitleBlockTemplateEditor::isEditing(), and QETElementEditor::isEditing().

◆ receiveMessage

void QETApp::receiveMessage ( int  instanceId,
QByteArray  message 
)
slot

Definition at line 1124 of file qetapp.cpp.

References openFiles(), and QET::splitWithSpaces().

Referenced by main().

◆ reduceDiagramEditors

void QETApp::reduceDiagramEditors ( )
slot

Reduit tous les editeurs de schemas dans le systray.

Definition at line 239 of file qetapp.cpp.

Referenced by initSystemTray(), and reduceEveryEditor().

◆ reduceElementEditors

void QETApp::reduceElementEditors ( )
slot

Reduit tous les editeurs d'element dans le systray.

Definition at line 249 of file qetapp.cpp.

Referenced by initSystemTray(), and reduceEveryEditor().

◆ reduceEveryEditor

void QETApp::reduceEveryEditor ( )
slot

Reduit toutes les fenetres de l'application dans le systray.

Definition at line 223 of file qetapp.cpp.

References every_editor_reduced, reduceDiagramEditors(), reduceElementEditors(), and reduceTitleBlockTemplateEditors().

Referenced by initSystemTray(), and systray().

◆ reduceTitleBlockTemplateEditors

void QETApp::reduceTitleBlockTemplateEditors ( )
slot

Reduce all known template editors.

Definition at line 259 of file qetapp.cpp.

Referenced by initSystemTray(), and reduceEveryEditor().

◆ registeredProjects()

QMap< uint, QETProject * > QETApp::registeredProjects ( )
static
Returns
la liste des projets avec leurs ids associes

Definition at line 1949 of file qetapp.cpp.

References registered_projects_.

Referenced by checkBackupFiles(), and ElementDialog::setUpWidget().

◆ registerProject()

bool QETApp::registerProject ( QETProject project)
static
Parameters
projectProjet a enregistrer aupres de l'application
Returns
true si le projet a pu etre enregistre, false sinon L'echec de l'enregistrement d'un projet signifie generalement qu'il est deja enregistre.

Definition at line 1958 of file qetapp.cpp.

References next_project_id, project(), projectId(), and registered_projects_.

Referenced by QETDiagramEditor::addProject().

◆ resetUserElementsDir()

void QETApp::resetUserElementsDir ( )
static

QETApp::resetUserElementsDir Reset the path of the user common and custom elements dir. Use this function when the user path (common and/or custom) change.

Definition at line 610 of file qetapp.cpp.

References m_user_common_elements_dir, m_user_custom_elements_dir, and m_user_custom_tbt_dir.

Referenced by GeneralConfigurationPage::applyConf().

◆ restoreDiagramEditors

void QETApp::restoreDiagramEditors ( )
slot

Restaure tous les editeurs de schemas dans le systray.

Definition at line 244 of file qetapp.cpp.

Referenced by initSystemTray(), and restoreEveryEditor().

◆ restoreElementEditors

void QETApp::restoreElementEditors ( )
slot

Restaure tous les editeurs d'element dans le systray.

Definition at line 254 of file qetapp.cpp.

Referenced by initSystemTray(), and restoreEveryEditor().

◆ restoreEveryEditor

void QETApp::restoreEveryEditor ( )
slot

Restaure toutes les fenetres de l'application dans le systray.

Definition at line 231 of file qetapp.cpp.

References every_editor_reduced, restoreDiagramEditors(), restoreElementEditors(), and restoreTitleBlockTemplateEditors().

Referenced by closeEveryEditor(), initSystemTray(), and systray().

◆ restoreTitleBlockTemplateEditors

void QETApp::restoreTitleBlockTemplateEditors ( )
slot

Restore all known template editors.

Definition at line 264 of file qetapp.cpp.

Referenced by initSystemTray(), and restoreEveryEditor().

◆ setLanguage()

void QETApp::setLanguage ( const QString &  desired_language)

Change le langage utilise par l'application.

Parameters
desired_languagelangage voulu

Definition at line 152 of file qetapp.cpp.

References languagesPath(), qetTranslator, qtTranslator, switchLayout(), and QET::Icons::tr.

Referenced by initLanguage().

◆ setMainWindowsVisible()

template<class T >
void QETApp::setMainWindowsVisible ( bool  visible)
private
Parameters
Ta class inheriting QMainWindow
visiblewhether detected main windows should be visible

Definition at line 1157 of file qetapp.cpp.

References setMainWindowVisible().

◆ setMainWindowVisible

void QETApp::setMainWindowVisible ( QMainWindow *  window,
bool  visible 
)
slot

Affiche ou cache une fenetre (editeurs de schemas / editeurs d'elements)

Parameters
windowfenetre a afficher / cacher
visibletrue pour affiche la fenetre, false sinon

Definition at line 1182 of file qetapp.cpp.

References floatingToolbarsAndDocksForMainWindow(), window_geometries, and window_states.

Referenced by invertMainWindowVisibility(), and setMainWindowsVisible().

◆ setSplashScreenStep()

void QETApp::setSplashScreenStep ( const QString &  message = QString())
private

Change le texte du splash screen et prend en compte les evenements. Si l'application s'execute de facon non interactive, cette methode ne fait rien.

Definition at line 1597 of file qetapp.cpp.

References m_splash_screen.

Referenced by initSplashScreen(), initSystemTray(), and QETApp().

◆ switchLayout()

void QETApp::switchLayout ( Qt::LayoutDirection  direction)

Switches the application to the provided layout.

Definition at line 194 of file qetapp.cpp.

Referenced by setLanguage().

◆ symbolicPath()

QString QETApp::symbolicPath ( const QString &  real_path)
static

Construit le chemin symbolique (du type custom://outils_pervers/sado_maso/ contact_bizarre) correspondant a un fichier.

Parameters
real_pathChaine de caracteres representant le chemin symbolique du fichier
Returns
Une chaine de caracteres vide en cas d'erreur ou le chemin symbolique designant l'element.

Definition at line 725 of file qetapp.cpp.

References commonElementsDir(), and customElementsDir().

◆ systray

void QETApp::systray ( QSystemTrayIcon::ActivationReason  reason)
slot

Gere les evenements relatifs au QSystemTrayIcon

Parameters
reasonun entier representant l'evenement survenu sur le systray

Definition at line 202 of file qetapp.cpp.

References buildSystemTrayMenu(), diagramEditors(), elementEditors(), every_editor_reduced, fetchWindowStats(), m_qsti, reduceEveryEditor(), restoreEveryEditor(), and titleBlockTemplateEditors().

Referenced by initSystemTray().

◆ titleBlockTemplateEditors() [1/2]

QList< QETTitleBlockTemplateEditor * > QETApp::titleBlockTemplateEditors ( )
static
Returns
the title block template editors

Definition at line 1039 of file qetapp.cpp.

References instance().

Referenced by buildSystemTrayMenu(), openTitleBlockTemplateFiles(), systray(), titleBlockTemplateEditors(), and ProjectView::tryClosingElementEditors().

◆ titleBlockTemplateEditors() [2/2]

QList< QETTitleBlockTemplateEditor * > QETApp::titleBlockTemplateEditors ( QETProject project)
static
Parameters
projectOpened project object.
Returns
the list of title block template editors which are currently editing a template embedded within project.

Definition at line 1048 of file qetapp.cpp.

References project(), and titleBlockTemplateEditors().

◆ titleBlockTemplatesCollection()

TitleBlockTemplatesCollection * QETApp::titleBlockTemplatesCollection ( const QString &  protocol)
static
Parameters
protocolProtocol string
Returns
the templates collection matching the provided protocol, or 0 if none could be found

Definition at line 493 of file qetapp.cpp.

References m_common_tbt_collection, m_custom_tbt_collection, project(), projectFromString(), QETAPP_COMMON_TBT_PROTOCOL, and QETAPP_CUSTOM_TBT_PROTOCOL.

Referenced by TitleBlockTemplateLocation::fromString().

◆ unregisterProject()

bool QETApp::unregisterProject ( QETProject project)
static

Annule l'enregistrement du projet project

Parameters
projectProjet dont il faut annuler l'enregistrement
Returns
true si l'annulation a reussi, false sinon L'echec de cette methode signifie generalement que le projet n'etait pas enregistre.

Definition at line 1976 of file qetapp.cpp.

References project(), projectId(), and registered_projects_.

Referenced by QETDiagramEditor::projectWasClosed().

◆ useSystemPalette

void QETApp::useSystemPalette ( bool  use)
slot

Autodetec Windows style

Parameters
Windowsstyle Change la palette de l'application
usetrue pour utiliser les couleurs du systeme, false pour utiliser celles du theme en cours

Definition at line 1232 of file qetapp.cpp.

References configDir(), and initial_palette_.

Referenced by GeneralConfigurationPage::applyConf(), and initStyle().

Member Data Documentation

◆ collections_cache_

ElementsCollectionCache * QETApp::collections_cache_ = nullptr
staticprivate

Definition at line 191 of file qetapp.h.

Referenced by collectionCache(), and QETApp().

◆ default_titleblock_template_

TitleBlockTemplate * QETApp::default_titleblock_template_ = nullptr
staticprivate

Definition at line 196 of file qetapp.h.

Referenced by defaultTitleBlockTemplate().

◆ every_diagram_reduced

bool QETApp::every_diagram_reduced
private

Definition at line 178 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and fetchWindowStats().

◆ every_diagram_visible

bool QETApp::every_diagram_visible
private

Definition at line 179 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and fetchWindowStats().

◆ every_editor_reduced

bool QETApp::every_editor_reduced
private

◆ every_element_reduced

bool QETApp::every_element_reduced
private

Definition at line 180 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and fetchWindowStats().

◆ every_element_visible

bool QETApp::every_element_visible
private

Definition at line 181 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and fetchWindowStats().

◆ every_template_reduced

bool QETApp::every_template_reduced
private

Definition at line 182 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and fetchWindowStats().

◆ every_template_visible

bool QETApp::every_template_visible
private

Definition at line 183 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and fetchWindowStats().

◆ initial_palette_

QPalette QETApp::initial_palette_
private

System color palette.

Definition at line 187 of file qetapp.h.

Referenced by initStyle(), and useSystemPalette().

◆ lang_dir

QString QETApp::lang_dir = QString()
static

Directory containing localization files.

Definition at line 134 of file qetapp.h.

Referenced by languagesPath(), and overrideLangDir().

◆ m_common_tbt_collection

TitleBlockTemplatesFilesCollection * QETApp::m_common_tbt_collection
staticprivate

◆ m_custom_tbt_collection

TitleBlockTemplatesFilesCollection * QETApp::m_custom_tbt_collection
staticprivate

◆ m_elements_recent_files

RecentFiles * QETApp::m_elements_recent_files = nullptr
staticprivate

Definition at line 195 of file qetapp.h.

Referenced by elementsRecentFiles(), initConfiguration(), and ~QETApp().

◆ m_projects_recent_files

RecentFiles * QETApp::m_projects_recent_files = nullptr
staticprivate

Definition at line 194 of file qetapp.h.

Referenced by initConfiguration(), projectsRecentFiles(), and ~QETApp().

◆ m_qetapp

QETApp * QETApp::m_qetapp = nullptr
staticprivate

Definition at line 158 of file qetapp.h.

Referenced by instance(), and QETApp().

◆ m_qsti

QSystemTrayIcon* QETApp::m_qsti
private

Definition at line 161 of file qetapp.h.

Referenced by initSystemTray(), systray(), and ~QETApp().

◆ m_splash_screen

QSplashScreen* QETApp::m_splash_screen
private

Definition at line 162 of file qetapp.h.

Referenced by initSplashScreen(), QETApp(), setSplashScreenStep(), and ~QETApp().

◆ m_user_common_elements_dir

QString QETApp::m_user_common_elements_dir = QString()
staticprivate

Definition at line 197 of file qetapp.h.

Referenced by commonElementsDir(), and resetUserElementsDir().

◆ m_user_custom_elements_dir

QString QETApp::m_user_custom_elements_dir = QString()
staticprivate

Definition at line 198 of file qetapp.h.

Referenced by customElementsDir(), and resetUserElementsDir().

◆ m_user_custom_tbt_dir

QString QETApp::m_user_custom_tbt_dir = QString()
staticprivate

Definition at line 199 of file qetapp.h.

Referenced by customTitleBlockTemplatesDir(), and resetUserElementsDir().

◆ menu_systray

QMenu* QETApp::menu_systray
private

Definition at line 163 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ new_diagram

QAction* QETApp::new_diagram
private

Definition at line 173 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ new_element

QAction* QETApp::new_element
private

Definition at line 174 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ next_project_id

uint QETApp::next_project_id = 0
staticprivate

Definition at line 193 of file qetapp.h.

Referenced by registerProject().

◆ non_interactive_execution_

bool QETApp::non_interactive_execution_
private

Whether the application will end without any user interaction.

Definition at line 186 of file qetapp.h.

Referenced by initSplashScreen(), parseArguments(), and QETApp().

◆ qet_arguments_

QETArguments QETApp::qet_arguments_
private

Comand-line arguments parser.

Definition at line 185 of file qetapp.h.

Referenced by parseArguments(), and QETApp().

◆ qetTranslator

QTranslator QETApp::qetTranslator
private

Definition at line 160 of file qetapp.h.

Referenced by setLanguage().

◆ qtTranslator

QTranslator QETApp::qtTranslator
private

Definition at line 159 of file qetapp.h.

Referenced by setLanguage().

◆ quitter_qet

QAction* QETApp::quitter_qet
private

Definition at line 164 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ reduce_appli

QAction* QETApp::reduce_appli
private

Definition at line 165 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ reduce_diagrams

QAction* QETApp::reduce_diagrams
private

Definition at line 167 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ reduce_elements

QAction* QETApp::reduce_elements
private

Definition at line 169 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ reduce_templates

QAction* QETApp::reduce_templates
private

Definition at line 171 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ registered_projects_

QMap< uint, QETProject * > QETApp::registered_projects_ = QMap<uint, QETProject *>()
staticprivate

◆ restore_appli

QAction* QETApp::restore_appli
private

Definition at line 166 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ restore_diagrams

QAction* QETApp::restore_diagrams
private

Definition at line 168 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ restore_elements

QAction* QETApp::restore_elements
private

Definition at line 170 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ restore_templates

QAction* QETApp::restore_templates
private

Definition at line 172 of file qetapp.h.

Referenced by buildSystemTrayMenu(), and initSystemTray().

◆ signal_map

QSignalMapper QETApp::signal_map
private

Definition at line 184 of file qetapp.h.

Referenced by addWindowsListToMenu(), and QETApp().

◆ window_geometries

QHash<QMainWindow *, QByteArray> QETApp::window_geometries
private

Definition at line 175 of file qetapp.h.

Referenced by setMainWindowVisible().

◆ window_states

QHash<QMainWindow *, QByteArray> QETApp::window_states
private

Definition at line 176 of file qetapp.h.

Referenced by setMainWindowVisible().


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