29 Q_PROPERTY(
int maxCount READ maxCount WRITE setMaxCount)
30 Q_PROPERTY(QString format READ format WRITE setFormat)
36 CRecentMenu(
const QString & title, QWidget * parent = 0);
38 CRecentMenu(
const QString & title,
const QIcon& icon, QWidget * parent = 0);
48 void setFormat(
const QString &format);
51 const QString & format()
const;
54 bool disableSaveState(
bool disable);
63 QByteArray saveState()
const;
72 bool restoreState(
const QByteArray &state);
76 void addRecentFile(
const QString &fileName,
const QString& title = QString());
82 void setMaxCount(
int);
89 void menuTriggered(QAction*);
90 void updateRecentFileActions();
104 _Content(
const QString& title,
const QString& file) {
110 m_szTitle = c.m_szTitle;
111 m_szFile = c.m_szFile;
113 bool operator==(
const _Content& c)
const {
114 if(m_szFile == c.m_szFile && m_szTitle == c.m_szTitle)
123 friend QDataStream & operator<< (QDataStream& d,
const _Content& image);
124 friend QDataStream & operator>> (QDataStream& d,
_Content& image);
126 QList<_Content> m_OpenContent;
128 bool m_DisableSaveState;