aboutsummaryrefslogtreecommitdiff
path: root/include/RoomSettingsWindow.hpp
blob: 9ffd8086ade5ecd452a42724c00fe7612ed53eed (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
#pragma once

#include <gtkmm/grid.h>
#include <gtkmm/entry.h>
#include <gtkmm/label.h>
#include <dchat/Room.hpp>

namespace Gtk
{
    class Paned;
}

namespace dchat
{
    class ChatWindow;

    class RoomSettingsWindow : public Gtk::Grid
    {
    public:
        RoomSettingsWindow(ChatWindow *chatWindow);
        void selectRoom(std::shared_ptr<Room> room);

        void setupLeftPanel(Gtk::Paned *sidePanels);
        void setupRightPanel(Gtk::Paned *sidePanels);
    private:
        ChatWindow *chatWindow;
        Gtk::Entry roomNameEntry;
        Gtk::Label inviteKey;
    };
}