summaryrefslogtreecommitdiffstats
path: root/SidebarView.h
blob: e9c4c4911809486025cbcff80182fab53e1e3770 (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
#ifndef SIDEBARVIEW_H_
#define SIDEBARVIEW_H_

#include "Sidebar.h"
#include "EditManager.h"


class ToolSelector;

class SidebarView : public Sidebar {
  private:
    GtkWidget *sidebar;
    GtkWidget *labelType, *labelName, *entryName;
    GtkWidget *tableRoomData, *labelArea, *labelPerimeter, *spinButtonHeight;
    GtkWidget *tablePlayerStart, *spinButtonX, *spinButtonY, *spinButtonZ;
    
    EditManager *editManager;
    
    // prevent shallow copy
    SidebarView(const SidebarView &w);
    const SidebarView& operator=(const SidebarView &w);
    
    static void spinButtonChanged(GtkWidget *spinbutton, SidebarView *view);
    
  public:
    SidebarView(EditManager *editManager);
    virtual ~SidebarView();
    
    GtkWidget* getWidget();
    
    void update();
};

#endif /*SIDEBARVIEW_H_*/