diff options
author | Colin Guthrie <cguthrie@mandriva.org> | 2009-06-28 16:38:39 +0100 |
---|---|---|
committer | Colin Guthrie <cguthrie@mandriva.org> | 2009-06-28 16:38:39 +0100 |
commit | f1a23af603dfb250c10f8a4ec6a6f9acbd80d972 (patch) | |
tree | 09cf272b4870b6d33085d2d4b1d9b4ad3dd5aec3 /src/streamwidget.h | |
parent | ac052e1a30d1aeb7c514f9dd4eb8e6fb50382185 (diff) |
Restructure the class inheritance a bit.
This just shuffles around the streamwidget a bit. The RoleWidget child class is the
exception, so try and gear things around SinkInput/SourceOutput widgets more to
save repeating the same code too much.
Diffstat (limited to 'src/streamwidget.h')
-rw-r--r-- | src/streamwidget.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/streamwidget.h b/src/streamwidget.h index 7c052ad..e322fc3 100644 --- a/src/streamwidget.h +++ b/src/streamwidget.h @@ -25,11 +25,13 @@ #include "minimalstreamwidget.h" +class MainWindow; class ChannelWidget; class StreamWidget : public MinimalStreamWidget { public: StreamWidget(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& x); + void init(MainWindow* mainWindow); void setChannelMap(const pa_channel_map &m, bool can_decibel); void setVolume(const pa_cvolume &volume, bool force = false); @@ -53,6 +55,14 @@ public: bool timeoutEvent(); virtual void executeVolumeUpdate(); + virtual void onKill(); + +protected: + MainWindow* mpMainWindow; + + Gtk::Menu contextMenu; + Gtk::MenuItem terminate; + }; #endif |