2024-08-26 04:29:16 +00:00
|
|
|
module;
|
|
|
|
#include <gtkmm.h>
|
|
|
|
export module larra.main_window;
|
2024-08-26 14:22:15 +00:00
|
|
|
import larra.application;
|
2024-08-26 04:29:16 +00:00
|
|
|
|
2024-08-26 11:22:03 +00:00
|
|
|
namespace larra {
|
|
|
|
|
|
|
|
export struct MainWindow : Gtk::ApplicationWindow {
|
|
|
|
Gtk::Box main;
|
2024-08-26 14:22:15 +00:00
|
|
|
Application& app;
|
|
|
|
MainWindow(Application& app) : app(app) {
|
2024-08-26 11:22:03 +00:00
|
|
|
this->set_title("Larra");
|
2024-08-26 14:22:15 +00:00
|
|
|
Gtk::Box leftPanel{Gtk::Orientation::VERTICAL};
|
|
|
|
leftPanel.set_halign(Gtk::Align::START);
|
|
|
|
leftPanel.set_expand(true);
|
|
|
|
Gtk::Box accounts{Gtk::Orientation::VERTICAL};
|
|
|
|
leftPanel.append(accounts);
|
|
|
|
this->main.append(leftPanel);
|
2024-08-26 11:22:03 +00:00
|
|
|
this->set_child(this->main);
|
|
|
|
}
|
2024-08-26 04:29:16 +00:00
|
|
|
};
|
2024-08-26 11:22:03 +00:00
|
|
|
|
|
|
|
} // namespace larra
|