summaryrefslogtreecommitdiffstats
path: root/src/Instance.h
blob: 4517cafd8bfe983054566a60b313525f85220eba (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
#ifndef ZOOMEDIT_INSTANCE_H_
#define ZOOMEDIT_INSTANCE_H_

#include <gtkmm/main.h>
#include <libglademm/xml.h>
#include "Gui/Window.h"

namespace ZoomEdit {

class Instance {
  public:
    virtual ~Instance();
    
    static bool create();
    
  private:
    static guint instances;
    
    Glib::RefPtr<Gnome::Glade::Xml> xml;
    Gui::Window *window;
    
    Instance();
    
    void destroy();
    
    // Prevent shallow copy
    Instance(const Instance &o);
    const Instance& operator=(const Instance &o);
};

}

#endif /*ZOOMEDIT_INSTANCE_H_*/