summaryrefslogtreecommitdiffstats
path: root/src/ClientWindow.hh
blob: 74bd6014728fc7c2e4b7962456a81e844a00fefe (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
31
32
33
34
35
36
#ifndef fooclientwindowhhfoo
#define fooclientwindowhhfoo

#include <gtkmm.h>
#include <libglademm.h>

class ClientWindow;

#include "ServerInfoManager.hh"

class ClientWindow : public Gtk::Window {
public:
    ClientWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
    static ClientWindow* create();

    Gtk::Label *nameLabel,
        *typeidLabel,
        *indexLabel,
        *ownerModuleLabel;

    Gtk::Button *closeButton,
        *toOwnerModuleButton,
        *killButton;

    uint32_t owner_module;
    uint32_t index;
    
    void updateInfo(const ClientInfo &i);

    virtual void onCloseButton();
    virtual void onToOwnerModuleButton();
    virtual bool on_delete_event(GdkEventAny* e);
    virtual void onKillButton();
};

#endif