summaryrefslogtreecommitdiffstats
path: root/src/SourceWindow.hh
blob: a8a699bc8c71aa1a0b0a4a38b70d44a0035426d4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
#ifndef foosourcewindowhhfoo
#define foosourcewindowhhfoo

#include <gtkmm.h>
#include <libglademm.h>

class SourceWindow : public Gtk::Window {
public:
    SourceWindow(BaseObjectType* cobject, const Glib::RefPtr<Gnome::Glade::Xml>& refGlade);
    static SourceWindow* create();

    Gtk::Label *nameLabel,
        *descriptionLabel,
        *indexLabel,
        *sampleTypeLabel,
        *ownerModuleLabel,
        *monitorOfSinkLabel,
        *latencyLabel;

    Gtk::Button *closeButton,
        *toParentSinkButton,
        *toOwnerModuleButton,
        *volumeMeterButton;

    uint32_t monitor_of_sink, owner_module;
    Glib::ustring source_name;
    
    void updateInfo(const SourceInfo &i);

    virtual void onCloseButton();
    virtual void onParentSinkButton();
    virtual void onToOwnerModuleButton();
    virtual bool on_delete_event(GdkEventAny* e);
    virtual void onVolumeMeterButton();
};

#endif