From 64ab3253562be80e726b3d69e4c3e556b055c965 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 17 Nov 2018 15:20:49 +0100 Subject: Auto reload css on modify, improve design --- include/ChatWindow.hpp | 8 ++++---- include/ResponsivePaned.hpp | 16 ++++++++++++++++ 2 files changed, 20 insertions(+), 4 deletions(-) create mode 100644 include/ResponsivePaned.hpp (limited to 'include') diff --git a/include/ChatWindow.hpp b/include/ChatWindow.hpp index 48bbff5..b0f4001 100644 --- a/include/ChatWindow.hpp +++ b/include/ChatWindow.hpp @@ -5,10 +5,10 @@ #include "RoomNotificationsWindow.hpp" #include #include -#include +#include #include #include -#include +#include "ResponsivePaned.hpp" #include #include #include @@ -42,7 +42,7 @@ namespace dchat Window *window; private: void setupTopbar(); - void setupLeftPanel(Gtk::Paned *sidePanels); + void setupLeftPanel(Gtk::ResponsivePaned *sidePanels); void setupMessageArea(Gtk::Grid *rightPanel); void setupChatInput(Gtk::Grid *rightPanel); @@ -61,7 +61,7 @@ namespace dchat { Gtk::Grid *leftPanelUsersLayout; Gtk::Grid *messageAreaLayout; - Gtk::ToggleButton *button; + Gtk::RadioButton *button; }; odhtdb::MapHash roomDataById; diff --git a/include/ResponsivePaned.hpp b/include/ResponsivePaned.hpp new file mode 100644 index 0000000..8f62791 --- /dev/null +++ b/include/ResponsivePaned.hpp @@ -0,0 +1,16 @@ +#ifndef RESPONSIVE_PANED_HPP +#define RESPONSIVE_PANED_HPP + +#include + +namespace Gtk +{ + class ResponsivePaned : public Paned + { + public: + explicit ResponsivePaned(Orientation orientation = ORIENTATION_HORIZONTAL); + virtual ~ResponsivePaned() {} + }; +} + +#endif // RESPONSIVE_PANED_HPP \ No newline at end of file -- cgit v1.2.3