mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-06 03:23:19 +00:00
Rework mirai core
This commit is contained in:
parent
f885d355cd
commit
36a2fe9220
62 changed files with 27689 additions and 765 deletions
|
@ -8,7 +8,7 @@
|
|||
|
||||
#include "appwindow.h"
|
||||
#include "mirai-core/Mirai.h"
|
||||
#include "mirai-core/TasksView.h"
|
||||
#include "mirai-core/View.h"
|
||||
#include "slint.h"
|
||||
|
||||
class UiState
|
||||
|
@ -20,13 +20,10 @@ class UiState
|
|||
void run();
|
||||
|
||||
void reloadSources();
|
||||
void reloadTags();
|
||||
void reloadTasks();
|
||||
|
||||
private:
|
||||
void setupCallbacks();
|
||||
void setupTaskWindowCallbacks();
|
||||
void setupEventWindowCallbacks();
|
||||
void setupUtilsCallbacks();
|
||||
|
||||
std::shared_ptr<slint::VectorModel<Source>> sources_;
|
||||
|
@ -35,9 +32,7 @@ class UiState
|
|||
std::shared_ptr<slint::VectorModel<TaskData>> unscheduledTasks_;
|
||||
|
||||
slint::ComponentHandle<AppWindow> mainWindow_ = AppWindow::create();
|
||||
slint::ComponentHandle<TaskWindow> taskWindow_ = TaskWindow::create();
|
||||
slint::ComponentHandle<EventWindow> eventWindow_ = EventWindow::create();
|
||||
|
||||
mirai::Mirai *miraiInstance_;
|
||||
mirai::TasksView view_;
|
||||
mirai::View view_;
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue