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

#include <screen.h>

Inheritance diagram for Screen:
QWidget

Public Types

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

Properties

bool lockRecords
 
Modes mode
 
int primaryKeyColumns
 
QString schemaName
 
QString tableName
 

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 ()
 

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)
 

Member Enumeration Documentation

◆ Disposition

Enumerator
NoChanges 
Save 
Cancel 

◆ Modes

Enumerator
New 
Edit 
View 

Property Documentation

◆ lockRecords

bool Screen::lockRecords
readwrite

◆ mode

Screen::Modes Screen::mode
readwrite

◆ primaryKeyColumns

int Screen::primaryKeyColumns
readwrite

◆ schemaName

QString Screen::schemaName
readwrite

◆ tableName

QString Screen::tableName
readwrite

Constructor & Destructor Documentation

◆ Screen()

Screen::Screen ( QWidget parent = 0)

◆ ~Screen()

Screen::~Screen ( )

Member Function Documentation

◆ cancel

bool Screen::cancel ( )
slot

◆ check()

Screen::Disposition Screen::check ( )

◆ clear

void Screen::clear ( )
slot

◆ currentIndex

int Screen::currentIndex ( )
slot

◆ currentIndexChanged

void Screen::currentIndexChanged ( int  index)
signal

◆ deleteCurrent

void Screen::deleteCurrent ( )
slot

◆ filter

QString Screen::filter ( ) const
inlineslot

◆ insert

void Screen::insert ( )
slot

◆ isDirty

bool Screen::isDirty ( )
slot

◆ loadAll

void Screen::loadAll ( )
slot

◆ locked()

Q_INVOKABLE bool Screen::locked ( )
inline

◆ lockGranted

void Screen::lockGranted ( bool  )
signal

◆ lockRecords()

Q_INVOKABLE bool Screen::lockRecords ( )
inline

◆ mapper()

Q_INVOKABLE XDataWidgetMapper* Screen::mapper ( )
inline

◆ mode()

Modes Screen::mode ( )

◆ model()

Q_INVOKABLE XSqlTableModel* Screen::model ( )
inline

◆ newDataWidgetMapper

void Screen::newDataWidgetMapper ( XDataWidgetMapper mapper)
signal

◆ newMappedWidget

void Screen::newMappedWidget ( QWidget widget)
slot

◆ newModel

void Screen::newModel ( XSqlTableModel model)
signal

◆ primaryKeyColumns

int Screen::primaryKeyColumns ( ) const
inlineslot

◆ removeCurrent

void Screen::removeCurrent ( )
slot

◆ removeRows

void Screen::removeRows ( int  row,
int  count 
)
slot

◆ revert

void Screen::revert ( )
slot

◆ revertAll

void Screen::revertAll ( )
slot

◆ reverted

void Screen::reverted ( int  index)
signal

◆ revertedAll

void Screen::revertedAll ( )
signal

◆ revertRow

void Screen::revertRow ( int  row)
slot

◆ save

void Screen::save ( )
slot

◆ saved

void Screen::saved ( )
signal

◆ schemaName

QString Screen::schemaName ( ) const
inlineslot

◆ search

void Screen::search ( QString  criteria)
slot

◆ select

void Screen::select ( )
slot

◆ setCurrentIndex

void Screen::setCurrentIndex ( int  index)
slot

◆ setDataWidgetMapper

void Screen::setDataWidgetMapper ( XSqlTableModel model)
slot

◆ setFilter

void Screen::setFilter ( QString  filter)
inlineslot

◆ setLockRecords

void Screen::setLockRecords ( bool  lock)
slot

◆ setMode

void Screen::setMode ( Modes  p)
slot

◆ setModel

void Screen::setModel ( XSqlTableModel model)
slot

◆ setPrimaryKeyColumns

void Screen::setPrimaryKeyColumns ( int  count)
inlineslot

◆ setSchemaName

void Screen::setSchemaName ( QString  schema)
slot

◆ setSortColumn

void Screen::setSortColumn ( QString  p)
slot

◆ setTable

void Screen::setTable ( QString  schema,
QString  table 
)
slot

◆ setTableName

void Screen::setTableName ( QString  table)
slot

◆ setWidgetsEnabled

void Screen::setWidgetsEnabled ( bool  enabled)
slot

◆ showEvent()

void Screen::showEvent ( QShowEvent *  event)

◆ sortColumn

QString Screen::sortColumn ( ) const
inlineslot

◆ submit()

bool Screen::submit ( )

◆ tableName

QString Screen::tableName ( ) const
inlineslot

◆ throwScriptException()

bool Screen::throwScriptException ( const QString &  message)

◆ toNext

void Screen::toNext ( )
slot

◆ toPrevious

void Screen::toPrevious ( )
slot

◆ tryLock

bool Screen::tryLock ( )
slot

◆ unlock

void Screen::unlock ( )
slot

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

Generated on Fri Apr 9 2021 xTuple ERP Programmer Reference, Version 5.1.0 doxygen 1.8.17