mirror of
https://github.com/vale981/openAV-Luppp
synced 2025-03-05 09:01:39 -05:00
-GUI resizing, header image is getting scrambled
This commit is contained in:
parent
014da77b35
commit
c533989145
2 changed files with 22 additions and 13 deletions
19
src/gui.cxx
19
src/gui.cxx
|
@ -322,11 +322,7 @@ Gui::Gui(std::string argZero) :
|
|||
window.color(FL_BLACK);
|
||||
window.label("Luppp");
|
||||
window.callback( close_cb, 0 );
|
||||
window.size_range(1110, 650);
|
||||
|
||||
Avtk::Image* headerImage = new Avtk::Image(0,0,1110,36,"header.png");
|
||||
headerImage->setPixbuf( header.pixel_data, 4 );
|
||||
headerImage->callback( gui_header_callback, this );
|
||||
window.size_range(1024, 720);
|
||||
|
||||
/*
|
||||
tooltipLabel = new Fl_2(130, 25, 500, 20, "");
|
||||
|
@ -336,8 +332,15 @@ Gui::Gui(std::string argZero) :
|
|||
//tooltipLabel->align( FL_ALIGN_TOP_LEFT );
|
||||
*/
|
||||
|
||||
//window.resizable( headerImage );
|
||||
|
||||
Avtk::Image* headerImage = new Avtk::Image(0,0,1110,36,"header.png");
|
||||
headerImage->setPixbuf( header.pixel_data, 4 );
|
||||
headerImage->callback( gui_header_callback, this );
|
||||
|
||||
|
||||
// create a new "Group" with all Luppp GUI contents, for resizing
|
||||
lupppGroup = new Fl_Group( 0, 0, 1024, 720, "Luppp");
|
||||
{
|
||||
int i = 0;
|
||||
for (; i < NTRACKS; i++ )
|
||||
{
|
||||
|
@ -348,6 +351,10 @@ Gui::Gui(std::string argZero) :
|
|||
}
|
||||
|
||||
master = new GMasterTrack(8 + i * 118, 40, 150, 600, "Master");
|
||||
}
|
||||
lupppGroup->end();
|
||||
|
||||
window.resizable( lupppGroup );
|
||||
|
||||
window.end();
|
||||
|
||||
|
|
|
@ -67,6 +67,8 @@ class Gui
|
|||
private:
|
||||
Fl_Double_Window window;
|
||||
|
||||
Fl_Group* lupppGroup;
|
||||
|
||||
OptionsWindow* optionWindow;
|
||||
|
||||
AudioEditor* audioEditor;
|
||||
|
|
Loading…
Add table
Reference in a new issue