1 |
/* -*- c++ -*- |
/* -*- c++ -*- |
2 |
* Copyright (C) 2006-2013 Andreas Persson |
* Copyright (C) 2006-2015 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 |
22 |
|
|
23 |
#include <gig.h> |
#include <gig.h> |
24 |
|
|
25 |
|
#include <cairomm/context.h> |
26 |
#include <gtkmm/drawingarea.h> |
#include <gtkmm/drawingarea.h> |
27 |
#include <gtkmm/entry.h> |
#include <gtkmm/entry.h> |
28 |
#include <gtkmm/label.h> |
#include <gtkmm/label.h> |
64 |
|
|
65 |
private: |
private: |
66 |
gig::DimensionRegion* dimreg; |
gig::DimensionRegion* dimreg; |
67 |
|
void draw_one_curve(const Cairo::RefPtr<Cairo::Context>& cr, |
68 |
|
const gig::DimensionRegion* d, |
69 |
|
bool sensitive); |
70 |
}; |
}; |
71 |
|
|
72 |
class DimRegionEdit : public Gtk::Notebook |
class DimRegionEdit : public Gtk::Notebook |
75 |
DimRegionEdit(); |
DimRegionEdit(); |
76 |
virtual ~DimRegionEdit(); |
virtual ~DimRegionEdit(); |
77 |
void set_dim_region(gig::DimensionRegion* d); |
void set_dim_region(gig::DimensionRegion* d); |
78 |
bool set_sample(gig::Sample* sample); |
bool set_sample(gig::Sample* sample, bool copy_sample_unity, bool copy_sample_tune, bool copy_sample_loop); |
79 |
Gtk::Entry* wSample; |
Gtk::Entry* wSample; |
80 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
81 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_changed(); |
183 |
BoolEntry eMSDecode; |
BoolEntry eMSDecode; |
184 |
NumEntryTemp<uint16_t> eSampleStartOffset; |
NumEntryTemp<uint16_t> eSampleStartOffset; |
185 |
NoteEntry eUnityNote; |
NoteEntry eUnityNote; |
186 |
|
ReadOnlyLabelWidget eSampleFormatInfo; |
187 |
|
ReadOnlyLabelWidget eSampleID; |
188 |
NumEntryTemp<int16_t> eFineTune; |
NumEntryTemp<int16_t> eFineTune; |
189 |
NumEntryGain eGain; |
NumEntryGain eGain; |
190 |
BoolEntryPlus6 eGainPlus6; |
BoolEntryPlus6 eGainPlus6; |