00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018 #include <qlayout.h>
00019 #include <qpixmap.h>
00020
00021
00022 #include "window.h"
00023 #include "titleWidget.h"
00024 #include "layoutWidget.h"
00025 #include "../config.h"
00026
00027
00028 Window::Window( QWidget* parent,
00029 const char* name ) :
00030 QWidget(parent,name)
00031 {
00032 title = new TitleWidget(this, "title");
00033 layout = new LayoutWidget(this, "layout");
00034
00035
00036 grid = new QGridLayout( this, 2, 1, 0);
00037 grid->addWidget( title, 0, 0 );
00038 grid->addWidget( layout, 1, 0 );
00039
00040
00041 grid->setRowStretch( 1, 1 );
00042
00043
00044 setPaletteBackgroundColor( QColor(255, 255, 255) );
00045
00046
00047 applicationIcon = new QPixmap(QString(IMAGE_PATH)+"albumShaperIcon.png");
00048 setIcon( *applicationIcon );
00049 setCaption( "Album Shaper © Will Stokes");
00050 }
00051
00052 TitleWidget* Window::getTitle()
00053 {
00054 return title;
00055 }
00056
00057 LayoutWidget* Window::getLayout()
00058 {
00059 return layout;
00060 }
00061
00062 void Window::refresh()
00063 {
00064 layout->refresh();
00065 }
00066