Main Page   Compound List   File List   Compound Members   File Members  

Window Class Reference

#include <window.h>

List of all members.


Detailed Description

Top level widget, encapsulates the title widget, the layout widget, and the toolbar widget.

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.


Constructor & Destructor Documentation

Window::Window QWidget *  parent = 0,
const char *  name = 0
 

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 }


Member Function Documentation

LayoutWidget * Window::getLayout  ) 
 

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 }

TitleWidget * Window::getTitle  ) 
 

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 }

void Window::refresh  ) 
 

refreshes the layout

Definition at line 62 of file window.cpp.

References layout, and LayoutWidget::refresh().

Referenced by TitleWidget::loadAlbum(), and TitleWidget::newAlbum().

00063 {
00064   layout->refresh();
00065 }


Member Data Documentation

QPixmap* Window::applicationIcon [private]
 

Application icon.

Definition at line 62 of file window.h.

Referenced by Window().

QGridLayout* Window::grid [private]
 

Grid objects placed in.

Definition at line 53 of file window.h.

Referenced by Window().

LayoutWidget* Window::layout [private]
 

Layout includes subalbums listing and particular subalbum layout.

Definition at line 59 of file window.h.

Referenced by getLayout(), refresh(), and Window().

TitleWidget* Window::title [private]
 

Title widget contains menu's, album information and Album Shaper icon.

Definition at line 56 of file window.h.

Referenced by getTitle(), and Window().


The documentation for this class was generated from the following files:
Generated on Tue Jun 10 23:41:24 2003 for AlbumShaper by doxygen 1.3.1