/[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 1225 by schoenebeck, Sun Jun 10 10:56:11 2007 UTC revision 1262 by persson, Sun Jul 22 15:07:08 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();
59  protected:  protected:
60      Gtk::VBox vbox;      Gtk::VBox vbox;
61      Gtk::HButtonBox buttonBox;      Gtk::HButtonBox buttonBox;
62      Gtk::Button quitButton;      Gtk::Button quitButton;
63      Gtk::Table table;      Gtk::Table table;
     Gtk::Label label[10];  
     Gtk::Entry entry[8];  
     Gtk::CheckButton check[2];  
64      StringEntry eName;      StringEntry eName;
65      BoolEntry eIsDrum;      BoolEntry eIsDrum;
66      NumEntryTemp<uint16_t> eMIDIBank;      NumEntryTemp<uint16_t> eMIDIBank;
# Line 76  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();
82        sigc::signal<void> instrument_changed;
83  };  };
84    
85  class LoadDialog : public Gtk::Dialog {  class LoadDialog : public Gtk::Dialog {
# Line 115  public: Line 116  public:
116      virtual ~MainWindow();      virtual ~MainWindow();
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();
120    
121  protected:  protected:
122      Glib::RefPtr<Gtk::ActionGroup> actionGroup;      Glib::RefPtr<Gtk::ActionGroup> actionGroup;
# Line 198  protected: Line 200  protected:
200      void on_action_file_save();      void on_action_file_save();
201      void on_action_file_save_as();      void on_action_file_save_as();
202      void on_action_file_properties();      void on_action_file_properties();
203        void on_action_quit();
204      void show_instr_props();      void show_instr_props();
205      void on_action_help_about();      void on_action_help_about();
206    
# Line 216  protected: Line 219  protected:
219      void load_gig(gig::File* gig, const char* filename);      void load_gig(gig::File* gig, const char* filename);
220    
221      gig::File* file;      gig::File* file;
222        bool file_has_name;
223        bool file_is_changed;
224        std::string filename;
225        std::string current_dir;
226    
227        bool file_save();
228        bool file_save_as();
229    
230      void on_button_release(GdkEventButton* button);      void on_button_release(GdkEventButton* button);
231      void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,      void on_sample_treeview_drag_data_get(const Glib::RefPtr<Gdk::DragContext>&,
# Line 232  protected: Line 242  protected:
242      void __import_queued_samples();      void __import_queued_samples();
243      void __clear();      void __clear();
244    
245        bool close_confirmation_dialog();
246    
247      Gtk::Menu* popup_menu;      Gtk::Menu* popup_menu;
248    
249        bool on_delete_event(GdkEventAny* event);
250  };  };
251    
252  #endif  #endif

Legend:
Removed from v.1225  
changed lines
  Added in v.1262

  ViewVC Help
Powered by ViewVC