diff options
author | Hong Jen Yee (PCMan) | 2016-08-30 20:34:56 +0200 |
---|---|---|
committer | Hong Jen Yee (PCMan) | 2016-08-30 20:34:56 +0200 |
commit | 61af7d7c61c77c2663100a080392980ff646c6d3 (patch) | |
tree | 9da13485b61abd9a483a9add08965ec9feaa3044 /src/mainwindow.h | |
parent | mainwindow: force icons to have sane size (diff) | |
download | pavucontrol-slx-61af7d7c61c77c2663100a080392980ff646c6d3.tar.gz pavucontrol-slx-61af7d7c61c77c2663100a080392980ff646c6d3.tar.xz pavucontrol-slx-61af7d7c61c77c2663100a080392980ff646c6d3.zip |
Start working on a Qt5 port.
Diffstat (limited to 'src/mainwindow.h')
-rw-r--r-- | src/mainwindow.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/src/mainwindow.h b/src/mainwindow.h index 30e1ad0..1fb8858 100644 --- a/src/mainwindow.h +++ b/src/mainwindow.h @@ -27,6 +27,9 @@ # include <pulse/ext-device-restore.h> #endif +#include <QDialog> +#include "ui_mainwindow.h" + class CardWidget; class SinkWidget; class SourceWidget; @@ -34,10 +37,12 @@ class SinkInputWidget; class SourceOutputWidget; class RoleWidget; -class MainWindow : public Gtk::Window { +class MainWindow : public QDialog { + Q_OBJECT public: - MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& x); - static MainWindow* create(bool maximize); + MainWindow(); + // MainWindow(BaseObjectType* cobject, const Glib::RefPtr<Gtk::Builder>& x); + // static MainWindow* create(bool maximize); virtual ~MainWindow(); void updateCard(const pa_card_info &info); @@ -63,20 +68,20 @@ public: void removeAllWidgets(); void setConnectingMessage(const char *string = NULL); - +#if 0 Gtk::Notebook *notebook; Gtk::VBox *streamsVBox, *recsVBox, *sinksVBox, *sourcesVBox, *cardsVBox; Gtk::Label *noStreamsLabel, *noRecsLabel, *noSinksLabel, *noSourcesLabel, *noCardsLabel, *connectingLabel; Gtk::ComboBox *sinkInputTypeComboBox, *sourceOutputTypeComboBox, *sinkTypeComboBox, *sourceTypeComboBox; Gtk::CheckButton *showVolumeMetersCheckButton; - +#endif std::map<uint32_t, CardWidget*> cardWidgets; std::map<uint32_t, SinkWidget*> sinkWidgets; std::map<uint32_t, SourceWidget*> sourceWidgets; std::map<uint32_t, SinkInputWidget*> sinkInputWidgets; std::map<uint32_t, SourceOutputWidget*> sourceOutputWidgets; - std::map<uint32_t, char*> clientNames; + std::map<uint32_t, char*> clientNames; SinkInputType showSinkInputType; SinkType showSinkType; SourceOutputType showSourceOutputType; @@ -94,7 +99,7 @@ public: pa_stream* createMonitorStreamForSource(uint32_t source_idx, uint32_t stream_idx, bool suspend); void createMonitorStreamForSinkInput(SinkInputWidget* w, uint32_t sink_idx); - void setIconFromProplist(Gtk::Image *icon, pa_proplist *l, const char *name); + // void setIconFromProplist(Gtk::Image *icon, pa_proplist *l, const char *name); RoleWidget *eventRoleWidget; @@ -107,11 +112,12 @@ public: protected: virtual void on_realize(); - virtual bool on_key_press_event(GdkEventKey* event); + // virtual bool on_key_press_event(GdkEventKey* event); private: gboolean m_connected; gchar* m_config_filename; + Ui::MainWindow ui; }; |