List of all members | Public Types | Properties | Public Member Functions | Public Slots | Signals
Screen Class Reference

#include <screen.h>

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 loadAll ()
 
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
inlineslot
void Screen::insert ( )
slot
bool Screen::isDirty ( )
slot
void Screen::loadAll ( )
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
inlineslot
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
inlineslot
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)
inlineslot
void Screen::setLockRecords ( bool  lock)
slot
void Screen::setMode ( Modes  p)
slot
void Screen::setModel ( XSqlTableModel model)
slot
void Screen::setPrimaryKeyColumns ( int  count)
inlineslot
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)
QString Screen::sortColumn ( ) const
inlineslot
bool Screen::submit ( )
QString Screen::tableName ( ) const
inlineslot
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
readwrite
Screen::Modes Screen::mode
readwrite
int Screen::primaryKeyColumns
readwrite
QString Screen::schemaName
readwrite
QString Screen::tableName
readwrite

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

Generated on Fri Oct 7 2016 14:23:32 xTuple ERP Programmer Reference, Version 4.2.0 doxygen 1.8.10