parent
079a78d613
commit
e096aba614
@ -0,0 +1,26 @@
|
||||
#include "menu_os.h"
|
||||
|
||||
|
||||
menu_os::menu_os(/* args */)
|
||||
{
|
||||
}
|
||||
|
||||
menu_os::~menu_os()
|
||||
{
|
||||
}
|
||||
|
||||
void menu_os::init() {
|
||||
this->m_box(Gtk::ORIENTATION_VERTICAL);
|
||||
for (auto& [key, value]: map_list_os) {
|
||||
Gtk::Button *button = new Gtk::button();
|
||||
Gtk::Revealer *revealer = new Gtk::Revealer();
|
||||
std::map<std::string, Gtk::struct_menu_os_button_v_2> map_buttons_level_2;
|
||||
|
||||
map_buttons_level_1[key] = struct_menu_os_button{button, revealer}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
void menu_os::crete_menu_level_2(string key, std::map<std::string, Gtk::struct_menu_os_button_v_2> &map_buttons_level_2) {
|
||||
map_buttons_level_2[key] =
|
||||
}
|
||||
@ -0,0 +1,27 @@
|
||||
#include <gtkmm.h>
|
||||
|
||||
class menu_os
|
||||
{
|
||||
private:
|
||||
struct struct_menu_os_button_v_2{
|
||||
Gtk::Button* button;
|
||||
};
|
||||
|
||||
struct struct_menu_os_button{
|
||||
Gtk::Button* button;
|
||||
Gtk::Revealer* revealer;
|
||||
std::map<std::string, Gtk::struct_menu_os_button_v_2> map_buttons_level_2;
|
||||
};
|
||||
std::map<std::string, Gtk::struct_menu_os_button> map_buttons_level_1;
|
||||
std::map <string, vector> map_list_os;
|
||||
Gtk::Box m_box;
|
||||
Gtk::Revealer* level_1;
|
||||
public:
|
||||
menu_os(/* args */);
|
||||
void set_popover(Gtk::Popover *popover);
|
||||
void set_map(std::map <string, vector> map_list_os);
|
||||
void crete_menu_level_2(string key, std::map<std::string, Gtk::struct_menu_os_button_v_2> &map_buttons_level_2);
|
||||
void init();
|
||||
~menu_os();
|
||||
};
|
||||
|
||||
Loading…
Reference in new issue