33 Q_PROPERTY(QStringList nameFilters READ nameFilters WRITE setNameFilters NOTIFY nameFiltersChanged)
34 Q_PROPERTY(
bool showAllFiles READ showAllFiles WRITE setShowAllFiles NOTIFY showAllFilesChanged)
35 Q_PROPERTY(QString fileName READ fileName NOTIFY fileNameChanged)
36 Q_PROPERTY(QString shortFileName READ shortFileName NOTIFY shortFileNameChanged)
37 Q_PROPERTY(QString defaultSuffix READ defaultSuffix WRITE setDefaultSuffix NOTIFY defaultSuffixChanged)
39 QStringList nameFilters(
void);
40 void setNameFilters(QStringList filters);
42 bool showAllFiles(
void);
43 void setShowAllFiles(
bool value);
45 QString fileName(
void);
46 QString shortFileName(
void);
48 const QString &defaultSuffix() const;
49 void setDefaultSuffix(const QString &newDefaultSuffix);
51 Q_INVOKABLE
void getOpenFileContent(
void);
52 Q_INVOKABLE QString getSaveFileName();
57 QStringList m_nameFilters;
58 bool m_showAllFiles = true;
60 QString m_defaultSuffix;
63 void nameFiltersChanged(QStringList filters);
64 void showAllFilesChanged(
bool value);
65 void fileNameChanged(QString name);
66 void shortFileNameChanged(QString name);
67 void fileContentReady(QString content);
68 void defaultSuffixChanged();