22 Ui::CSimpleFilePathParamGuiComp,
23 ifile::IFileNameParam>
29 Ui::CSimpleFilePathParamGuiComp,
33 I_ASSIGN(m_pathLabelAttrPtr,
"PathLabel",
"Label for the file editor",
false,
"Directory");
34 I_ASSIGN(m_startHintAttrPtr,
"StartHint",
"Start hint for the editor",
false,
"<Enter path>");
35 I_ASSIGN(m_fileTypeInfoPtr,
"FileTypeInfo",
"Allows to retrieve optional file type information for file selection dialog",
false,
"FileTypeInfo");
36 I_ASSIGN(m_filesComboAttrPtr,
"FilesComboBox",
"Show combobox with files",
true,
true);
37 I_ASSIGN(m_labelWidthAttrPtr,
"LabelWidth",
"Fixed label width (in pixels)",
false, 100);
38 I_ASSIGN(m_defaultDirPtr,
"DefaultPath",
"Default path to search",
false,
"C:/");
39 I_ASSIGN(m_showBrowseButtonAttrPtr,
"ShowBrowseButton",
"If enabled, the browse button will be shown",
true,
true);
40 I_ASSIGN(m_filePathValidationExpressionAttrPtr,
"ValidationExpression",
"Regular expression used for path validation",
false,
"^[/,\\\\,\\w,\\s-]+");
41 I_ASSIGN(m_useSaveDialogAttrPtr,
"UseSaveDialog",
"Use save dialog instead of open one",
true,
false);
42 I_ASSIGN(m_updateOnEveryChangeAttrPtr,
"UpdateOnEveryTextChange",
"If set the model will be updated after every text change, else only if Enter pressed or focus lost",
true,
false);
61 void SetPathToEditor(
const QString& path)
const;
62 void OnPathEdited(
const QString& path);
63 QString GetPathFromEditor()
const;
64 bool IsLabelNeeded()
const;
67 I_TEXTATTR(m_pathLabelAttrPtr);
68 I_TEXTATTR(m_startHintAttrPtr);
69 I_ATTR(
bool, m_filesComboAttrPtr);
70 I_ATTR(
int, m_labelWidthAttrPtr);
71 I_ATTR(
bool, m_showBrowseButtonAttrPtr);
72 I_ATTR(
bool, m_useSaveDialogAttrPtr);
73 I_ATTR(QString, m_filePathValidationExpressionAttrPtr);
74 I_ATTR(
bool, m_updateOnEveryChangeAttrPtr);