| 1 |
/* |
| 2 |
* InstrumentSelector.h |
| 3 |
* |
| 4 |
* Created on: 27 Dec 2016 |
| 5 |
* Author: jeremy |
| 6 |
*/ |
| 7 |
|
| 8 |
#ifndef SOURCE_WIDGETS_INSTRUMENTSELECTOR_H_ |
| 9 |
#define SOURCE_WIDGETS_INSTRUMENTSELECTOR_H_ |
| 10 |
|
| 11 |
#include <gtkmm/grid.h> |
| 12 |
#include <gtkmm/label.h> |
| 13 |
#include <gtkmm/button.h> |
| 14 |
|
| 15 |
#include <string> |
| 16 |
|
| 17 |
namespace Widgets |
| 18 |
{ |
| 19 |
|
| 20 |
class InstrumentSelector : public Gtk::Grid |
| 21 |
{ |
| 22 |
|
| 23 |
public: |
| 24 |
|
| 25 |
explicit InstrumentSelector(const std::string& name); |
| 26 |
virtual ~InstrumentSelector() = default; |
| 27 |
|
| 28 |
void SetInstrumentName(const std::string& name) { instrumentName.set_text(name); } |
| 29 |
|
| 30 |
Gtk::Button& GetPreferencesButton() { return preferencesButton; } |
| 31 |
Gtk::Button& GetDeleteButton() { return deleteButton; } |
| 32 |
|
| 33 |
private: |
| 34 |
|
| 35 |
Gtk::Label instrumentName; |
| 36 |
Gtk::Button preferencesButton; |
| 37 |
Gtk::Button deleteButton; |
| 38 |
|
| 39 |
}; |
| 40 |
|
| 41 |
typedef std::shared_ptr<InstrumentSelector> InstrumentSelectorPtr; |
| 42 |
|
| 43 |
} /* namespace Widgets */ |
| 44 |
|
| 45 |
#endif /* SOURCE_WIDGETS_INSTRUMENTSELECTOR_H_ */ |