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

The Add Book Edit form. More...

#include <dlgaddbook.hpp>

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

Classes

class  AddBookPri
 

Public Member Functions

 DlgAddBook (QWidget *parent=0)
 
 ~DlgAddBook ()
 

Public Attributes

bool edit
 
BooksRecord inrec
 

Protected Member Functions

void changeEvent (QEvent *e)
 
void showEvent (QShowEvent *e)
 

Private Slots

void slotUpdateRec ()
 
void slotTitleChg (QString str)
 called to save edited record - not the same as the add new save More...
 
void slotAuthChg (int ndx)
 responds to edit of book title More...
 
void slotMediaChg (int ndx)
 responds to selection of different author from the dropdown combobox More...
 
void slotSave ()
 responds to selection of different media type from dropdown combobox More...
 

Private Member Functions

void saveDup (bool d)
 *d-ptr to designer form definition More...
 
void displayRecord (BooksRecord rec)
 called when dups are found More...
 
void loadCombos ()
 called if in edit mode and record is found. More...
 
void displaySettings ()
 load data for all combo boxes. Used on load. More...
 
void readSettings ()
 make appropriate changes to GUI based on settings More...
 
void saveSettings ()
 read DlgNewBook settings from file More...
 

Private Attributes

AddBookPrid
 
Ui::DlgAddBook * ui
 *d-ptr to local private var data More...
 

Detailed Description

The Add Book Edit form.

Constructs a Dialog to add a new title to the Books table or edit an existing record in the database. The implementation of the GUI interface to the Books table in the database provides a visual interface to display the specific book title found in the Books table of the database. Implementation is uses common Qt Libraries and custom functions.

Parameters
QWidget*parent

Constructor & Destructor Documentation

◆ DlgAddBook()

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

◆ ~DlgAddBook()

DlgAddBook::~DlgAddBook ( )

Member Function Documentation

◆ changeEvent()

void DlgAddBook::changeEvent ( QEvent *  e)
protected

◆ displayRecord()

void DlgAddBook::displayRecord ( BooksRecord  rec)
private

called when dups are found

◆ displaySettings()

void DlgAddBook::displaySettings ( )
private

load data for all combo boxes. Used on load.

◆ loadCombos()

void DlgAddBook::loadCombos ( )
private

called if in edit mode and record is found.

Here is the call graph for this function:

◆ readSettings()

void DlgAddBook::readSettings ( )
private

make appropriate changes to GUI based on settings

◆ saveDup()

void DlgAddBook::saveDup ( bool  d)
private

*d-ptr to designer form definition

Here is the call graph for this function:

◆ saveSettings()

void DlgAddBook::saveSettings ( )
private

read DlgNewBook settings from file

◆ showEvent()

void DlgAddBook::showEvent ( QShowEvent *  e)
protected
Here is the call graph for this function:

◆ slotAuthChg

void DlgAddBook::slotAuthChg ( int  ndx)
privateslot

responds to edit of book title

◆ slotMediaChg

void DlgAddBook::slotMediaChg ( int  ndx)
privateslot

responds to selection of different author from the dropdown combobox

◆ slotSave

void DlgAddBook::slotSave ( )
privateslot

responds to selection of different media type from dropdown combobox

Here is the call graph for this function:

◆ slotTitleChg

void DlgAddBook::slotTitleChg ( QString  str)
privateslot

called to save edited record - not the same as the add new save

◆ slotUpdateRec

void DlgAddBook::slotUpdateRec ( )
privateslot

Member Data Documentation

◆ d

AddBookPri* DlgAddBook::d
private

◆ edit

bool DlgAddBook::edit

◆ inrec

BooksRecord DlgAddBook::inrec

◆ ui

Ui::DlgAddBook* DlgAddBook::ui
private

*d-ptr to local private var data


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