CCIMXDesktop
 
Loading...
Searching...
No Matches
NoteCreatorWindow.h
1#ifndef NOTECREATORWINDOW_H
2#define NOTECREATORWINDOW_H
3
4#include "Noter.h"
5#include <QMainWindow>
6
7namespace Ui {
9}
10
18class NoteCreatorWindow : public QMainWindow {
19 Q_OBJECT
20
21public:
26 explicit NoteCreatorWindow(QWidget* parent = nullptr);
27
32
37 void setOperatingDate(const QDate& date);
38
43 struct Package {
44 QDate date;
45 QColor color;
51 inline void force_reset() {
52 color = QColor();
53 info = {};
54 date = {};
55 }
56 };
57
62 const Package& package() const { return internal_package; }
63
64signals:
69
70private slots:
74 void on_buttonBox_accepted();
75
79 void on_buttonBox_rejected();
80
81private:
82 Ui::NoteCreatorWindow* ui;
83 Package internal_package;
84};
85
86#endif // NOTECREATORWINDOW_H
A window for creating and editing date notes.
Definition NoteCreatorWindow.h:18
void setOperatingDate(const QDate &date)
Sets the operating date.
Definition NoteCreatorWindow.cpp:14
void accept_enqueue()
Emitted when changes are accepted.
~NoteCreatorWindow()
Destructor.
Definition NoteCreatorWindow.cpp:10
const Package & package() const
Gets the current note package.
Definition NoteCreatorWindow.h:62
Contains all data for a note.
Definition NoteCreatorWindow.h:43
NoteInfo info
Definition NoteCreatorWindow.h:46
QColor color
Definition NoteCreatorWindow.h:45
void force_reset()
Resets all package data.
Definition NoteCreatorWindow.h:51
QDate date
Definition NoteCreatorWindow.h:44
Container for note information.
Definition Noter.h:14