FactDev  0.1
Gui::Widgets::searchWidget Class Reference

Class for search in database. More...

#include <searchwidget.h>

Inheritance diagram for Gui::Widgets::searchWidget:

Public Slots

void search (QString toSearch)
 searchWidget::launch a search More...
 
void getCustomerData ()
 searchWidget::getCustomerData Return data on the customer selected in the QTableView and display this data (Firstname, Lastname, Company)
 

Signals

void selectCustomer ()
 searchWidget::selectCustomer Signal that the Customer selected has changed
 

Public Member Functions

 searchWidget (QWidget *parent=0)
 searchWidget::searchWidget Construct a search widget More...
 
int getCurrentCustomerId ()
 searchWidget::getCurrentCustomerId Return the id of the customer selected in the table More...
 
bool isCustomerSelected () const
 searchWidget::isCustomerSelected Return TRUE if a customer is selected, else FALSE More...
 
void selectCustomer (int id)
 searchWidget::selectCustomer Select the Customer with it id More...
 
int getIdCustomer () const
 searchWidget::getIdCustomer Return the Customer id of the Customer line selected More...
 
void setIdCustomer (int idCustomer)
 searchWidget::setIdCustomer Change the customer id by the new idCustomer More...
 

Detailed Description

Class for search in database.

Author
Antoine de Roquemaurel

Constructor & Destructor Documentation

Gui::Widgets::searchWidget::searchWidget ( QWidget *  parent = 0)
explicit

searchWidget::searchWidget Construct a search widget

Parameters
parentThe QWidget parent

Member Function Documentation

int Gui::Widgets::searchWidget::getCurrentCustomerId ( )

searchWidget::getCurrentCustomerId Return the id of the customer selected in the table

Returns
id of the current customer
int Gui::Widgets::searchWidget::getIdCustomer ( ) const

searchWidget::getIdCustomer Return the Customer id of the Customer line selected

Returns
The Customer ID
bool Gui::Widgets::searchWidget::isCustomerSelected ( ) const

searchWidget::isCustomerSelected Return TRUE if a customer is selected, else FALSE

Returns
boolean
void Gui::Widgets::searchWidget::search ( QString  toSearch)
slot

searchWidget::launch a search

Parameters
toSearchThe value to search
void Gui::Widgets::searchWidget::selectCustomer ( int  id)

searchWidget::selectCustomer Select the Customer with it id

Parameters
idCustomer ID
void Gui::Widgets::searchWidget::setIdCustomer ( int  idCustomer)

searchWidget::setIdCustomer Change the customer id by the new idCustomer

Parameters
idCustomerCustomer id

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