Screen Class Reference

#include <screen.h>

List of all members.

Public Types

enum  Disposition { NoChanges, Save, Cancel }
enum  Modes { New, Edit, View }

Properties

bool lockRecords
Modes mode
int primaryKeyColumns
QString schemaName
QString tableName

Public Member Functions

 Screen (QWidget *=0)
 ~Screen ()
Q_INVOKABLE Disposition check ()
Q_INVOKABLE bool locked ()
Q_INVOKABLE bool lockRecords ()
Q_INVOKABLE XDataWidgetMappermapper ()
Modes mode ()
Q_INVOKABLE XSqlTableModelmodel ()
void showEvent (QShowEvent *event)
Q_INVOKABLE bool submit ()
bool throwScriptException (const QString &message)

Public Slots

bool cancel ()
void clear ()
int currentIndex ()
void deleteCurrent ()
QString filter () const
void insert ()
bool isDirty ()
void newMappedWidget (QWidget *widget)
int primaryKeyColumns () const
void removeCurrent ()
void removeRows (int row, int count)
void revert ()
void revertAll ()
void revertRow (int row)
void save ()
QString schemaName () const
void search (QString criteria)
void select ()
void setCurrentIndex (int index)
void setDataWidgetMapper (XSqlTableModel *model)
void setFilter (QString filter)
void setLockRecords (bool lock)
void setMode (Modes p)
void setModel (XSqlTableModel *model)
void setPrimaryKeyColumns (int count)
void setSchemaName (QString schema)
void setSortColumn (QString p)
void setTable (QString schema, QString table)
void setTableName (QString table)
void setWidgetsEnabled (bool enabled)
QString sortColumn () const
QString tableName () const
void toNext ()
void toPrevious ()
bool tryLock ()
void unlock ()

Signals

void currentIndexChanged (int index)
void lockGranted (bool)
void newDataWidgetMapper (XDataWidgetMapper *mapper)
void newModel (XSqlTableModel *model)
void reverted (int index)
void revertedAll ()
void saved ()

Member Enumeration Documentation

Enumerator:
NoChanges 
Save 
Cancel 
Enumerator:
New 
Edit 
View 

Constructor & Destructor Documentation

Screen::Screen ( QWidget parent = 0  ) 
Screen::~Screen (  ) 

Member Function Documentation

bool Screen::cancel (  )  [slot]
Screen::Disposition Screen::check (  ) 
void Screen::clear (  )  [slot]
int Screen::currentIndex (  )  [slot]
void Screen::currentIndexChanged ( int  index  )  [signal]
void Screen::deleteCurrent (  )  [slot]
QString Screen::filter (  )  const [inline, slot]
void Screen::insert (  )  [slot]
bool Screen::isDirty (  )  [slot]
Q_INVOKABLE bool Screen::locked (  )  [inline]
void Screen::lockGranted ( bool   )  [signal]
Q_INVOKABLE bool Screen::lockRecords (  )  [inline]
Q_INVOKABLE XDataWidgetMapper* Screen::mapper (  )  [inline]
Modes Screen::mode (  ) 
Q_INVOKABLE XSqlTableModel* Screen::model (  )  [inline]
void Screen::newDataWidgetMapper ( XDataWidgetMapper mapper  )  [signal]
void Screen::newMappedWidget ( QWidget widget  )  [slot]
void Screen::newModel ( XSqlTableModel model  )  [signal]
int Screen::primaryKeyColumns (  )  const [inline, slot]
void Screen::removeCurrent (  )  [slot]
void Screen::removeRows ( int  row,
int  count 
) [slot]
void Screen::revert (  )  [slot]
void Screen::revertAll (  )  [slot]
void Screen::reverted ( int  index  )  [signal]
void Screen::revertedAll (  )  [signal]
void Screen::revertRow ( int  row  )  [slot]
void Screen::save (  )  [slot]
void Screen::saved (  )  [signal]
QString Screen::schemaName (  )  const [inline, slot]
void Screen::search ( QString  criteria  )  [slot]
void Screen::select (  )  [slot]
void Screen::setCurrentIndex ( int  index  )  [slot]
void Screen::setDataWidgetMapper ( XSqlTableModel model  )  [slot]
void Screen::setFilter ( QString  filter  )  [inline, slot]
void Screen::setLockRecords ( bool  lock  )  [slot]
void Screen::setMode ( Modes  p  )  [slot]
void Screen::setModel ( XSqlTableModel model  )  [slot]
void Screen::setPrimaryKeyColumns ( int  count  )  [inline, slot]
void Screen::setSchemaName ( QString  schema  )  [slot]
void Screen::setSortColumn ( QString  p  )  [slot]
void Screen::setTable ( QString  schema,
QString  table 
) [slot]
void Screen::setTableName ( QString  table  )  [slot]
void Screen::setWidgetsEnabled ( bool  enabled  )  [slot]
void Screen::showEvent ( QShowEvent event  )  [virtual]

Reimplemented from QWidget.

QString Screen::sortColumn (  )  const [inline, slot]
bool Screen::submit (  ) 
QString Screen::tableName (  )  const [inline, slot]
bool Screen::throwScriptException ( const QString message  ) 
void Screen::toNext (  )  [slot]
void Screen::toPrevious (  )  [slot]
bool Screen::tryLock (  )  [slot]
void Screen::unlock (  )  [slot]

Property Documentation

bool Screen::lockRecords [read, write]
Screen::Modes Screen::mode [read, write]
int Screen::primaryKeyColumns [read, write]
QString Screen::schemaName [read, write]
QString Screen::tableName [read, write]

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

Generated on Tue Apr 20 12:03:24 2010 xTuple ERP Programmer Reference, Version 3.5.0 doxygen 1.6.1