From f1a23af603dfb250c10f8a4ec6a6f9acbd80d972 Mon Sep 17 00:00:00 2001 From: Colin Guthrie Date: Sun, 28 Jun 2009 16:38:39 +0100 Subject: 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. --- src/streamwidget.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'src/streamwidget.h') 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& 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 -- cgit