MyBooks
Classes | Public Member Functions | Protected Member Functions | Private Slots | Private Member Functions | Private Attributes | List of all members
MainWindow Class Reference

Main Window of the MyBooks Application. More...

#include <mainwindow.hpp>

Inheritance diagram for MainWindow:
Inheritance graph
[legend]
Collaboration diagram for MainWindow:
Collaboration graph
[legend]

Classes

class  MWPrivate
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 
 ~MainWindow ()
 
void createSample ()
 

Protected Member Functions

void changeEvent (QEvent *e)
 
void showEvent (QShowEvent *e)
 triggered by language change and other events. More...
 
void resizeEvent (QResizeEvent *event)
 triggered after form load or window repaint More...
 
void closeEvent (QCloseEvent *event)
 triggered by a resize of the window More...
 

Private Slots

void slotConfigPtr ()
 triggered by a close() before deconstruction More...
 
void slotAbout ()
 triggered by menu Printer->Configure Printer selection More...
 
void slotPrefs ()
 triggered by menu help about selection. More...
 
void slotAuthors ()
 triggered by menu selection from file menu More...
 
void slotMedia ()
 triggered when btnEditAuth is clicked More...
 
void slotRptMedia ()
 triggered when btnEditMedia is clicked More...
 
void slotBooks ()
 triggered when btnRptMedia is clicked More...
 
void slotAuthGrp ()
 triggered when btnBooks is clicked More...
 
void slot1Auth ()
 large button to print titles by author More...
 
void slotPrt1Auth ()
 large button to print one author More...
 
void slotPrtAuthGrp ()
 triggered by click on print of 1 Author More...
 
void slotPrtTitles ()
 triggered by click on print of titles by author button More...
 

Private Member Functions

void createReport (QString title)
 *d-ptr pointer to Designer form definition More...
 
void loadAuthorsCbo ()
 helper function to start a report More...
 
void loadMediaCbo ()
 loads data to the Authors combo box before selection More...
 
void hideControls ()
 loads data to the Media combo box before selection More...
 
void displaySettings ()
 makes certain GUI controls invisible when needed More...
 
void readSettings ()
 make settings for display attributes visible if used More...
 
void saveSettings ()
 read MainWindow settings from file More...
 

Private Attributes

MWPrivated
 
Ui::MainWindow * ui
 *d-ptr pointer to local var definitions More...
 

Detailed Description

Main Window of the MyBooks Application.

This application uses an external .ini file to provide persistance to settings for this window and others.

Constructor & Destructor Documentation

◆ MainWindow()

MainWindow::MainWindow ( QWidget *  parent = 0)
explicit
Here is the call graph for this function:

◆ ~MainWindow()

MainWindow::~MainWindow ( )
Here is the call graph for this function:

Member Function Documentation

◆ changeEvent()

void MainWindow::changeEvent ( QEvent *  e)
protected

◆ closeEvent()

void MainWindow::closeEvent ( QCloseEvent *  event)
protected

triggered by a resize of the window

Here is the call graph for this function:

◆ createReport()

void MainWindow::createReport ( QString  title)
private

*d-ptr pointer to Designer form definition

Here is the call graph for this function:

◆ createSample()

void MainWindow::createSample ( )

◆ displaySettings()

void MainWindow::displaySettings ( )
private

makes certain GUI controls invisible when needed

◆ hideControls()

void MainWindow::hideControls ( )
private

loads data to the Media combo box before selection

◆ loadAuthorsCbo()

void MainWindow::loadAuthorsCbo ( )
private

helper function to start a report

Parameters
QStringtitle is the name of the report definition in the reports folder.
Here is the call graph for this function:

◆ loadMediaCbo()

void MainWindow::loadMediaCbo ( )
private

loads data to the Authors combo box before selection

Here is the call graph for this function:

◆ readSettings()

void MainWindow::readSettings ( )
private

make settings for display attributes visible if used

◆ resizeEvent()

void MainWindow::resizeEvent ( QResizeEvent *  event)
protected

triggered after form load or window repaint

Here is the call graph for this function:

◆ saveSettings()

void MainWindow::saveSettings ( )
private

read MainWindow settings from file

◆ showEvent()

void MainWindow::showEvent ( QShowEvent *  e)
protected

triggered by language change and other events.

Here is the call graph for this function:

◆ slot1Auth

void MainWindow::slot1Auth ( )
privateslot

large button to print titles by author

◆ slotAbout

void MainWindow::slotAbout ( )
privateslot

triggered by menu Printer->Configure Printer selection

◆ slotAuthGrp

void MainWindow::slotAuthGrp ( )
privateslot

triggered when btnBooks is clicked

◆ slotAuthors

void MainWindow::slotAuthors ( )
privateslot

triggered by menu selection from file menu

◆ slotBooks

void MainWindow::slotBooks ( )
privateslot

triggered when btnRptMedia is clicked

◆ slotConfigPtr

void MainWindow::slotConfigPtr ( )
privateslot

triggered by a close() before deconstruction

◆ slotMedia

void MainWindow::slotMedia ( )
privateslot

triggered when btnEditAuth is clicked

◆ slotPrefs

void MainWindow::slotPrefs ( )
privateslot

triggered by menu help about selection.

Here is the call graph for this function:

◆ slotPrt1Auth

void MainWindow::slotPrt1Auth ( )
privateslot

large button to print one author

Here is the call graph for this function:

◆ slotPrtAuthGrp

void MainWindow::slotPrtAuthGrp ( )
privateslot

triggered by click on print of 1 Author

Here is the call graph for this function:

◆ slotPrtTitles

void MainWindow::slotPrtTitles ( )
privateslot

triggered by click on print of titles by author button

Here is the call graph for this function:

◆ slotRptMedia

void MainWindow::slotRptMedia ( )
privateslot

triggered when btnEditMedia is clicked

Here is the call graph for this function:

Member Data Documentation

◆ d

MWPrivate* MainWindow::d
private

◆ ui

Ui::MainWindow* MainWindow::ui
private

*d-ptr pointer to local var definitions


The documentation for this class was generated from the following files: