32 |
#include <gtkmm/treestore.h> |
#include <gtkmm/treestore.h> |
33 |
#include <gtkmm/uimanager.h> |
#include <gtkmm/uimanager.h> |
34 |
#include <gtkmm/window.h> |
#include <gtkmm/window.h> |
35 |
|
#include <gtkmm/statusbar.h> |
36 |
|
#include <gtkmm/image.h> |
37 |
|
|
38 |
#include <sstream> |
#include <sstream> |
39 |
|
|
57 |
public: |
public: |
58 |
InstrumentProps(); |
InstrumentProps(); |
59 |
void set_instrument(gig::Instrument* instrument); |
void set_instrument(gig::Instrument* instrument); |
60 |
sigc::signal<void> signal_instrument_changed(); |
sigc::signal<void>& signal_instrument_changed(); |
61 |
protected: |
protected: |
62 |
Gtk::VBox vbox; |
Gtk::VBox vbox; |
63 |
Gtk::HButtonBox buttonBox; |
Gtk::HButtonBox buttonBox; |
119 |
void load_file(const char* name); |
void load_file(const char* name); |
120 |
void load_instrument(gig::Instrument* instr); |
void load_instrument(gig::Instrument* instr); |
121 |
void file_changed(); |
void file_changed(); |
122 |
|
sigc::signal<void, gig::File*>& signal_file_structure_to_be_changed(); |
123 |
|
sigc::signal<void, gig::File*>& signal_file_structure_changed(); |
124 |
|
sigc::signal<void, std::list<gig::Sample*> >& signal_samples_to_be_removed(); |
125 |
|
sigc::signal<void>& signal_samples_removed(); |
126 |
|
sigc::signal<void, gig::Region*>& signal_region_to_be_changed(); |
127 |
|
sigc::signal<void, gig::Region*>& signal_region_changed(); |
128 |
|
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
129 |
|
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
130 |
|
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed(); |
131 |
|
|
132 |
protected: |
protected: |
133 |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
Glib::RefPtr<Gtk::ActionGroup> actionGroup; |
134 |
Glib::RefPtr<Gtk::UIManager> uiManager; |
Glib::RefPtr<Gtk::UIManager> uiManager; |
135 |
|
|
136 |
|
Gtk::Statusbar m_StatusBar; |
137 |
|
Gtk::Label m_AttachedStateLabel; |
138 |
|
Gtk::Image m_AttachedStateImage; |
139 |
|
|
140 |
RegionChooser m_RegionChooser; |
RegionChooser m_RegionChooser; |
141 |
DimRegionChooser m_DimRegionChooser; |
DimRegionChooser m_DimRegionChooser; |
142 |
|
|
143 |
PropDialog propDialog; |
PropDialog propDialog; |
144 |
InstrumentProps instrumentProps; |
InstrumentProps instrumentProps; |
145 |
|
|
146 |
|
sigc::signal<void, gig::File*> file_structure_to_be_changed_signal; |
147 |
|
sigc::signal<void, gig::File*> file_structure_changed_signal; |
148 |
|
sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal; |
149 |
|
sigc::signal<void> samples_removed_signal; |
150 |
|
sigc::signal<void, gig::Region*> region_to_be_changed_signal; |
151 |
|
sigc::signal<void, gig::Region*> region_changed_signal; |
152 |
|
sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal; |
153 |
|
sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal; |
154 |
|
sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal; |
155 |
|
|
156 |
void on_instrument_selection_change(int index); |
void on_instrument_selection_change(int index); |
157 |
void on_sel_change(); |
void on_sel_change(); |
158 |
void region_changed(); |
void region_changed(); |
227 |
void on_action_file_properties(); |
void on_action_file_properties(); |
228 |
void on_action_quit(); |
void on_action_quit(); |
229 |
void show_instr_props(); |
void show_instr_props(); |
230 |
|
void on_action_view_status_bar(); |
231 |
void on_action_help_about(); |
void on_action_help_about(); |
232 |
|
|
233 |
// sample right-click popup actions |
// sample right-click popup actions |
242 |
|
|
243 |
LoadDialog* load_dialog; |
LoadDialog* load_dialog; |
244 |
Loader* loader; |
Loader* loader; |
245 |
void load_gig(gig::File* gig, const char* filename); |
void load_gig(gig::File* gig, const char* filename, bool isSharedInstrument = false); |
246 |
|
|
247 |
gig::File* file; |
gig::File* file; |
248 |
|
bool file_is_shared; |
249 |
bool file_has_name; |
bool file_has_name; |
250 |
bool file_is_changed; |
bool file_is_changed; |
251 |
std::string filename; |
std::string filename; |
252 |
std::string current_dir; |
std::string current_dir; |
253 |
|
|
254 |
|
void set_file_is_shared(bool); |
255 |
|
|
256 |
bool file_save(); |
bool file_save(); |
257 |
bool file_save_as(); |
bool file_save_as(); |
258 |
bool check_if_savable(); |
bool check_if_savable(); |
275 |
void __clear(); |
void __clear(); |
276 |
|
|
277 |
bool close_confirmation_dialog(); |
bool close_confirmation_dialog(); |
278 |
|
bool leaving_shared_mode_dialog(); |
279 |
|
|
280 |
Gtk::Menu* popup_menu; |
Gtk::Menu* popup_menu; |
281 |
|
|