Logo Search packages:      
Sourcecode: lemonpos-kde4 version File versions  Download package

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.

This lemon uses an HTML component as an example.

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

Definition at line 49 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 signalStartedOperation ()
void signalUpdateClock ()
void signalUpdateTransactionInfo ()

Public Member Functions

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

Private Slots

void askForIdToCancel ()
void buttonDone ()
void cancelCurrentTransaction ()
void cancelTransaction (int 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 ()
void 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 quitaAcentos (QString &text)
void refreshTotalLabel ()
void setFilter ()
void settingsChanged ()
void setupClients ()
void setupDB ()
void setUpTable ()
void showBalance (QStringList lines)
void showEnterCodeWidget ()
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
int currentTransaction
QSqlDatabase db
double discMoney
LoginWindowdlgLogin
LoginWindowdlgPassword
Gavetadrawer
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