File: InstrumentSelector.cpp

package info (click to toggle)
exadrums 0.7.0-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 5,728 kB
  • sloc: cpp: 2,880; xml: 165; makefile: 76
file content (38 lines) | stat: -rw-r--r-- 803 bytes parent folder | download | duplicates (2)
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
38
/*
 * InstrumentSelector.cpp
 *
 *  Created on: 27 Dec 2016
 *      Author: jeremy
 */

#include "InstrumentSelector.h"


namespace Widgets
{

	InstrumentSelector::InstrumentSelector(const std::string& name)
	: instrumentName(name), preferencesButton(Gtk::StockID("gtk-preferences")), deleteButton(Gtk::StockID("gtk-remove"))
	{

		this->set_column_homogeneous(true);
		this->set_border_width(4);

		this->attach(instrumentName, 0, 0, 1, 1);
		instrumentName.show();

		this->attach_next_to(preferencesButton, instrumentName, Gtk::PositionType::POS_RIGHT, 1, 1);
		preferencesButton.show();

		deleteButton.set_margin_left(4);
		this->attach_next_to(deleteButton, preferencesButton, Gtk::PositionType::POS_RIGHT, 1, 1);
		deleteButton.show();


		this->show();

		return;
	}


} /* namespace Widgets */