22 |
|
|
23 |
#include <gtkmm/drawingarea.h> |
#include <gtkmm/drawingarea.h> |
24 |
#include <gdkmm/colormap.h> |
#include <gdkmm/colormap.h> |
25 |
|
#include <gtkmm/uimanager.h> |
26 |
#include <gdkmm/window.h> |
#include <gdkmm/window.h> |
27 |
|
|
28 |
|
#include <gtkmm/menu.h> |
29 |
|
|
30 |
#include <gig.h> |
#include <gig.h> |
31 |
|
|
32 |
class RegionChooser : public Gtk::DrawingArea |
class RegionChooser : public Gtk::DrawingArea |
50 |
virtual bool on_button_release_event(GdkEventButton* event); |
virtual bool on_button_release_event(GdkEventButton* event); |
51 |
virtual bool on_motion_notify_event(GdkEventMotion* event); |
virtual bool on_motion_notify_event(GdkEventMotion* event); |
52 |
|
|
53 |
// virtual void on_size_allocate(Gtk::Allocation& allocation); |
gig::Region* get_region(int key); |
54 |
|
|
55 |
Glib::RefPtr<Gdk::GC> gc; |
Glib::RefPtr<Gdk::GC> gc; |
56 |
Gdk::Color blue, red, black, white, green, grey1; |
Gdk::Color blue, red, black, white, green, grey1; |
82 |
|
|
83 |
int h1; |
int h1; |
84 |
int width; |
int width; |
85 |
|
|
86 |
|
Gtk::Menu* popup_menu_inside_region; |
87 |
|
Gtk::Menu* popup_menu_outside_region; |
88 |
|
void show_region_properties(); |
89 |
|
void add_region(); |
90 |
|
void delete_region(); |
91 |
|
int new_region_pos; |
92 |
|
|
93 |
|
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
94 |
|
Glib::RefPtr<Gtk::UIManager> uiManager; |
95 |
}; |
}; |
96 |
|
|
97 |
#endif |
#endif |