First commit
This commit is contained in:
52
src/frames/mainwindow.h
Normal file
52
src/frames/mainwindow.h
Normal file
@@ -0,0 +1,52 @@
|
||||
#ifndef MAINWINDOW_H
|
||||
#define MAINWINDOW_H
|
||||
|
||||
#include <QMainWindow>
|
||||
#include <QTreeWidgetItem>
|
||||
#include <QBrush>
|
||||
|
||||
#include "../models/priority.h"
|
||||
#include "../models/status.h"
|
||||
#include "../models/board.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui { class MainWindow; }
|
||||
QT_END_NAMESPACE
|
||||
|
||||
class MainWindow : public QMainWindow
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
public:
|
||||
MainWindow(QWidget *parent = nullptr);
|
||||
~MainWindow();
|
||||
|
||||
private slots:
|
||||
void openPreferences();
|
||||
void openAbout();
|
||||
void onNewBoardClick();
|
||||
void onNewTaskClick();
|
||||
void onBoardSelected(int i);
|
||||
void onEditTask(QTreeWidgetItem*);
|
||||
|
||||
private:
|
||||
Ui::MainWindow *ui;
|
||||
|
||||
int selectedBoardIndex = -1;
|
||||
QVector<Priority> priorities;
|
||||
QVector<Status> status;
|
||||
QVector<Board*> boards;
|
||||
|
||||
QVector<Priority> defaultPriorities();
|
||||
QVector<Status> defaultStatus();
|
||||
|
||||
const QString getPriorityLabel(QString uuid);
|
||||
const QString getStatusLabel(QString uuid);
|
||||
|
||||
const QColor getPriorityColor(QString uuid, QColor defaultColor);
|
||||
const QColor getStatusColor(QString uuid, QColor defaultColor);
|
||||
|
||||
void redrawBoardList();
|
||||
void redrawTaskTree();
|
||||
};
|
||||
#endif // MAINWINDOW_H
|
||||
Reference in New Issue
Block a user