/[svn]/gigedit/trunk/src/gigedit/mainwindow.h
ViewVC logotype

Diff of /gigedit/trunk/src/gigedit/mainwindow.h

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1261 by persson, Thu Jul 5 17:12:20 2007 UTC revision 1339 by schoenebeck, Mon Sep 10 19:56:26 2007 UTC
# Line 55  class InstrumentProps : public Gtk::Wind Line 55  class InstrumentProps : public Gtk::Wind
55  public:  public:
56      InstrumentProps();      InstrumentProps();
57      void set_instrument(gig::Instrument* instrument);      void set_instrument(gig::Instrument* instrument);
58      sigc::signal<void> signal_instrument_changed();      sigc::signal<void>& signal_instrument_changed();
59  protected:  protected:
60      Gtk::VBox vbox;      Gtk::VBox vbox;
61      Gtk::HButtonBox buttonBox;      Gtk::HButtonBox buttonBox;
# Line 74  protected: Line 74  protected:
74      NoteEntry eDimensionKeyRangeLow;      NoteEntry eDimensionKeyRangeLow;
75      NoteEntry eDimensionKeyRangeHigh;      NoteEntry eDimensionKeyRangeHigh;
76      int rowno;      int rowno;
77        void add_prop(BoolEntry& prop);
78        void add_prop(BoolEntryPlus6& prop);
79      void add_prop(LabelWidget& prop);      void add_prop(LabelWidget& prop);
80      void key_range_low_changed();      void key_range_low_changed();
81      void key_range_high_changed();      void key_range_high_changed();
# Line 115  public: Line 117  public:
117      void load_file(const char* name);      void load_file(const char* name);
118      void load_instrument(gig::Instrument* instr);      void load_instrument(gig::Instrument* instr);
119      void file_changed();      void file_changed();
120        sigc::signal<void, gig::File*>& signal_file_structure_to_be_changed();
121        sigc::signal<void, gig::File*>& signal_file_structure_changed();
122        sigc::signal<void, std::list<gig::Sample*> >& signal_samples_to_be_removed();
123        sigc::signal<void>& signal_samples_removed();
124        sigc::signal<void, gig::Region*>& signal_region_to_be_changed();
125        sigc::signal<void, gig::Region*>& signal_region_changed();
126        sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed();
127        sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed();
128        sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/>& signal_sample_ref_changed();
129    
130  protected:  protected:
131      Glib::RefPtr<Gtk::ActionGroup> actionGroup;      Glib::RefPtr<Gtk::ActionGroup> actionGroup;
# Line 126  protected: Line 137  protected:
137      PropDialog propDialog;      PropDialog propDialog;
138      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
139    
140        sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;
141        sigc::signal<void, gig::File*> file_structure_changed_signal;
142        sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;
143        sigc::signal<void> samples_removed_signal;
144        sigc::signal<void, gig::Region*> region_to_be_changed_signal;
145        sigc::signal<void, gig::Region*> region_changed_signal;
146        sigc::signal<void, gig::DimensionRegion*> dimreg_to_be_changed_signal;
147        sigc::signal<void, gig::DimensionRegion*> dimreg_changed_signal;
148        sigc::signal<void, gig::Sample*/*old*/, gig::Sample*/*new*/> sample_ref_changed_signal;
149    
150      void on_instrument_selection_change(int index);      void on_instrument_selection_change(int index);
151      void on_sel_change();      void on_sel_change();
152      void region_changed();      void region_changed();
# Line 224  protected: Line 245  protected:
245    
246      bool file_save();      bool file_save();
247      bool file_save_as();      bool file_save_as();
248        bool check_if_savable();
249    
250      void on_button_release(GdkEventButton* button);      void on_button_release(GdkEventButton* button);
251        void on_sample_treeview_drag_begin(const Glib::RefPtr<Gdk::DragContext>& context);
252      void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,      void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
253                                            Gtk::SelectionData& selection_data, guint, guint);                                            Gtk::SelectionData& selection_data, guint, guint);
254      void on_sample_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context,      void on_sample_label_drop_drag_data_received(const Glib::RefPtr<Gdk::DragContext>& context,
255                                                   int, int,                                                   int, int,
256                                                   const Gtk::SelectionData& selection_data,                                                   const Gtk::SelectionData& selection_data,
257                                                   guint, guint time);                                                   guint, guint time);
258    
259      void sample_name_changed(const Gtk::TreeModel::Path& path,      void sample_name_changed(const Gtk::TreeModel::Path& path,
260                               const Gtk::TreeModel::iterator& iter);                               const Gtk::TreeModel::iterator& iter);
261      void instrument_name_changed(const Gtk::TreeModel::Path& path,      void instrument_name_changed(const Gtk::TreeModel::Path& path,
# Line 245  protected: Line 269  protected:
269      Gtk::Menu* popup_menu;      Gtk::Menu* popup_menu;
270    
271      bool on_delete_event(GdkEventAny* event);      bool on_delete_event(GdkEventAny* event);
272    
273        bool first_call_to_drag_data_get;
274  };  };
275    
276  #endif  #endif

Legend:
Removed from v.1261  
changed lines
  Added in v.1339

  ViewVC Help
Powered by ViewVC