/[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 3157 by schoenebeck, Mon May 8 17:30:10 2017 UTC revision 3197 by schoenebeck, Sat May 20 17:15:36 2017 UTC
# Line 244  protected: Line 244  protected:
244      InstrumentProps instrumentProps;      InstrumentProps instrumentProps;
245      MidiRules midiRules;      MidiRules midiRules;
246    
247        /**
248         * Ensures that the 2 signals MainWindow::dimreg_to_be_changed_signal and
249         * MainWindowv::dimreg_changed_signal are always triggered correctly as a
250         * pair. It behaves similar to a "mutex lock guard" design pattern.
251         */
252        class DimRegionChangeGuard : public SignalGuard<gig::DimensionRegion*> {
253        public:
254            DimRegionChangeGuard(MainWindow* w, gig::DimensionRegion* pDimReg) :
255            SignalGuard<gig::DimensionRegion*>(w->dimreg_to_be_changed_signal, w->dimreg_changed_signal, pDimReg)
256            {
257            }
258        };
259    
260      sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;      sigc::signal<void, gig::File*> file_structure_to_be_changed_signal;
261      sigc::signal<void, gig::File*> file_structure_changed_signal;      sigc::signal<void, gig::File*> file_structure_changed_signal;
262      sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;      sigc::signal<void, std::list<gig::Sample*> > samples_to_be_removed_signal;
# Line 278  protected: Line 291  protected:
291      void setupMacros();      void setupMacros();
292      void onMacrosSetupChanged(const std::vector<Serialization::Archive>& macros);      void onMacrosSetupChanged(const std::vector<Serialization::Archive>& macros);
293      void applyMacro(Serialization::Archive& macro);      void applyMacro(Serialization::Archive& macro);
294        void onScriptSlotsModified(gig::Instrument* pInstrument);
295    
296      void dimreg_all_dimregs_toggled();      void dimreg_all_dimregs_toggled();
297      gig::Instrument* get_instrument();      gig::Instrument* get_instrument();
# Line 290  protected: Line 304  protected:
304            add(m_col_nr);            add(m_col_nr);
305            add(m_col_name);            add(m_col_name);
306            add(m_col_instr);            add(m_col_instr);
307              add(m_col_scripts);
308          }          }
309    
310          Gtk::TreeModelColumn<int> m_col_nr;          Gtk::TreeModelColumn<int> m_col_nr;
311          Gtk::TreeModelColumn<Glib::ustring> m_col_name;          Gtk::TreeModelColumn<Glib::ustring> m_col_name;
312          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;          Gtk::TreeModelColumn<gig::Instrument*> m_col_instr;
313            Gtk::TreeModelColumn<Glib::ustring> m_col_scripts;
314      } m_Columns;      } m_Columns;
315    
316      Gtk::VBox m_VBox;      Gtk::VBox m_VBox;

Legend:
Removed from v.3157  
changed lines
  Added in v.3197

  ViewVC Help
Powered by ViewVC