| 1234567891011121314151617181920212223242526272829303132333435363738394041 |
- #include <gtkmm/widget.h>
- #include <gtkmm/button.h>
- #include <gtkmm/window.h>
- #include <gtkmm/box.h>
- #include <gtkmm/orientable.h>
- #include <iostream>
- #include "strings.hpp"
- #include "config.hpp"
- #include "core_window.hpp"
- #include "lights_list.hpp"
- namespace cx_light {
- core_window::core_window() {
- this->set_title(__(WINDOW_TITLE));
- this->set_default_size(400, 200);
- this->init_default();
- }
- core_window::~core_window() {
- delete this->center;
- }
- void core_window::init_default() {
- this->center = new Gtk::Box();
- this->center->set_orientation(Gtk::Orientation::HORIZONTAL);
- this->set_child(*this->center);
- this->create_lights_list();
- }
- void core_window::create_lights_list() {
- this->lights = new lights_list();
- this->center->append(*this->lights);
- }
- }
|