QElectroTech
0.70
|
#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 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 QETProject * | projectFromString (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 QETApp * | m_qetapp = nullptr |
static TitleBlockTemplatesFilesCollection * | m_common_tbt_collection |
static TitleBlockTemplatesFilesCollection * | m_custom_tbt_collection |
static ElementsCollectionCache * | collections_cache_ = nullptr |
static QMap< uint, QETProject * > | registered_projects_ = QMap<uint, QETProject *>() |
static uint | next_project_id = 0 |
static RecentFiles * | m_projects_recent_files = nullptr |
static RecentFiles * | m_elements_recent_files = nullptr |
static TitleBlockTemplate * | default_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() |
QETApp::QETApp | ( | ) |
Definition at line 73 of file qetapp.cpp.
References buildSystemTrayMenu(), checkBackupFiles(), checkRemainingWindows(), collections_cache_, configDir(), QETArguments::files(), initConfiguration(), QET::Icons::initIcons(), initLanguage(), initSplashScreen(), initStyle(), initSystemTray(), invertMainWindowVisibility(), langFromSetting(), m_qetapp, m_splash_screen, non_interactive_execution_, openFiles(), parseArguments(), qet_arguments_, ElementsCollectionCache::setLocale(), setSplashScreenStep(), signal_map, and QET::Icons::tr.
|
override |
Definition at line 121 of file qetapp.cpp.
References ElementFactory::dropInstance(), ElementPictureFactory::dropInstance(), m_common_tbt_collection, m_custom_tbt_collection, m_elements_recent_files, m_projects_recent_files, m_qsti, m_splash_screen, and RecentFiles::save().
|
private |
|
slot |
QETApp::aboutQET Open the dialog about qet.
Definition at line 1500 of file qetapp.cpp.
|
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.
T | the class inheriting QMainWindow |
menu | the menu windows will be added to |
windows | A list of top-level windows. |
Definition at line 1702 of file qetapp.cpp.
References signal_map.
|
static |
Definition at line 476 of file qetapp.cpp.
References commonTitleBlockTemplatesCollection(), customTitleBlockTemplatesCollection(), and registered_projects_.
Referenced by TitleBlockTemplateLocationChooser::updateCollections().
|
private |
construit le menu de l'icone dans le systray
Definition at line 1744 of file qetapp.cpp.
References diagramEditors(), elementEditors(), every_diagram_reduced, every_diagram_visible, every_editor_reduced, every_element_reduced, every_element_visible, every_template_reduced, every_template_visible, fetchWindowStats(), menu_systray, new_diagram, new_element, quitter_qet, reduce_appli, reduce_diagrams, reduce_elements, reduce_templates, restore_appli, restore_diagrams, restore_elements, restore_templates, titleBlockTemplateEditors(), and QET::Icons::tr.
|
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().
|
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().
|
slot |
Ferme tous les editeurs
Definition at line 887 of file qetapp.cpp.
References diagramEditors(), elementEditors(), project(), registered_projects_, and restoreEveryEditor().
Referenced by quitQET().
|
static |
Definition at line 281 of file qetapp.cpp.
References collections_cache_.
Referenced by ElementsLocation::icon().
|
static |
Definition at line 511 of file qetapp.cpp.
References m_user_common_elements_dir, and QUOTE.
Referenced by commonElementsDirN(), autonum::elementPrefixForLocation(), realPath(), and symbolicPath().
|
static |
QETApp::commonElementsDirN like QString QETApp::commonElementsDir but without "/" at the end.
Definition at line 586 of file qetapp.cpp.
References commonElementsDir().
Referenced by ElementsCollectionModel::addCommonCollection(), FileElementCollectionItem::collectionPath(), FileElementCollectionItem::isCollectionRoot(), FileElementCollectionItem::isCommonCollection(), ElementsLocation::isCommonCollection(), ElementsLocation::isWritable(), FileElementCollectionItem::localName(), ElementsLocation::setPath(), and FileElementCollectionItem::setUpIcon().
|
static |
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().
|
static |
Definition at line 621 of file qetapp.cpp.
References QUOTE.
Referenced by commonTitleBlockTemplatesCollection(), and realPath().
|
static |
Definition at line 382 of file qetapp.cpp.
Referenced by replaceAdvancedDialog::fillWhatComboBox().
|
static |
QETApp::conductorTranslatedInfoKey.
key |
Definition at line 399 of file qetapp.cpp.
References QET::Icons::tr.
Referenced by replaceAdvancedDialog::fillWhatComboBox().
|
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.
Definition at line 676 of file qetapp.cpp.
Referenced by ImportElementTextPattern::apply(), customElementsDir(), customTitleBlockTemplatesDir(), ExportElementTextPattern::ExportElementTextPattern(), ImportElementTextPattern::ImportElementTextPattern(), initConfiguration(), QETApp(), and useSystemPalette().
|
slot |
Permet a l'utilisateur de configurer QET en lancant un dialogue approprie.
Definition at line 1472 of file qetapp.cpp.
References ConfigDialog::addPage(), and QET::Icons::tr.
Referenced by QETMainWindow::initCommonActions().
|
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.
Definition at line 1072 of file qetapp.cpp.
References diagramTextsFont(), and QET::Icons::tr.
Referenced by ConductorPropertiesWidget::initWidget(), and RotateTextsCommand::openDialog().
|
static |
Definition at line 555 of file qetapp.cpp.
References configDir(), and m_user_custom_elements_dir.
Referenced by customElementsDirN(), autonum::elementPrefixForLocation(), QETElementEditor::getOpenElementFileName(), initConfiguration(), realPath(), QETElementEditor::slot_openFile(), QETElementEditor::slot_saveAsFile(), and symbolicPath().
|
static |
QETApp::customElementsDirN like QString QETApp::customElementsDir but without "/" at the end.
Definition at line 598 of file qetapp.cpp.
References customElementsDir().
Referenced by ElementsCollectionModel::addCustomCollection(), FileElementCollectionItem::isCollectionRoot(), FileElementCollectionItem::isCustomCollection(), ElementsLocation::isCustomCollection(), FileElementCollectionItem::localName(), and ElementsLocation::setPath().
|
static |
Definition at line 462 of file qetapp.cpp.
References QET::Custom, customTitleBlockTemplatesDir(), m_custom_tbt_collection, QETAPP_CUSTOM_TBT_PROTOCOL, and QET::Icons::tr.
Referenced by availableTitleBlockTemplatesCollections(), NewDiagramPage::NewDiagramPage(), ElementsPanel::reload(), and QETProject::setDefaultTitleBlockProperties().
|
static |
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().
|
static |
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().
|
private |
T | a class inheriting QMainWindow |
Definition at line 1142 of file qetapp.cpp.
|
static |
QETApp::diagramEditorAncestorOf.
child |
Definition at line 796 of file qetapp.cpp.
References diagramEditors().
Referenced by ElementsCollectionWidget::leaveEvent(), and ElementsCollectionWidget::setUpConnection().
|
static |
filepath | Un chemin de fichier Note : si filepath est une chaine vide, cette methode retourne 0. |
Definition at line 777 of file qetapp.cpp.
References diagramEditors(), and instance().
Referenced by QETDiagramEditor::openAndAddProject().
|
static |
Definition at line 1025 of file qetapp.cpp.
References instance().
Referenced by buildSystemTrayMenu(), checkBackupFiles(), checkRemainingWindows(), closeEveryEditor(), diagramEditorAncestorOf(), diagramEditorForFile(), QETMainWindow::initCommonActions(), openProjectFiles(), and systray().
|
static |
Definition at line 412 of file qetapp.cpp.
Referenced by replaceAdvancedDialog::fillWhatComboBox().
|
static |
QETApp::diagramTextsFont The font to use By default the font is "sans Serif" and size 9.
size | : the size of font |
Definition at line 910 of file qetapp.cpp.
Referenced by CrossRefItem::AddExtraInfo(), createTextOrientationSpinBoxWidget(), BorderTitleBlock::draw(), DiagramFolioList::fillHeader(), TitleBlockTemplate::fontForCell(), PartDynamicTextField::fromTextFieldXml(), ElementPictureFactory::parseText(), PartText::PartText(), CrossRefItem::updateLabel(), ElementTextItemGroup::updateXref(), and DynamicElementTextItem::updateXref().
|
static |
QETApp::diagramTextsItemFont the font for to use in independent text item.
size | of font |
Definition at line 934 of file qetapp.cpp.
Referenced by DiagramTextItem::build(), dynamicTextsItemFont(), and indiTextsItemFont().
|
static |
QETApp::diagramTranslatedInfoKey.
key |
Definition at line 432 of file qetapp.cpp.
References QET::Icons::tr.
Referenced by replaceAdvancedDialog::fillWhatComboBox().
|
static |
QETApp::dynamicTextsFont the defaukt font of dynamic element text item.
size |
Definition at line 962 of file qetapp.cpp.
References diagramTextsItemFont().
Referenced by DynamicElementTextItem::DynamicElementTextItem(), PartDynamicTextField::fromXml(), DynamicElementTextItem::paint(), and PartDynamicTextField::PartDynamicTextField().
|
static |
Definition at line 1032 of file qetapp.cpp.
References instance().
Referenced by buildSystemTrayMenu(), checkRemainingWindows(), closeEveryEditor(), elementEditors(), openElementFiles(), openElementLocations(), systray(), and ProjectView::tryClosingElementEditors().
|
static |
project | un projet |
Definition at line 1104 of file qetapp.cpp.
References elementEditors(), ElementsLocation::isNull(), ElementsLocation::project(), and project().
|
static |
Definition at line 289 of file qetapp.cpp.
Referenced by DynamicTextItemDelegate::availableInfo(), ElementInfoWidget::buildInterface(), ReplaceElementDialog::buildWidget(), DynamicTextFieldEditor::fillInfoComboBox(), replaceAdvancedDialog::fillWhatComboBox(), SearchAndReplaceWorker::replaceElement(), SearchAndReplaceWidget::searchTerms(), and CompositeTextEditDialog::setUpComboBox().
|
static |
info |
Definition at line 355 of file qetapp.cpp.
Referenced by CompositeTextEditDialog::setUpComboBox().
|
static |
Definition at line 1173 of file qetapp.cpp.
References m_elements_recent_files.
Referenced by QETElementEditor::fromFile(), QETElementEditor::setupMenus(), and QETElementEditor::slot_saveAsFile().
|
static |
ElementsProperties::translatedInfo Return the translated information key given by If don't match, return an empty string.
info | the key to be translated |
Definition at line 321 of file qetapp.cpp.
References QET::Icons::tr.
Referenced by ElementInfoWidget::buildInterface(), ReplaceElementDialog::buildWidget(), DynamicTextItemDelegate::createEditor(), DynamicTextFieldEditor::fillInfoComboBox(), replaceAdvancedDialog::fillWhatComboBox(), DynamicElementTextModel::itemsForText(), ElementPropertiesEditorWidget::populateTree(), CompositeTextEditDialog::setUpComboBox(), and DynamicElementTextModel::updateDataFromText().
|
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().
|
private |
window | fenetre dont il faut trouver les barres d'outils et dock flottants |
Definition at line 1514 of file qetapp.cpp.
Referenced by setMainWindowVisible().
|
static |
QETApp::foliolistTextsFont the font for to use in summary pages.
size |
Definition at line 982 of file qetapp.cpp.
Referenced by DiagramFolioList::fillRow().
|
static |
Definition at line 743 of file qetapp.cpp.
References TITLEBLOCKS_FILE_EXTENSION.
Referenced by handledFiles().
|
static |
an | URLs list |
Definition at line 757 of file qetapp.cpp.
References handledFileExtensions().
Referenced by QETMainWindow::dragEnterEvent(), and QETMainWindow::dropEvent().
|
static |
QETApp::indiTextsItemFont The default font to use for independent text item.
size |
Definition at line 1007 of file qetapp.cpp.
References diagramTextsItemFont().
Referenced by IndependentTextItem::IndependentTextItem().
|
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().
|
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().
|
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().
|
private |
QETApp::initStyle Setup the gui style.
Definition at line 1616 of file qetapp.cpp.
References initial_palette_, and useSystemPalette().
Referenced by QETApp().
|
private |
Construit l'icone dans le systray et son menu
Definition at line 1653 of file qetapp.cpp.
References QET::Icons::ApplicationExit, QET::Icons::Hide, m_qsti, menu_systray, new_diagram, new_element, newDiagramEditor(), newElementEditor(), QET::Icons::QETLogo, quitQET(), quitter_qet, reduce_appli, reduce_diagrams, reduce_elements, reduce_templates, reduceDiagramEditors(), reduceElementEditors(), reduceEveryEditor(), reduceTitleBlockTemplateEditors(), QET::Icons::Restore, restore_appli, restore_diagrams, restore_elements, restore_templates, restoreDiagramEditors(), restoreElementEditors(), restoreEveryEditor(), restoreTitleBlockTemplateEditors(), setSplashScreenStep(), systray(), QET::Icons::tr, and QET::Icons::WindowNew.
Referenced by QETApp().
|
static |
Definition at line 143 of file qetapp.cpp.
References m_qetapp.
Referenced by ElementsPanelWidget::addTitleBlockTemplate(), GeneralConfigurationPage::applyConf(), defaultTitleBlockTemplate(), diagramEditorForFile(), diagramEditors(), QETMainWindow::dropEvent(), TitleBlockPropertiesWidget::duplicateCurrentTitleBlockTemplate(), TitleBlockPropertiesWidget::editCurrentTitleBlockTemplate(), ElementsCollectionWidget::editElement(), QETDiagramEditor::editElementInEditor(), ElementsPanelWidget::editTitleBlockTemplate(), elementEditors(), ElementsPanelWidget::ElementsPanelWidget(), QETMainWindow::initCommonActions(), main(), ElementsCollectionWidget::newElement(), QETTitleBlockTemplateEditor::open(), QETElementEditor::openElement(), QETTitleBlockTemplateEditor::openFromFile(), QETElementEditor::slot_open(), and titleBlockTemplateEditors().
|
slot |
Affiche une fenetre (editeurs de schemas / editeurs d'elements) si celle-ci est cachee ou la cache si elle est affichee.
window | fenetre a afficher / cacher |
Definition at line 1206 of file qetapp.cpp.
References setMainWindowVisible().
Referenced by QETApp().
|
static |
Definition at line 184 of file qetapp.cpp.
Referenced by initLanguage(), NamesList::name(), and QETApp().
|
static |
Definition at line 864 of file qetapp.cpp.
References lang_dir, and QUOTE.
Referenced by setLanguage().
|
slot |
lance un nouvel editeur de schemas
Definition at line 269 of file qetapp.cpp.
Referenced by initSystemTray().
|
slot |
lance un nouvel editeur d'element
Definition at line 274 of file qetapp.cpp.
Referenced by initSystemTray().
|
slot |
Ouvre les fichiers elements passes en parametre. Si un element est deja ouvert, la fenetre qui l'edite est activee.
files_list | Fichiers a ouvrir |
Definition at line 1336 of file qetapp.cpp.
References elementEditors().
Referenced by openFiles().
|
slot |
Ouvre les elements dont l'emplacement est passe en parametre. Si un element est deja ouvert, la fentre qui l'edite est activee.
locations_list | Emplacements a ouvrir |
Definition at line 1377 of file qetapp.cpp.
References elementEditors().
|
slot |
Ouvre les fichiers passes en arguments
args | Objet contenant des arguments ; les fichiers |
Definition at line 1285 of file qetapp.cpp.
References QETArguments::elementFiles(), openElementFiles(), openProjectFiles(), openTitleBlockTemplateFiles(), QETArguments::projectFiles(), and QETArguments::titleBlockTemplateFiles().
Referenced by QETApp(), and receiveMessage().
|
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.
files_list | Fichiers a ouvrir |
Definition at line 1299 of file qetapp.cpp.
References QET::Icons::de, and diagramEditors().
Referenced by openFiles().
|
slot |
Launch a new title block template editor to edit the given template
location | location of the title block template to be edited |
duplicate | if true, the template is opened for duplication, which means the user will be prompter for a new template name. |
Definition at line 1412 of file qetapp.cpp.
Referenced by TitleBlockPropertiesWidget::duplicateCurrentTitleBlockTemplate(), TitleBlockPropertiesWidget::editCurrentTitleBlockTemplate(), and openTitleBlockTemplateFiles().
|
slot |
Launch a new title block template editor to edit the given template
filepath | Path of the .titleblock file to be opened |
Definition at line 1423 of file qetapp.cpp.
|
slot |
Open provided title block template files. If a title block template is already opened, the adequate window is activated.
files_list | Files to be opened |
Definition at line 1434 of file qetapp.cpp.
References openTitleBlockTemplate(), and titleBlockTemplateEditors().
Referenced by openFiles().
|
static |
Redefinit le chemin du dossier contenant les fichiers de langue
new_ld | Nouveau chemin du dossier contenant les fichiers de langue |
Definition at line 853 of file qetapp.cpp.
References lang_dir.
Referenced by 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().
|
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().
|
static |
Affiche la licence sur la sortie standard
Definition at line 1942 of file qetapp.cpp.
References QET::license().
Referenced by parseArguments().
|
static |
Affiche la version sur la sortie standard
Definition at line 1935 of file qetapp.cpp.
References QET::displayedVersion.
Referenced by parseArguments().
|
static |
id | Id du projet voulu |
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().
|
staticprivate |
url | The location of a collection item (title block template, element, category, ...). |
Definition at line 1737 of file qetapp.cpp.
References project(), and projectIdFromString().
Referenced by titleBlockTemplatesCollection().
|
static |
project | Projet dont on souhaite recuperer l'id |
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().
|
staticprivate |
url | The location of a collection item (title block template, element, category, ...). |
Definition at line 1719 of file qetapp.cpp.
Referenced by projectFromString().
|
static |
Definition at line 1166 of file qetapp.cpp.
References m_projects_recent_files.
Referenced by QETDiagramEditor::openAndAddProject(), QETDiagramEditor::save(), QETDiagramEditor::saveAs(), and QETDiagramEditor::setUpMenu().
|
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().
|
static |
Permet de connaitre le chemin absolu du fichier *.elmt correspondant a un chemin symbolique (du type custom://outils_pervers/sado_maso/contact_bizarre)
sym_path | Chaine de caracteres representant le chemin absolu du fichier |
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().
|
slot |
Definition at line 1124 of file qetapp.cpp.
References openFiles(), and QET::splitWithSpaces().
Referenced by main().
|
slot |
Reduit tous les editeurs de schemas dans le systray.
Definition at line 239 of file qetapp.cpp.
Referenced by initSystemTray(), and reduceEveryEditor().
|
slot |
Reduit tous les editeurs d'element dans le systray.
Definition at line 249 of file qetapp.cpp.
Referenced by initSystemTray(), and 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().
|
slot |
Reduce all known template editors.
Definition at line 259 of file qetapp.cpp.
Referenced by initSystemTray(), and reduceEveryEditor().
|
static |
Definition at line 1949 of file qetapp.cpp.
References registered_projects_.
Referenced by checkBackupFiles(), and ElementDialog::setUpWidget().
|
static |
project | Projet a enregistrer aupres de l'application |
Definition at line 1958 of file qetapp.cpp.
References next_project_id, project(), projectId(), and registered_projects_.
Referenced by QETDiagramEditor::addProject().
|
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().
|
slot |
Restaure tous les editeurs de schemas dans le systray.
Definition at line 244 of file qetapp.cpp.
Referenced by initSystemTray(), and restoreEveryEditor().
|
slot |
Restaure tous les editeurs d'element dans le systray.
Definition at line 254 of file qetapp.cpp.
Referenced by initSystemTray(), and 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().
|
slot |
Restore all known template editors.
Definition at line 264 of file qetapp.cpp.
Referenced by initSystemTray(), and restoreEveryEditor().
void QETApp::setLanguage | ( | const QString & | desired_language | ) |
Change le langage utilise par l'application.
desired_language | langage voulu |
Definition at line 152 of file qetapp.cpp.
References languagesPath(), qetTranslator, qtTranslator, switchLayout(), and QET::Icons::tr.
Referenced by initLanguage().
|
private |
T | a class inheriting QMainWindow |
visible | whether detected main windows should be visible |
Definition at line 1157 of file qetapp.cpp.
References setMainWindowVisible().
|
slot |
Affiche ou cache une fenetre (editeurs de schemas / editeurs d'elements)
window | fenetre a afficher / cacher |
visible | true 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().
|
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().
void QETApp::switchLayout | ( | Qt::LayoutDirection | direction | ) |
Switches the application to the provided layout.
Definition at line 194 of file qetapp.cpp.
Referenced by setLanguage().
|
static |
Construit le chemin symbolique (du type custom://outils_pervers/sado_maso/ contact_bizarre) correspondant a un fichier.
real_path | Chaine de caracteres representant le chemin symbolique du fichier |
Definition at line 725 of file qetapp.cpp.
References commonElementsDir(), and customElementsDir().
|
slot |
Gere les evenements relatifs au QSystemTrayIcon
reason | un 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().
|
static |
Definition at line 1039 of file qetapp.cpp.
References instance().
Referenced by buildSystemTrayMenu(), openTitleBlockTemplateFiles(), systray(), titleBlockTemplateEditors(), and ProjectView::tryClosingElementEditors().
|
static |
project | Opened project object. |
Definition at line 1048 of file qetapp.cpp.
References project(), and titleBlockTemplateEditors().
|
static |
protocol | Protocol string |
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().
|
static |
Annule l'enregistrement du projet project
project | Projet dont il faut annuler l'enregistrement |
Definition at line 1976 of file qetapp.cpp.
References project(), projectId(), and registered_projects_.
Referenced by QETDiagramEditor::projectWasClosed().
|
slot |
Autodetec Windows style
Windows | style Change la palette de l'application |
use | true 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().
|
staticprivate |
Definition at line 191 of file qetapp.h.
Referenced by collectionCache(), and QETApp().
|
staticprivate |
Definition at line 196 of file qetapp.h.
Referenced by defaultTitleBlockTemplate().
|
private |
Definition at line 178 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and fetchWindowStats().
|
private |
Definition at line 179 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and fetchWindowStats().
|
private |
Definition at line 177 of file qetapp.h.
Referenced by buildSystemTrayMenu(), fetchWindowStats(), reduceEveryEditor(), restoreEveryEditor(), and systray().
|
private |
Definition at line 180 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and fetchWindowStats().
|
private |
Definition at line 181 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and fetchWindowStats().
|
private |
Definition at line 182 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and fetchWindowStats().
|
private |
Definition at line 183 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and fetchWindowStats().
|
private |
System color palette.
Definition at line 187 of file qetapp.h.
Referenced by initStyle(), and useSystemPalette().
|
static |
Directory containing localization files.
Definition at line 134 of file qetapp.h.
Referenced by languagesPath(), and overrideLangDir().
|
staticprivate |
Definition at line 189 of file qetapp.h.
Referenced by commonTitleBlockTemplatesCollection(), titleBlockTemplatesCollection(), and ~QETApp().
|
staticprivate |
Definition at line 190 of file qetapp.h.
Referenced by customTitleBlockTemplatesCollection(), titleBlockTemplatesCollection(), and ~QETApp().
|
staticprivate |
Definition at line 195 of file qetapp.h.
Referenced by elementsRecentFiles(), initConfiguration(), and ~QETApp().
|
staticprivate |
Definition at line 194 of file qetapp.h.
Referenced by initConfiguration(), projectsRecentFiles(), and ~QETApp().
|
staticprivate |
Definition at line 158 of file qetapp.h.
Referenced by instance(), and QETApp().
|
private |
Definition at line 161 of file qetapp.h.
Referenced by initSystemTray(), systray(), and ~QETApp().
|
private |
Definition at line 162 of file qetapp.h.
Referenced by initSplashScreen(), QETApp(), setSplashScreenStep(), and ~QETApp().
|
staticprivate |
Definition at line 197 of file qetapp.h.
Referenced by commonElementsDir(), and resetUserElementsDir().
|
staticprivate |
Definition at line 198 of file qetapp.h.
Referenced by customElementsDir(), and resetUserElementsDir().
|
staticprivate |
Definition at line 199 of file qetapp.h.
Referenced by customTitleBlockTemplatesDir(), and resetUserElementsDir().
|
private |
Definition at line 163 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 173 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 174 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
staticprivate |
Definition at line 193 of file qetapp.h.
Referenced by registerProject().
|
private |
Whether the application will end without any user interaction.
Definition at line 186 of file qetapp.h.
Referenced by initSplashScreen(), parseArguments(), and QETApp().
|
private |
Comand-line arguments parser.
Definition at line 185 of file qetapp.h.
Referenced by parseArguments(), and QETApp().
|
private |
Definition at line 160 of file qetapp.h.
Referenced by setLanguage().
|
private |
Definition at line 159 of file qetapp.h.
Referenced by setLanguage().
|
private |
Definition at line 164 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 165 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 167 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 169 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 171 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
staticprivate |
Definition at line 192 of file qetapp.h.
Referenced by availableTitleBlockTemplatesCollections(), closeEveryEditor(), project(), projectId(), registeredProjects(), registerProject(), and unregisterProject().
|
private |
Definition at line 166 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 168 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 170 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 172 of file qetapp.h.
Referenced by buildSystemTrayMenu(), and initSystemTray().
|
private |
Definition at line 184 of file qetapp.h.
Referenced by addWindowsListToMenu(), and QETApp().
|
private |
Definition at line 175 of file qetapp.h.
Referenced by setMainWindowVisible().
|
private |
Definition at line 176 of file qetapp.h.
Referenced by setMainWindowVisible().