49 lines
732 B
C++
49 lines
732 B
C++
#ifndef MAINWINDOW_H
|
|
#define MAINWINDOW_H
|
|
|
|
#include <QMainWindow>
|
|
#include <QColorDialog>
|
|
#include <QListWidgetItem>
|
|
#include <QTime>
|
|
#include <memory>
|
|
|
|
#include<items/item.h>
|
|
|
|
class MainObject;
|
|
|
|
namespace Ui
|
|
{
|
|
class MainWindow;
|
|
}
|
|
|
|
class MainWindow : public QMainWindow
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
explicit MainWindow(MainObject * const mainObject, QWidget *parent = nullptr);
|
|
~MainWindow();
|
|
|
|
private:
|
|
Ui::MainWindow *ui;
|
|
|
|
QColorDialog colorChooser;
|
|
|
|
signals:
|
|
|
|
void sigSave();
|
|
void createdItem(std::shared_ptr<Item> item);
|
|
void sigSetRgb(const QColor color);
|
|
|
|
private slots:
|
|
|
|
//RGB
|
|
void showPowerItemDialog();
|
|
void showItemCreationDialog();
|
|
|
|
public slots:
|
|
|
|
void changeHeaderLableText(QString string);
|
|
};
|
|
|
|
#endif // MAINWINDOW_H
|