import dialog

This commit is contained in:
2019-02-12 15:32:09 +01:00
parent ee6bcd5af3
commit 9bc94a0afd
7 changed files with 618 additions and 7 deletions
+67
View File
@@ -14,6 +14,9 @@
#include <QStandardItemModel>
#include <QItemSelection>
#include <QMenu>
#include <QToolBar>
namespace Ui {
class cMainWindow;
@@ -48,6 +51,19 @@ private:
cPictureLibrary m_pictureLibrary; /**< TODO: describe */
cPictureList m_pictureList; /**< TODO: describe */
QMenu* m_lpFileMenu; /*!< Pointer to the file menu */
QToolBar* m_lpFileToolBar; /*!< Pointer to the file toolbar */
QAction* m_lpFileNewAction; /*!< TODO: describe */
QAction* m_lpFileOpenAction; /*!< TODO: describe */
QAction* m_lpFileImportAction; /*!< TODO: describe */
QAction* m_lpFileQuitAction; /*!< TODO: describe */
QAction* m_lpSeparatorRecent; /*!< TODO: describe */
enum { MaxRecentFiles = 5 }; /*!< TODO: describe */
QAction* m_lpRecentFileAction[MaxRecentFiles]; /*!< TODO: describe */
/*!
\brief
@@ -60,6 +76,33 @@ private:
\fn createActions
*/
void createActions();
/*!
\brief
\fn createFileActions
*/
void createFileActions();
/*!
\brief
\fn setCurrentFile
\param szFileName
*/
void setCurrentFile(const QString& szFileName);
/*!
\brief
\fn updateRecentFileActions
*/
void updateRecentFileActions();
/*!
\brief
\fn openRecentFile
*/
void openRecentFile();
/*!
\brief
@@ -77,7 +120,31 @@ protected:
void closeEvent(QCloseEvent* event);
private slots:
/*!
\brief
\param selection
\param previous
\fn onThumbnailSelected
*/
void onThumbnailSelected(const QItemSelection& selection, const QItemSelection& previous);
/*!
\brief
\fn onFileNew
*/
void onFileNew();
/*!
\brief
\fn onFileOpen
*/
void onFileOpen();
/*!
\brief
\fn onFileImport
*/
void onFileImport();
};
#endif // CMAINWINDOW_H