summaryrefslogtreecommitdiffstats
path: root/SidebarManager.h
blob: 90fc0cc5c139089671d61aadff4be7a91c386d13 (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
37
38
39
40
41
42
43
44
45
46
47
#ifndef SIDEBARMANAGER_H_
#define SIDEBARMANAGER_H_

#include <gtk/gtk.h>
#include "Sidebar.h"
#include "SidebarToolbox.h"
#include "SidebarView.h"
#include "SidebarAdd.h"
#include "EditManager.h"
#include "ToolSelector.h"
#include "ToolAddPolygon.h"


class Window;


class SidebarManager {
  private:
    GtkWidget *sidebar, *toolLabel, *scrolledWindow, *viewport;
    
    SidebarToolbox sidebarToolbox;
    
    SidebarView sidebarView;
    SidebarAdd sidebarAdd;
    
    Sidebar *activeSidebar;
    
    EditManager *editor;
    
    ToolAddPolygon toolAddPolygon;
    
    // prevent shallow copy
    SidebarManager(const SidebarManager &w);
    const SidebarManager& operator=(const SidebarManager &w);
    
  public:
    SidebarManager(Window *window);
    virtual ~SidebarManager();
    
    GtkWidget *getWidget() {
      return sidebar;
    }
    
    void update();
};

#endif /*SIDEBARMANAGER_H_*/