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
33
src/gui.cxx
33
src/gui.cxx
|
@ -322,11 +322,7 @@ Gui::Gui(std::string argZero) :
|
||||||
window.color(FL_BLACK);
|
window.color(FL_BLACK);
|
||||||
window.label("Luppp");
|
window.label("Luppp");
|
||||||
window.callback( close_cb, 0 );
|
window.callback( close_cb, 0 );
|
||||||
window.size_range(1110, 650);
|
window.size_range(1024, 720);
|
||||||
|
|
||||||
Avtk::Image* headerImage = new Avtk::Image(0,0,1110,36,"header.png");
|
|
||||||
headerImage->setPixbuf( header.pixel_data, 4 );
|
|
||||||
headerImage->callback( gui_header_callback, this );
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
tooltipLabel = new Fl_2(130, 25, 500, 20, "");
|
tooltipLabel = new Fl_2(130, 25, 500, 20, "");
|
||||||
|
@ -336,18 +332,29 @@ Gui::Gui(std::string argZero) :
|
||||||
//tooltipLabel->align( FL_ALIGN_TOP_LEFT );
|
//tooltipLabel->align( FL_ALIGN_TOP_LEFT );
|
||||||
*/
|
*/
|
||||||
|
|
||||||
//window.resizable( headerImage );
|
|
||||||
|
|
||||||
int i = 0;
|
Avtk::Image* headerImage = new Avtk::Image(0,0,1110,36,"header.png");
|
||||||
for (; i < NTRACKS; i++ )
|
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");
|
||||||
{
|
{
|
||||||
stringstream s;
|
int i = 0;
|
||||||
s << "Track " << i+1;
|
for (; i < NTRACKS; i++ )
|
||||||
//printf("track name %s\n", s.str().c_str() );
|
{
|
||||||
tracks.push_back( new GTrack(8 + i * 118, 40, 110, 600, s.str().c_str() ) );
|
stringstream s;
|
||||||
|
s << "Track " << i+1;
|
||||||
|
//printf("track name %s\n", s.str().c_str() );
|
||||||
|
tracks.push_back( new GTrack(8 + i * 118, 40, 110, 600, s.str().c_str() ) );
|
||||||
|
}
|
||||||
|
|
||||||
|
master = new GMasterTrack(8 + i * 118, 40, 150, 600, "Master");
|
||||||
}
|
}
|
||||||
|
lupppGroup->end();
|
||||||
|
|
||||||
master = new GMasterTrack(8 + i * 118, 40, 150, 600, "Master");
|
window.resizable( lupppGroup );
|
||||||
|
|
||||||
window.end();
|
window.end();
|
||||||
|
|
||||||
|
|
|
@ -67,6 +67,8 @@ class Gui
|
||||||
private:
|
private:
|
||||||
Fl_Double_Window window;
|
Fl_Double_Window window;
|
||||||
|
|
||||||
|
Fl_Group* lupppGroup;
|
||||||
|
|
||||||
OptionsWindow* optionWindow;
|
OptionsWindow* optionWindow;
|
||||||
|
|
||||||
AudioEditor* audioEditor;
|
AudioEditor* audioEditor;
|
||||||
|
|
Loading…
Add table
Reference in a new issue