mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-04 16:51:37 -05:00
-Refactoring ~GOptions()
This commit is contained in:
parent
8e0ca98255
commit
3f08b8847e
2 changed files with 13 additions and 7 deletions
|
@ -380,7 +380,6 @@ void ControllerUI::addBinding( Binding* b )
|
|||
|
||||
void ControllerUI::addBindings( GenericMIDI* c )
|
||||
{
|
||||
// FIXME: add binding to Avtk::Binding here
|
||||
std::vector<Binding*> bindingVector= c->getMidiToAction();
|
||||
|
||||
for(unsigned int i = 0; i < bindingVector.size(); i++ )
|
||||
|
@ -391,7 +390,18 @@ void ControllerUI::addBindings( GenericMIDI* c )
|
|||
|
||||
ControllerUI::~ControllerUI()
|
||||
{
|
||||
// FIXME CRITICAL! free UI component memory here
|
||||
|
||||
// free all binding resources here:
|
||||
|
||||
|
||||
delete authorLabel;
|
||||
delete linkLabel;
|
||||
|
||||
delete targetLabel;
|
||||
delete targetLabelStat;
|
||||
delete bindEnable;
|
||||
delete removeController;
|
||||
delete writeControllerBtn;
|
||||
}
|
||||
|
||||
OptionsWindow::OptionsWindow()
|
||||
|
|
|
@ -68,14 +68,10 @@ class ControllerUI
|
|||
|
||||
Fl_Box* targetLabel;
|
||||
Fl_Box* targetLabelStat;
|
||||
Avtk::Bindings* bindings;
|
||||
//Avtk::Bindings* bindings;
|
||||
Avtk::LightButton* bindEnable;
|
||||
Avtk::Button* removeController;
|
||||
Avtk::Button* writeControllerBtn;
|
||||
|
||||
|
||||
// Controller
|
||||
Avtk::Button* ctlrButton;
|
||||
};
|
||||
|
||||
class OptionsWindow
|
||||
|
|
Loading…
Add table
Reference in a new issue