17 Ui::CSimpleFilePathParamGuiComp,
18 ifile::IFileNameParam>
24 Ui::CSimpleFilePathParamGuiComp,
28 I_ASSIGN(m_pathLabelAttrPtr,
"PathLabel",
"Label for the file editor",
false,
"Directory");
29 I_ASSIGN(m_startHintAttrPtr,
"StartHint",
"Start hint for the editor",
false,
"<Enter path>");
30 I_ASSIGN(m_fileTypeInfoPtr,
"FileTypeInfo",
"Allows to retrieve optional file type information for file selection dialog",
false,
"FileTypeInfo");
31 I_ASSIGN(m_readOnlyAttrPtr,
"ReadOnly",
"True if read only",
true,
false);
32 I_ASSIGN(m_filesComboAttrPtr,
"FilesComboBox",
"Show combobox with files",
true,
true);
33 I_ASSIGN(m_labelWidthAttrPtr,
"LabelWidth",
"Fixed label width (in pixels)",
false, 100);
34 I_ASSIGN(m_defaultDirPtr,
"DefaultPath",
"Default path to search",
false,
"C:/");
35 I_ASSIGN(m_showBrowseButtonAttrPtr,
"ShowBrowseButton",
"If enabled, the browse button will be shown",
true,
true);
36 I_ASSIGN(m_filePathValidationExpressionAttrPtr,
"ValidationExpression",
"Regular expression used for path validation",
false,
"^[/,\\\\,\\w,\\s-]+");
37 I_ASSIGN(m_useSaveDialogAttrPtr,
"UseSaveDialog",
"Use save dialog instead of open one",
true,
false);
38 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);
58 void SetPathToEditor(
const QString& path)
const;
59 void OnPathEdited(
const QString& path);
60 QString GetPathFromEditor()
const;
61 bool IsLabelNeeded()
const;
66 I_ATTR(
bool, m_readOnlyAttrPtr);
67 I_ATTR(
bool, m_filesComboAttrPtr);
68 I_ATTR(
int, m_labelWidthAttrPtr);
69 I_ATTR(
bool, m_showBrowseButtonAttrPtr);
70 I_ATTR(
bool, m_useSaveDialogAttrPtr);
71 I_ATTR(QString, m_filePathValidationExpressionAttrPtr);
72 I_ATTR(
bool, m_updateOnEveryChangeAttrPtr);