175 |
StringEntry eSubject; |
StringEntry eSubject; |
176 |
}; |
}; |
177 |
|
|
178 |
|
class SampleProps : public ManagedWindow, |
179 |
|
public PropEditor<gig::Sample> { |
180 |
|
public: |
181 |
|
SampleProps(); |
182 |
|
void set_sample(gig::Sample* sample); |
183 |
|
gig::Sample* get_sample() { return m; } |
184 |
|
void update_name(); |
185 |
|
sigc::signal<void>& signal_name_changed() { |
186 |
|
return sig_name_changed; |
187 |
|
} |
188 |
|
|
189 |
|
// implementation for abstract methods of interface class "ManagedWindow" |
190 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->samplePropsWindowX; } |
191 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->samplePropsWindowY; } |
192 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->samplePropsWindowW; } |
193 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->samplePropsWindowH; } |
194 |
|
|
195 |
|
protected: |
196 |
|
void set_Name(const gig::String& name); |
197 |
|
|
198 |
|
sigc::signal<void> sig_name_changed; |
199 |
|
Gtk::Notebook tabs; |
200 |
|
VBox vbox[3]; |
201 |
|
HButtonBox buttonBox; |
202 |
|
Gtk::Button quitButton; |
203 |
|
|
204 |
|
// tab 1 |
205 |
|
Table table; |
206 |
|
StringEntry eName; |
207 |
|
NoteEntry eUnityNote; |
208 |
|
ReadOnlyLabelWidget eSampleGroup; |
209 |
|
ReadOnlyLabelWidget eSampleFormatInfo; |
210 |
|
ReadOnlyLabelWidget eSampleID; |
211 |
|
ReadOnlyLabelWidget eChecksum; |
212 |
|
NumEntryTemp<uint32_t> eLoopsCount; |
213 |
|
NumEntryTemp<uint32_t> eLoopStart; |
214 |
|
NumEntryTemp<uint32_t> eLoopLength; |
215 |
|
ChoiceEntry<gig::loop_type_t> eLoopType; |
216 |
|
NumEntryTemp<uint32_t> eLoopPlayCount; |
217 |
|
// tab 2 |
218 |
|
Table table2; |
219 |
|
StringEntry eName2; |
220 |
|
StringEntry eCreationDate; |
221 |
|
StringEntryMultiLine eComments; |
222 |
|
StringEntry eProduct; |
223 |
|
StringEntry eCopyright; |
224 |
|
StringEntry eArtists; |
225 |
|
StringEntry eGenre; |
226 |
|
StringEntry eKeywords; |
227 |
|
StringEntry eEngineer; |
228 |
|
StringEntry eTechnician; |
229 |
|
StringEntry eSoftware; |
230 |
|
StringEntry eMedium; |
231 |
|
StringEntry eSource; |
232 |
|
StringEntry eSourceForm; |
233 |
|
StringEntry eCommissioned; |
234 |
|
StringEntry eSubject; |
235 |
|
}; |
236 |
|
|
237 |
class ProgressDialog : public Gtk::Dialog { |
class ProgressDialog : public Gtk::Dialog { |
238 |
public: |
public: |
239 |
ProgressDialog(const Glib::ustring& title, Gtk::Window& parent); |
ProgressDialog(const Glib::ustring& title, Gtk::Window& parent); |
374 |
|
|
375 |
FilePropDialog fileProps; |
FilePropDialog fileProps; |
376 |
InstrumentProps instrumentProps; |
InstrumentProps instrumentProps; |
377 |
|
SampleProps sampleProps; |
378 |
MidiRules midiRules; |
MidiRules midiRules; |
379 |
|
|
380 |
/** |
/** |
568 |
void on_action_quit(); |
void on_action_quit(); |
569 |
void show_instr_props(); |
void show_instr_props(); |
570 |
bool instr_props_set_instrument(); |
bool instr_props_set_instrument(); |
571 |
|
void show_sample_props(); |
572 |
|
bool sample_props_set_sample(); |
573 |
|
void sample_name_changed_by_sample_props(Gtk::TreeModel::iterator& it); |
574 |
void show_midi_rules(); |
void show_midi_rules(); |
575 |
void show_script_slots(); |
void show_script_slots(); |
576 |
void on_action_view_status_bar(); |
void on_action_view_status_bar(); |