mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 00:34:59 +01:00
extend Triggerbox GUI with a window (for now)
This commit is contained in:
parent
aed9adceee
commit
f00e5f3c16
2 changed files with 24 additions and 2 deletions
|
|
@ -16,6 +16,7 @@
|
|||
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
||||
*/
|
||||
|
||||
#include "pbd/i18n.h"
|
||||
#include "ardour/triggerbox.h"
|
||||
|
||||
#include "gtkmm2ext/utils.h"
|
||||
|
|
@ -74,14 +75,14 @@ TriggerBoxUI::build ()
|
|||
Trigger* t;
|
||||
size_t n = 0;
|
||||
|
||||
clear_items (true);
|
||||
// clear_items (true);
|
||||
|
||||
while (true) {
|
||||
t = _triggerbox.trigger (n);
|
||||
if (!t) {
|
||||
break;
|
||||
}
|
||||
|
||||
std::cerr << "NEW TE for trigger " << n << std::endl;
|
||||
(void) new TriggerEntry (this, *t);
|
||||
}
|
||||
}
|
||||
|
|
@ -92,3 +93,14 @@ TriggerBoxWidget::TriggerBoxWidget (TriggerBox& tb)
|
|||
{
|
||||
ui = new TriggerBoxUI (root(), tb);
|
||||
}
|
||||
|
||||
/* ------------ */
|
||||
|
||||
TriggerBoxWindow::TriggerBoxWindow (TriggerBox& tb)
|
||||
{
|
||||
TriggerBoxWidget* tbw = manage (new TriggerBoxWidget (tb));
|
||||
set_title (_("TriggerBox for XXXX"));
|
||||
set_default_size (100, 100);
|
||||
add (*tbw);
|
||||
tbw->show ();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue