# data file for the Fltk User Interface Designer (fluid) version 1.0011 header_name {.hxx} code_name {.cxx} gridx 5 gridy 5 snap 3 decl {\#include } {public } decl {\#include "Fl_Smart_Tile.hxx"} {public } decl {class Fl_Smart_Tile;} {public } decl {\#include "ForwardDeclarations.hxx"} {public } decl {\#include "SMSAnalysisSynthesisConfig.hxx"} {} decl {\#include "VisualizationController.hxx"} {public } class UserInterface {open } { decl {public: AnalysisSynthesisExampleGUI* mAnalysisSynthesisExample;} {public } Function {UserInterface()} {open } { Fl_Window mWindow { label {SMS Analysis/Synthesis Application | MTG-UPF (Barcelona)} selected xywh {497 561 872 548} resizable code0 {mWindow2=NULL;} visible } { Fl_Menu_Bar mMenuBar { private xywh {0 0 872 21} box THIN_UP_BOX labelsize 13 textsize 12 } { submenu {} { label Input open private xywh {5 5 100 20} labelsize 12 } { menuitem {} { label {Load Configuration...} callback {LoadConfiguration();} private xywh {5 5 100 20} labelsize 12 } menuitem {} { label {Edit Configuration...} callback {EditConfiguration();} private xywh {15 15 100 20} labelsize 12 } menuitem {} { label {Store Configuration...} callback {StoreConfiguration();} private xywh {15 15 100 20} labelsize 12 } submenu mDisplayInSM { label Display open private xywh {10 10 100 20} labelsize 12 deactivate } { menuitem mDisplayInSound { label Sound callback {DisplayInputSound();} private xywh {35 35 100 20} labelsize 12 deactivate } menuitem mDisplayInSpec { label Spectrum callback {DisplayInputSpectrum();} private xywh {45 45 100 20} labelsize 12 deactivate } } } submenu {} { label Analysis xywh {0 0 100 20} labelsize 12 } { menuitem mAnalyze { label Analyze callback {Analyze();} private xywh {40 40 100 20} shortcut 0x40061 labelsize 12 deactivate } menuitem {} { label {Load...} callback {LoadAnalysisData();} private xywh {45 45 100 20} labelsize 12 } menuitem mStoreAnalysisData { label {Store...} callback {StoreAnalysisData();} private xywh {45 45 100 20} labelsize 12 deactivate } submenu mMelodySM { label Melody private xywh {25 25 100 20} labelsize 12 deactivate } { menuitem mMelodyAnalyze { label Analyze callback {AnalyzeMelody();} private xywh {75 75 100 20} labelsize 12 } menuitem mMelodyStore { label Store callback {StoreMelody();} private xywh {75 75 100 20} labelsize 12 deactivate } } } submenu {} { label Transformation private xywh {20 20 100 20} labelsize 12 } { menuitem {} { label {Load...} callback {LoadTransformation();} private xywh {60 60 100 20} labelsize 12 } menuitem mDoTransformation { label Apply callback {Transform();} private xywh {60 60 100 20} labelsize 12 deactivate } } submenu mSynthesize { label Synthesis private xywh {0 0 100 20} labelsize 12 deactivate } { menuitem {} { label Synthesize callback {Synthesize();} private xywh {30 30 100 20} shortcut 0x40073 labelsize 12 } } submenu mOutputSM { label Output private xywh {10 10 100 20} labelsize 12 deactivate } { submenu mVisualizeOutputs { label Display private xywh {5 5 100 20} labelsize 12 } { menuitem {} { label Sound callback {DisplayOutputSound();} private xywh {25 25 100 20} labelsize 12 } menuitem {} { label Spectrum callback {DisplayOutputSpectrum();} private xywh {55 55 100 20} labelsize 12 hide } menuitem {} { label Sinusoidal callback {DisplayOutputSoundSinusoidal();} private xywh {45 45 100 20} labelsize 12 } menuitem {} { label Residual callback {DisplayOutputSoundResidual();} private xywh {50 50 100 20} labelsize 12 } } submenu mStoreOutputs { label Store private xywh {10 10 100 20} labelsize 12 } { menuitem {} { label Sound callback {StoreOutputSound();} private xywh {30 30 100 20} labelsize 12 } menuitem {} { label Sinusoidal callback {StoreOutputSoundSinusoidal();} private xywh {60 60 100 20} labelsize 12 } menuitem {} { label Residual callback {StoreOutputSoundResidual();} private xywh {65 65 100 20} labelsize 12 } } } menuitem {} { label Exit callback {if(mWindow2!=NULL) delete mWindow2; Exit();} private xywh {15 15 100 20} shortcut 0x40071 labelsize 12 } menuitem {} { label About callback {AboutWindow()} private xywh {10 10 100 20} labelsize 12 } } Fl_Counter mCounter { label {Frame } callback {ChangeFrame();} private xywh {330 525 190 20} box THIN_UP_BOX labelsize 12 align 4 minimum 0 maximum 0 step 1 deactivate } Fl_Group {} {open xywh {5 50 860 470} resizable } { Fl_Box mSmartTile { private xywh {5 50 860 470} code0 {o->minsize(80);} class Fl_Smart_Tile } } Fl_Group {} { xywh {0 20 872 30} } { Fl_Output mConfigurationText { label {Configuration File} private xywh {105 25 400 20} box THIN_DOWN_BOX labelsize 12 align 132 textsize 12 } Fl_Box {} { xywh {505 20 367 30} resizable } } } code {mVC.SetCanvas( mSmartTile );} {} code {mVC.mSlot.Wrap( this, &UserInterface::ChangeTimeTag );} {} } Function {AboutWindow()} {private return_type void } { Fl_Window mWindow2 { label {About this program...} callback {delete mWindow2; mWindow2=NULL;} private xywh {516 493 417 100} box ENGRAVED_BOX labeltype NORMAL_LABEL labelsize 10 hide code0 {mWindow2->show();} modal } { Fl_Box {} { label {SMS Analysis/Synthesis Application} private xywh {85 15 265 20} labelfont 3 labelsize 12 } Fl_Box {} { label {by MTG - IUA - UPF (Barcelona, Spain)} private xywh {85 40 265 20} labelfont 2 labelsize 12 } Fl_Box {} { label {logos/iua.xpm} private xywh {360 15 50 60} } Fl_Box {} { label {please visit us at http://www.iua.upf.es/mtg for more info} private xywh {90 65 260 20} labelfont 2 labelsize 11 } Fl_Box {} { label {logos/mtg.xpm} private xywh {10 20 75 55} } } } decl {void LoadConfiguration(void);} {} decl {void EditConfiguration(void);} {} decl {void StoreConfiguration(void);} {} decl {void Analyze(void);} {} decl {void LoadAnalysisData(void);} {} decl {void StoreAnalysisData(void);} {} decl {void Synthesize(void);} {} decl {void AnalyzeMelody(void);} {} decl {void StoreMelody(void);} {} decl {void StoreOutputSound(void);} {} decl {void StoreOutputSoundResidual(void);} {} decl {void StoreOutputSoundSinusoidal(void);} {} decl {void LoadTransformation(void);} {} decl {void Transform(void);} {} decl {void Exit(void);} {} decl {void LoadSound();} {} decl {void ChangeFrame();} {} decl {void ChangeTimeTag(double tag);} {} decl {CLAMVM::VisualizationController mVC;} {} decl {void DisplayInputSound();} {} decl {void DisplayInputSpectrum();} {} decl {void DisplayOutputSound();} {} decl {void DisplayOutputSpectrum();} {} decl {void DisplayOutputSoundSinusoidal();} {} decl {void DisplayOutputSoundResidual();} {} decl {void Update();} {} }