28 Ui::CFileNameParamGuiComp,
29 ifile::IFileNameParam>
35 Ui::CFileNameParamGuiComp,
39 I_ASSIGN(m_pathLabelAttrPtr,
"PathLabel",
"Label for the file editor",
false,
"Directory");
40 I_ASSIGN(m_startHintAttrPtr,
"StartHint",
"Start hint for the editor",
false,
"<Enter path>");
41 I_ASSIGN(m_fileTypeInfoPtr,
"FileTypeInfo",
"Allows to retrieve optional file type information for file selection dialog",
false,
"FileTypeInfo");
42 I_ASSIGN(m_readOnlyAttrPtr,
"ReadOnly",
"True if read only",
true,
false);
43 I_ASSIGN(m_filesComboAttrPtr,
"FilesComboBox",
"Show combobox with files",
true,
true);
44 I_ASSIGN(m_labelWidthAttrPtr,
"LabelWidth",
"Fixed label width (in pixels)",
false, 100);
45 I_ASSIGN(m_defaultDirPtr,
"DefaultPath",
"Default path to search",
false,
"C:/");
46 I_ASSIGN(m_showBrowseButtonAttrPtr,
"ShowBrowseButton",
"If enabled, the browse button will be shown",
true,
true);
66 void SetPathToEditor(
const QString& path)
const;
67 void MakeSelectionHint(
const QString& text)
const;
68 QIcon GetFileIcon(
const QString& filePath)
const;
69 void OnPathEdited(
const QString& path)
const;
70 QString GetPathFromEditor()
const;
71 bool IsLabelNeeded()
const;
76 I_ATTR(
bool, m_readOnlyAttrPtr);
77 I_ATTR(
bool, m_filesComboAttrPtr);
78 I_ATTR(
int, m_labelWidthAttrPtr);
79 I_ATTR(
bool,m_showBrowseButtonAttrPtr);
83 QFileSystemModel m_directoryModel;