1 |
/* |
/* |
2 |
Copyright (c) 2014,2015 Christian Schoenebeck |
Copyright (c) 2014-2016 Christian Schoenebeck |
3 |
|
|
4 |
This file is part of "gigedit" and released under the terms of the |
This file is part of "gigedit" and released under the terms of the |
5 |
GNU General Public License version 2. |
GNU General Public License version 2. |
11 |
#include <gig.h> |
#include <gig.h> |
12 |
#include <gtkmm.h> |
#include <gtkmm.h> |
13 |
#include "wrapLabel.hh" |
#include "wrapLabel.hh" |
14 |
|
#include "ManagedWindow.h" |
15 |
|
|
16 |
/** @brief Sample reference browser dialog. |
/** @brief Sample reference browser dialog. |
17 |
* |
* |
18 |
* Shows a modal dialog with a tree view showing all instruments and their |
* Shows a modal dialog with a tree view showing all instruments and their |
19 |
* respective regions which reference the selected sample at least once. |
* respective regions which reference the selected sample at least once. |
20 |
*/ |
*/ |
21 |
class ReferencesView : public Gtk::Dialog { |
class ReferencesView : public ManagedDialog { |
22 |
public: |
public: |
23 |
ReferencesView(Gtk::Window& parent); |
ReferencesView(Gtk::Window& parent); |
24 |
void setSample(gig::Sample* sample); |
void setSample(gig::Sample* sample); |
30 |
// or should return false on errors. |
// or should return false on errors. |
31 |
sigc::signal<bool, gig::DimensionRegion*> dimension_region_selected; |
sigc::signal<bool, gig::DimensionRegion*> dimension_region_selected; |
32 |
|
|
33 |
|
// implementation for abstract methods of interface class "ManagedDialog" |
34 |
|
virtual Settings::Property<int>* windowSettingX() { return &Settings::singleton()->sampleRefsWindowX; } |
35 |
|
virtual Settings::Property<int>* windowSettingY() { return &Settings::singleton()->sampleRefsWindowY; } |
36 |
|
virtual Settings::Property<int>* windowSettingWidth() { return &Settings::singleton()->sampleRefsWindowW; } |
37 |
|
virtual Settings::Property<int>* windowSettingHeight() { return &Settings::singleton()->sampleRefsWindowH; } |
38 |
|
|
39 |
protected: |
protected: |
40 |
gig::Sample* m_sample; |
gig::Sample* m_sample; |
41 |
|
|