Logo Search packages:      
Sourcecode: lemonpos version File versions

lemonView Class Reference

#include <lemonview.h>

List of all members.


Detailed Description

Main view.

This is the main view class for lemon. Most of the non-menu, non-toolbar, and non-statusbar (e.g., non frame) GUI code should go here.

Author:
Miguel Chavez Gamboa <miguel.chavez.gamboa@gmail.com>
Version:
2007.11

Definition at line 47 of file lemonview.h.


Signals

void signalAdminLoggedOff ()
void signalAdminLoggedOn ()
void signalChangeCaption (const QString &text)
void signalChangeStatusbar (const QString &text)
void signalLoggedUser ()
void signalNoLoggedUser ()
void signalQueryDb (QString code)
void signalShowProdGrid ()
void signalStartedOperation ()
void signalUpdateClock ()
void signalUpdateTransactionInfo ()

Public Member Functions

void cancelByExit ()
bool canStartSelling ()
qulonglong getCurrentTransaction ()
QString getCurrentTransactionString ()
QString getLoggedUser ()
unsigned int getLoggedUserId (QString uname)
QString getLoggedUserName (QString id)
QList< int > getTheSplitterSizes ()
bool isTransactionInProgress ()
 lemonView (QWidget *parent)
void saveBalance ()
void setTheSplitterSizes (QList< int > s)
bool validAdminUser ()

Private Slots

void askForIdToCancel ()
void buttonDone ()
void cancelCurrentTransaction ()
void cancelTransaction (qulonglong transactionNumber)
void checksChanged ()
void clearLabelInsertCodeMsg ()
void clearLabelPayMsg ()
void clearLabelSearchMsg ()
void clearUsedWidgets ()
void comboClientsOnChange ()
void corteDeCaja ()
void createNewTransaction (TransactionType type)
void deleteCurrentTransaction ()
void deleteSelectedItem ()
void displayItemInfo (QTableWidgetItem *item)
void doEmitSignalQueryDb ()
int doInsertItem (QString itemCode, QString itemDesc, double itemQty, double itemPrice, double itemDiscount, QString itemUnits)
void doSearchItemDesc ()
void finishCurrentTransaction ()
void focusPayInput ()
int getItemRow (QString c)
void goSelectCardAuthNumber ()
void hideProductsGrid ()
bool incrementTableItemQty (QString code, double q)
void insertItem (QString code)
void itemDoubleClicked (QTableWidgetItem *item)
void itemSearchDoubleClicked (QTableWidgetItem *item)
void listViewOnClick (const QModelIndex &index)
void listViewOnMouseMove (const QModelIndex &index)
void login ()
void populateCategoriesHash ()
void preCancelCurrentTransaction ()
void printBalance (QStringList lines)
void printTicket (TicketInfo ticket)
void refreshTotalLabel ()
void setFilter ()
void settingsChanged ()
void setupClients ()
void setupDB ()
void setupGridView ()
void setUpTable ()
void showBalance (QStringList lines)
void showEnterCodeWidget ()
void showPriceChecker ()
void showProductsGrid (bool show)
void showSearchItemWidget ()
void slotDoStartOperation ()
void startAgain ()
void startOperation ()
void timerTimeout ()
void updateClientInfo ()
void updateModelView ()

Private Member Functions

void loadIcons ()
void setUpInputs ()
void setupModel ()

Private Attributes

qulonglong buyPoints
QHash< QString, int > categoriesHash
ClientInfo clientInfo
QHash< QString, ClientInfo > clientsHash
qulonglong currentTransaction
QSqlDatabase db
double discMoney
LoginWindowdlgLogin
LoginWindowdlgPassword
Gavetadrawer
bool drawerCreated
QString loggedUser
unsigned int loggedUserId
QString loggedUserName
bool operationStarted
QHash< qulonglong, ProductInfo > productsHash
QSqlTableModel * productsModel
double totalSum
bool transactionInProgress
Ui::mainview ui_mainview

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

Generated by  Doxygen 1.6.0   Back to index