FactDev  0.1
Gui::MainWindow Class Reference

The MainWindow class Main Window of the software. More...

#include <mainwindow.h>

Inheritance diagram for Gui::MainWindow:

Public Slots

void addCustomer ()
 MainWindow::addCustomer open window to add a new customer.
 
void editCustomer ()
 MainWindow::editCustomer open window to modify a customer.
 
void removeCustomer ()
 MainWindow::removeCustomer open a popup to confirm the deletion of a customer, if ok remove the customer.
 
void archiveCustomer ()
 MainWindow::archiveCustomer open a pop-up to confirm the archiving of the customer, if ok archive the customer.
 
void addQuote ()
 MainWindow::addQuote open window to add a new quote. More...
 
void addBill ()
 MainWindow::addBill open window to add a new bill. More...
 
void billingIsPaid ()
 MainWindow::billingIsPaid Define the current billing as "paid".
 
void editUser ()
 MainWindow::editUser modify the user. More...
 
void search (QString s)
 MainWindow::search launch a new search. More...
 
void addProject ()
 MainWindow::addProject Create a new project for a customer. More...
 
void removeProject ()
 MainWindow::removeProject Remove a project for a customer.
 
void editProject ()
 MainWindow::editProject Modify the customer project.
 
void aboutQt ()
 MainWindow::aboutQt show Qt's details.
 
void aboutFact ()
 MainWindow::aboutFact show FACT's details (FACT team)
 
void aboutFactDev ()
 MainWindow::aboutFactDev() show FactDev's details (FactDev Software)
 
void aboutIcons ()
 MainWindow::aboutIcons() show icons's details.
 
void updateButtons ()
 updateButton Update all button to disable or enabled its
 
void editDoc ()
 MainWindow::editDoc Edit the quote or bill of the project.
 
void removeDoc ()
 MainWindow::removeDoc Remove the quote or bill of the project.
 
void copyDoc ()
 MainWindow::copyDoc Copy all elements of a quote or a bill and Display these elements in a new quote or bill.
 
void openPdf ()
 MainWindow::openPdf Open the PDF file of the current Quote or Billing selected in the TableView.
 
void computeTurnover ()
 MainWindow::computeTurnover open window to allow computation of a period turnover.
 
void globalStatistics ()
 MainWindow::globalStatistics.
 
void customerStatistics ()
 MainWindow::customerStatistics.
 
void lockProject ()
 lockProject Lock the current project
 
void mergeDocks ()
 MainWindow::mergeDocks.
 

Public Member Functions

 MainWindow (QWidget *parent=0)
 MainWindow: Construct a window. More...
 
int getCurrentCustomerId ()
 MainWindow::getCurrentCustomerId get the selected customer. More...
 
int getCurrentProjectId ()
 MainWindow::getCurrentProjectId get the selected project id. More...
 
int getCurrentQuoteId ()
 MainWindow::getCurrentQuoteId get the selected quote id. More...
 
QString getCurrentCustomerName ()
 MainWindow::getCurrentCustomerName get the selected customer name in the customers' table. More...
 
QString getCurrentProjectName ()
 MainWindow::getCurrentProjectName get the selected project name in the table of projects. More...
 
int treeLevel ()
 MainWindow::treeLevel return the level of the node selected in the tree. More...
 
QModelIndex rootTree ()
 MainWindow::rootTree return the root of the tree "Tous les clients". More...
 
void addDoc (bool isBilling)
 MainWindow::addDoc open window to add a new document. More...
 
void resizeEvent (QResizeEvent *event)
 MainWindow::resizeEvent Resize central TableView when you resize the MainWindow More...
 
void responsiveCustomerTable ()
 MainWindow::responsiveCustomerTable Resize the Customer TableView according it resolution.
 
void responsiveProjectTable ()
 MainWindow::responsiveProjectTable Resize the Project TableView according it resolution.
 
void responsiveBillingTable ()
 MainWindow::responsiveBillingTable Resize the Billing TableView according it resolution.
 
bool isEasterEgg (const QString filter)
 MainWindow::isEasterEgg Return TRUE if search filter is FleuryMigeon42 else FALSE. More...
 

Detailed Description

The MainWindow class Main Window of the software.

Author
Everybody

Constructor & Destructor Documentation

Gui::MainWindow::MainWindow ( QWidget *  parent = 0)
explicit

MainWindow: Construct a window.

Parameters
parent

Member Function Documentation

void Gui::MainWindow::addBill ( )
slot

MainWindow::addBill open window to add a new bill.

See Also
AddQuoteDialog
void Gui::MainWindow::addDoc ( bool  isBilling)

MainWindow::addDoc open window to add a new document.

Parameters
boolquote or bill
See Also
addBill addQuote
void Gui::MainWindow::addProject ( )
slot

MainWindow::addProject Create a new project for a customer.

See Also
AddProjectDialog
void Gui::MainWindow::addQuote ( )
slot

MainWindow::addQuote open window to add a new quote.

See Also
AddQuoteDialog
void Gui::MainWindow::editUser ( )
slot

MainWindow::editUser modify the user.

See Also
UserDataDialog
int Gui::MainWindow::getCurrentCustomerId ( )

MainWindow::getCurrentCustomerId get the selected customer.

Returns
id of the selected customer
QString Gui::MainWindow::getCurrentCustomerName ( )

MainWindow::getCurrentCustomerName get the selected customer name in the customers' table.

Returns
name of the selected customer
int Gui::MainWindow::getCurrentProjectId ( )

MainWindow::getCurrentProjectId get the selected project id.

Returns
id of the selected project
QString Gui::MainWindow::getCurrentProjectName ( )

MainWindow::getCurrentProjectName get the selected project name in the table of projects.

Returns
name of the selected project
int Gui::MainWindow::getCurrentQuoteId ( )

MainWindow::getCurrentQuoteId get the selected quote id.

Returns
id of the selected quote
bool Gui::MainWindow::isEasterEgg ( const QString  filter)

MainWindow::isEasterEgg Return TRUE if search filter is FleuryMigeon42 else FALSE.

Parameters
filterSearch filter
Returns
boolean
void Gui::MainWindow::resizeEvent ( QResizeEvent *  event)

MainWindow::resizeEvent Resize central TableView when you resize the MainWindow

Parameters
eventResize event
QModelIndex Gui::MainWindow::rootTree ( )

MainWindow::rootTree return the root of the tree "Tous les clients".

Returns
QModelIndex
void Gui::MainWindow::search ( QString  s)
slot

MainWindow::search launch a new search.

Parameters
stext in field
int Gui::MainWindow::treeLevel ( )

MainWindow::treeLevel return the level of the node selected in the tree.

Returns
integer, depth of the item in tree

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