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 |
20 |
#ifndef GIGEDIT_DIMREGIONEDIT_H |
#ifndef GIGEDIT_DIMREGIONEDIT_H |
21 |
#define GIGEDIT_DIMREGIONEDIT_H |
#define GIGEDIT_DIMREGIONEDIT_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 <cairomm/context.h> |
#include <cairomm/context.h> |
30 |
|
#include <gtkmm/box.h> |
31 |
#include <gtkmm/drawingarea.h> |
#include <gtkmm/drawingarea.h> |
32 |
#include <gtkmm/entry.h> |
#include <gtkmm/entry.h> |
33 |
#include <gtkmm/label.h> |
#include <gtkmm/label.h> |
81 |
virtual ~DimRegionEdit(); |
virtual ~DimRegionEdit(); |
82 |
void set_dim_region(gig::DimensionRegion* d); |
void set_dim_region(gig::DimensionRegion* d); |
83 |
bool set_sample(gig::Sample* sample, bool copy_sample_unity, bool copy_sample_tune, bool copy_sample_loop); |
bool set_sample(gig::Sample* sample, bool copy_sample_unity, bool copy_sample_tune, bool copy_sample_loop); |
84 |
|
bool set_sample(gig::DimensionRegion* dimreg, gig::Sample* sample, bool copy_sample_unity, bool copy_sample_tune, bool copy_sample_loop); |
85 |
Gtk::Entry* wSample; |
Gtk::Entry* wSample; |
86 |
Gtk::Button* buttonNullSampleReference; |
Gtk::Button* buttonNullSampleReference; |
87 |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
sigc::signal<void, gig::DimensionRegion*>& signal_dimreg_to_be_changed(); |
192 |
BoolEntry eMSDecode; |
BoolEntry eMSDecode; |
193 |
NumEntryTemp<uint16_t> eSampleStartOffset; |
NumEntryTemp<uint16_t> eSampleStartOffset; |
194 |
NoteEntry eUnityNote; |
NoteEntry eUnityNote; |
195 |
|
ReadOnlyLabelWidget eSampleGroup; |
196 |
ReadOnlyLabelWidget eSampleFormatInfo; |
ReadOnlyLabelWidget eSampleFormatInfo; |
197 |
ReadOnlyLabelWidget eSampleID; |
ReadOnlyLabelWidget eSampleID; |
198 |
|
ReadOnlyLabelWidget eChecksum; |
199 |
NumEntryTemp<int16_t> eFineTune; |
NumEntryTemp<int16_t> eFineTune; |
200 |
NumEntryGain eGain; |
NumEntryGain eGain; |
201 |
BoolEntryPlus6 eGainPlus6; |
BoolEntryPlus6 eGainPlus6; |
281 |
sigc::mem_fun(widget, &C::get_value))); |
sigc::mem_fun(widget, &C::get_value))); |
282 |
} |
} |
283 |
|
|
284 |
// loop through all dimregions being edited ant set a value in |
// loop through all dimregions being edited and set a value in |
285 |
// each of them |
// each of them |
286 |
template<typename T> |
template<typename T> |
287 |
void set_many(T value, |
void set_many(T value, |