AIVocalSetPreview::AIVocalSetPreview() : Gtk::HBox(false, 12) { pack_start(createControlPanel(), true, true, 0); // Trigger the initial update of the widgets update(); srand(static_cast<unsigned int>(time(NULL))); }
void MainWindow::createCanvas(QString name) { if(name.right(3).toLower() == "sif") { canvas = new SlideGLWidget(name.toStdString()); canvas -> move(0, 50); canvas -> show(); createControlPanel(canvas); } else if(name.right(4).toLower() == "anom") { if(canvas == NULL) { cout<<"Warning: you need an existing working slf file to open this file.\n"; return; } else { canvas -> group_from_consolidate_mesh = &append_scene; nomeParser->appendWithANOM(params, append_scene, canvas, name.toStdString()); } } else if (name.right(3).toLower() == "nom") { nomeParser->makeWithNome(banks, params, scene, name.toStdString(), colorlines, banklines, geometrylines, postProcessingLines); canvas = new SlideGLWidget(scene); canvas -> group_from_consolidate_mesh = &append_scene; nomeParser->postProcessingWithNome(params, postProcessingLines, canvas, append_scene, name.toStdString()); createSliderPanel(canvas); canvas -> move(0, 50); canvas -> show(); createControlPanel(canvas); } else { cout<<"File type not supported!"; } }
App() : mTimer(0), mTimer2(0), mBasePower(150), mNextUpdate(0) { _makeOgre(); _makeOIS(); // Create Silverback and load in dejavu mSilverback = new Gorilla::Silverback(); mSilverback->loadAtlas("dejavu"); createHUD(); createControlPanel(); }
SoundShaderPreview::SoundShaderPreview() : Gtk::HBox(false, 12), _soundShader("") { _treeView = Gtk::manage(new Gtk::TreeView); _treeView->set_size_request(-1, 130); _treeView->append_column(_("Sound Files"), _columns.shader); // Connect the "changed" signal _selection = _treeView->get_selection(); _selection->signal_changed().connect(sigc::mem_fun(*this,&SoundShaderPreview::onSelectionChanged)); pack_start(*Gtk::manage(new gtkutil::ScrolledFrame(*_treeView)), true, true); pack_start(createControlPanel(), false, false); // Trigger the initial update of the widgets update(); }
void SiftGui::initializeComponents() { _imageContainer = new QMdiArea(this); createControlPanel(); }