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

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

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

revision 2690 by schoenebeck, Sun Jan 4 18:36:42 2015 UTC revision 3151 by schoenebeck, Fri May 5 18:44:59 2017 UTC
# Line 1  Line 1 
1  /*                                                         -*- c++ -*-  /*                                                         -*- c++ -*-
2   * Copyright (C) 2006-2015 Andreas Persson   * Copyright (C) 2006-2017 Andreas Persson
3   *   *
4   * This program is free software; you can redistribute it and/or   * This program is free software; you can redistribute it and/or
5   * modify it under the terms of the GNU General Public License as   * modify it under the terms of the GNU General Public License as
# Line 20  Line 20 
20  #ifndef GIGEDIT_PARAMEDIT_H  #ifndef GIGEDIT_PARAMEDIT_H
21  #define GIGEDIT_PARAMEDIT_H  #define GIGEDIT_PARAMEDIT_H
22    
23  #include <gig.h>  #ifdef LIBGIG_HEADER_FILE
24    # include LIBGIG_HEADER_FILE(gig.h)
25    #else
26    # include <gig.h>
27    #endif
28    
29  #include <cmath>  #include <cmath>
30    
31  #include <glibmm/convert.h>  #include <glibmm/convert.h>
32    #include <gtkmm/box.h>
33  #include <gtkmm/adjustment.h>  #include <gtkmm/adjustment.h>
34  #include <gtkmm/alignment.h>  #include <gtkmm/alignment.h>
 #include <gtkmm/box.h>  
35  #include <gtkmm/checkbutton.h>  #include <gtkmm/checkbutton.h>
36  #include <gtkmm/comboboxtext.h>  #include <gtkmm/comboboxtext.h>
37  #include <gtkmm/frame.h>  #include <gtkmm/frame.h>
# Line 42  Line 46 
46  #include <gtkmm/tooltips.h>  #include <gtkmm/tooltips.h>
47  #endif  #endif
48    
   
 Glib::ustring gig_to_utf8(const gig::String& gig_string);  
 gig::String gig_from_utf8(const Glib::ustring& utf8_string);  
   
49  int note_value(const Glib::ustring& note);  int note_value(const Glib::ustring& note);
50  Glib::ustring note_str(int note);  Glib::ustring note_str(int note);
51    
# Line 87  protected: Line 87  protected:
87      Gtk::SpinButton spinbutton;      Gtk::SpinButton spinbutton;
88      Gtk::HBox box;      Gtk::HBox box;
89    
90      int round_to_int(double x) {      static int round_to_int(double x) {
91          return int(x < 0.0 ? x - 0.5 : x + 0.5);          return int(x < 0.0 ? x - 0.5 : x + 0.5);
92      }      }
93  public:  public:
# Line 449  private: Line 449  private:
449    
450      void get_key_range(NoteEntry* eKeyRangeLow,      void get_key_range(NoteEntry* eKeyRangeLow,
451                         NoteEntry* eKeyRangeHigh,                         NoteEntry* eKeyRangeHigh,
452                         gig::range_t M::* range) {                         gig::range_t M::* range) const {
453          eKeyRangeLow->set_value((m->*range).low);          eKeyRangeLow->set_value((m->*range).low);
454          eKeyRangeHigh->set_value((m->*range).high);          eKeyRangeHigh->set_value((m->*range).high);
455      }      }

Legend:
Removed from v.2690  
changed lines
  Added in v.3151

  ViewVC Help
Powered by ViewVC