#include <window.h>
Definition at line 35 of file window.h.
Public Member Functions | |
| Window (QWidget *parent=0, const char *name=0) | |
| Creates title area, layout, and tool bar and places them in grid. | |
| TitleWidget * | getTitle () |
| returns a pointer to the title widget | |
| LayoutWidget * | getLayout () |
| returns a pointer to the layout object | |
| void | refresh () |
| refreshes the layout | |
Private Attributes | |
| QGridLayout * | grid |
| Grid objects placed in. | |
| TitleWidget * | title |
| Title widget contains menu's, album information and Album Shaper icon. | |
| LayoutWidget * | layout |
| Layout includes subalbums listing and particular subalbum layout. | |
| QPixmap * | applicationIcon |
| Application icon. | |
|
||||||||||||
|
Creates title area, layout, and tool bar and places them in grid.
Definition at line 28 of file window.cpp. References applicationIcon, grid, IMAGE_PATH, layout, and title.
00029 :
00030 QWidget(parent,name)
00031 {
00032 title = new TitleWidget(this, "title");
00033 layout = new LayoutWidget(this, "layout");
00034
00035 //create new grid and add widgets
00036 grid = new QGridLayout( this, 2, 1, 0);
00037 grid->addWidget( title, 0, 0 );
00038 grid->addWidget( layout, 1, 0 );
00039
00040 //set the layout widget to take up all remaining space
00041 grid->setRowStretch( 1, 1 );
00042
00043 //set the background of the widget to be white
00044 setPaletteBackgroundColor( QColor(255, 255, 255) );
00045
00046 //create and set application icon
00047 applicationIcon = new QPixmap(QString(IMAGE_PATH)+"albumShaperIcon.png");
00048 setIcon( *applicationIcon );
00049 setCaption( "Album Shaper © Will Stokes");
00050 }
|
|
|
returns a pointer to the layout object
Definition at line 57 of file window.cpp. References layout. Referenced by TitleWidget::loadAlbum(), TitleWidget::saveAlbum(), and TitleWidget::setImageAction().
00058 {
00059 return layout;
00060 }
|
|
|
returns a pointer to the title widget
Definition at line 52 of file window.cpp. References title. Referenced by SubalbumWidget::addImageAction(), SubalbumsWidget::createAction(), SubalbumsWidget::deleteAction(), SubalbumWidget::flipHorizontallyImageAction(), SubalbumWidget::flipVerticallyImageAction(), SubalbumsWidget::refresh(), SubalbumWidget::removeImageAction(), SubalbumsWidget::reorder(), SubalbumWidget::rotate270ImageAction(), SubalbumWidget::rotate90ImageAction(), SubalbumWidget::updateButtons(), and SubalbumsWidget::updateSubalbumLayout().
00053 {
00054 return title;
00055 }
|
|
|
refreshes the layout
Definition at line 62 of file window.cpp. References layout, and LayoutWidget::refresh(). Referenced by TitleWidget::loadAlbum(), and TitleWidget::newAlbum().
|
|
|
Application icon.
Definition at line 62 of file window.h. Referenced by Window(). |
|
|
Grid objects placed in.
Definition at line 53 of file window.h. Referenced by Window(). |
|
|
Layout includes subalbums listing and particular subalbum layout.
Definition at line 59 of file window.h. Referenced by getLayout(), refresh(), and Window(). |
|
|
Title widget contains menu's, album information and Album Shaper icon.
Definition at line 56 of file window.h. Referenced by getTitle(), and Window(). |
1.3.1