void GFX_InstrumentWindowToFront(void){ g_instruments_widget->setSizePolicy(QSizePolicy::Minimum,QSizePolicy::Minimum); // might not be needed set_widget_height(120); if (!instrumentWidgetIsInMixer()){ //EditorWidget *editor = static_cast<EditorWidget*>(root->song->tracker_windows->os_visual.widget); //g_instruments_widget->setParent(editor->ysplitter); //editor->ysplitter->handle(2)->setEnabled(false); //editor->ysplitter->setStretchFactor(2,0); API_showInstrumentGui(); GFX_update_current_instrument_widget(); } else { GL_lock(); { g_instruments_widget->show(); }GL_unlock(); GFX_update_current_instrument_widget(); if(instrumentWidgetIsInMixer() && GFX_MixerIsVisible()==false){ GFX_ShowMixer(); } } set_editor_focus(); }
void GFX_InstrumentWindowToBack(void){ if (!instrumentWidgetIsInMixer()) { API_hideInstrumentGui(); } else { g_instruments_widget->hide(); g_instruments_widget->setSizePolicy(QSizePolicy::Ignored,QSizePolicy::Ignored); // might not be needed. set_widget_height(0); g_instruments_widget->adjustSize(); set_editor_focus(); } }
// Установка геометрии виджета void IndentSlider::set_widget_geometry(int width, int height) { set_widget_width(width); set_widget_height(height); }
void GFX_SetMinimalInstrumentWindow(void){ set_widget_height(30); g_instruments_widget->adjustSize(); }