--- gigedit/trunk/src/gigedit/ReferencesView.h 2016/04/29 14:19:53 2893 +++ gigedit/trunk/src/gigedit/ReferencesView.h 2016/04/30 14:42:14 2894 @@ -1,5 +1,5 @@ /* - Copyright (c) 2014,2015 Christian Schoenebeck + Copyright (c) 2014-2016 Christian Schoenebeck This file is part of "gigedit" and released under the terms of the GNU General Public License version 2. @@ -11,13 +11,14 @@ #include #include #include "wrapLabel.hh" +#include "ManagedWindow.h" /** @brief Sample reference browser dialog. * * Shows a modal dialog with a tree view showing all instruments and their * respective regions which reference the selected sample at least once. */ -class ReferencesView : public Gtk::Dialog { +class ReferencesView : public ManagedDialog { public: ReferencesView(Gtk::Window& parent); void setSample(gig::Sample* sample); @@ -29,6 +30,12 @@ // or should return false on errors. sigc::signal dimension_region_selected; + // implementation for abstract methods of interface class "ManagedDialog" + virtual Settings::Property* windowSettingX() { return &Settings::singleton()->sampleRefsWindowX; } + virtual Settings::Property* windowSettingY() { return &Settings::singleton()->sampleRefsWindowY; } + virtual Settings::Property* windowSettingWidth() { return &Settings::singleton()->sampleRefsWindowW; } + virtual Settings::Property* windowSettingHeight() { return &Settings::singleton()->sampleRefsWindowH; } + protected: gig::Sample* m_sample;