nicer button interactivities
This commit is contained in:
@@ -13,9 +13,9 @@ class BluetoothWidget : public Popover {
|
||||
void setPowerState(bool state);
|
||||
void setIsDiscovering(bool state);
|
||||
|
||||
sigc::signal<void(bool)> powerStateChangedSignal;
|
||||
sigc::signal<void(bool)> isDiscoveringChangedSignal;
|
||||
|
||||
sigc::signal<void()> onPowerStateButtonClickedSignal;
|
||||
sigc::signal<void()> onIsDiscoveringButtonClickedSignal;
|
||||
|
||||
void update();
|
||||
private:
|
||||
bool isPowered = false;
|
||||
@@ -27,5 +27,11 @@ class BluetoothWidget : public Popover {
|
||||
Gtk::Box *deviceList = nullptr;
|
||||
|
||||
Gtk::Button *scanButton = nullptr;
|
||||
Gtk::Button *toggleButton = nullptr;
|
||||
Gtk::Button *powerButton = nullptr;
|
||||
|
||||
|
||||
void onPowerButtonClicked();
|
||||
void onScanButtonClicked();
|
||||
|
||||
void toggleButton(Gtk::Button *button, bool state);
|
||||
};
|
||||
Reference in New Issue
Block a user