forked from qt-creator/qt-creator
Core: Define some more constants for the wizards
Define constants for the different kinds of wizards as well as to force override of files. Change-Id: Ic4bf49bdb8a0b7469ddcab12d61ed8f0498c7d87 Reviewed-by: Daniel Teske <daniel.teske@digia.com> Reviewed-by: Orgad Shaneh <orgads@gmail.com>
This commit is contained in:
@@ -222,6 +222,10 @@ const char ICON_INFO[] = ":/core/images/info.png";
|
|||||||
|
|
||||||
const char WIZARD_CATEGORY_QT[] = "R.Qt";
|
const char WIZARD_CATEGORY_QT[] = "R.Qt";
|
||||||
const char WIZARD_TR_CATEGORY_QT[] = QT_TRANSLATE_NOOP("Core", "Qt");
|
const char WIZARD_TR_CATEGORY_QT[] = QT_TRANSLATE_NOOP("Core", "Qt");
|
||||||
|
const char WIZARD_KIND_UNKNOWN[] = "unknown";
|
||||||
|
const char WIZARD_KIND_PROJECT[] = "project";
|
||||||
|
const char WIZARD_KIND_CLASS[] = "class";
|
||||||
|
const char WIZARD_KIND_FILE[] = "file";
|
||||||
|
|
||||||
const char SETTINGS_CATEGORY_CORE[] = "A.Core";
|
const char SETTINGS_CATEGORY_CORE[] = "A.Core";
|
||||||
const char SETTINGS_CATEGORY_CORE_ICON[] = ":/core/images/category_core.png";
|
const char SETTINGS_CATEGORY_CORE_ICON[] = ":/core/images/category_core.png";
|
||||||
|
|||||||
@@ -50,7 +50,9 @@ public:
|
|||||||
* see BaseFileWizard::writeFiles() */
|
* see BaseFileWizard::writeFiles() */
|
||||||
CustomGeneratorAttribute = 0x4,
|
CustomGeneratorAttribute = 0x4,
|
||||||
/* File exists and the user indicated that he wants to keep it */
|
/* File exists and the user indicated that he wants to keep it */
|
||||||
KeepExistingFileAttribute = 0x8
|
KeepExistingFileAttribute = 0x8,
|
||||||
|
/* Force overwriting of a file without asking the user to keep it */
|
||||||
|
ForceOverwrite = 0x10
|
||||||
};
|
};
|
||||||
Q_DECLARE_FLAGS(Attributes, Attribute)
|
Q_DECLARE_FLAGS(Attributes, Attribute)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user