initial commit

This commit is contained in:
2019-10-28 17:23:29 +01:00
parent 0896dcae4d
commit 0caaf37ead
713 changed files with 6243 additions and 12 deletions
+37 -2
View File
@@ -1,7 +1,15 @@
#ifndef CMAINWINDOW_H
#define CMAINWINDOW_H
#include "csplashscreen.h"
#include <QMainWindow>
#include <QCloseEvent>
#include <QStandardItemModel>
#include <QMimeDatabase>
QT_BEGIN_NAMESPACE
namespace Ui { class cMainWindow; }
@@ -12,10 +20,37 @@ class cMainWindow : public QMainWindow
Q_OBJECT
public:
cMainWindow(QWidget *parent = nullptr);
cMainWindow(cSplashScreen* lpSplashScreen, QWidget *parent = nullptr);
~cMainWindow();
private:
Ui::cMainWindow *ui;
Ui::cMainWindow* ui;
cSplashScreen* m_lpSplashScreen; /*!< TODO: describe */
QStandardItemModel* m_lpFileListModel;
QMimeDatabase m_mimeDB;
void initUI();
void createActions();
void createFileActions();
void createContextActions();
void addPath(const QString& path);
void addFile(const QString& file);
bool isInList(const QString& file);
private slots:
void onAddFile();
void onAddFolder();
void onRemoveSelected();
void onClearList();
void onConvert();
void onAddEntry(const QString& file);
protected:
void closeEvent(QCloseEvent* event);
};
#endif // CMAINWINDOW_H