List of all members | Public Types | Properties | Public Slots | Public Member Functions | Static Public Member Functions | Public Attributes | Static Public Attributes | Protected Slots | Protected Attributes | Static Protected Attributes | Friends
Documents Class Reference

#include <documents.h>

Inheritance diagram for Documents:
QWidget Ui::documents ScriptableWidget Ui_documents

Public Types

enum  DocumentSources {
  Uninitialized, Address, BBOMHead, BBOMItem,
  BOMHead, BOMItem, BOOHead, BOOItem,
  CRMAccount, Contact, Contract, CreditMemo,
  CreditMemoItem, Customer, Employee, Incident,
  Invoice, InvoiceItem, Item, ItemSite,
  ItemSource, Location, LotSerial, Opportunity,
  Project, PurchaseOrder, PurchaseOrderItem, ReturnAuth,
  ReturnAuthItem, Quote, QuoteItem, SalesOrder,
  SalesOrderItem, ShipTo, TimeExpense, Task,
  TransferOrder, TransferOrderItem, Vendor, Voucher,
  Warehouse, WorkOrder
}
 

Properties

int type
 

Public Slots

void refresh ()
 
void sAttachDoc ()
 
void sDetachDoc ()
 
void sEditDoc ()
 
void setId (int)
 
void setReadOnly (bool)
 
void setType (int sourceType)
 
void setType (QString sourceType)
 
void sInsertDocass (QString, int)
 
void sNewDoc (QString type=QString(), QString ui=QString())
 
void sNewImage ()
 
void sOpenDoc (QString mode="edit")
 
void sViewDoc ()
 

Public Member Functions

 Documents (QWidget *)
 
virtual QScriptEngine * engine ()
 
virtual void loadScript (const QString &oName)
 
virtual void loadScript (const QStringList &list)
 
virtual void loadScriptEngine ()
 
void retranslateUi (QWidget *documents)
 
void retranslateUi (QWidget *documents)
 
virtual Q_INVOKABLE bool setScriptableParams (ParameterList &)
 
void setupUi (QWidget *documents)
 
void setupUi (QWidget *documents)
 
Q_INVOKABLE int sourceid ()
 
Q_INVOKABLE int type () const
 

Static Public Member Functions

static void cleanup ()
 
static QMap< QString, struct DocumentMap * > & documentMap ()
 

Public Attributes

QPushButton * _attachDoc
 
QPushButton * _detachDoc
 
XTreeWidget_doc
 
QWidget_documents
 
QPushButton * _editDoc
 
QPushButton * _newDoc
 
QPushButton * _viewDoc
 
QGridLayout * gridLayout
 
QGridLayout * gridLayout1
 
QSpacerItem * spacerItem
 
QVBoxLayout * vboxLayout
 

Static Public Attributes

static GuiClientInterface_guiClientInterface
 

Protected Slots

virtual void showEvent (QShowEvent *)
 

Protected Attributes

QScriptEngineDebugger * _debugger
 
QScriptEngine * _engine
 
bool _scriptLoaded
 
QWidget_self
 

Static Protected Attributes

static ScriptCache_cache
 

Friends

class file
 
class image
 

Member Enumeration Documentation

◆ DocumentSources

Enumerator
Uninitialized 
Address 
BBOMHead 
BBOMItem 
BOMHead 
BOMItem 
BOOHead 
BOOItem 
CRMAccount 
Contact 
Contract 
CreditMemo 
CreditMemoItem 
Customer 
Employee 
Incident 
Invoice 
InvoiceItem 
Item 
ItemSite 
ItemSource 
Location 
LotSerial 
Opportunity 
Project 
PurchaseOrder 
PurchaseOrderItem 
ReturnAuth 
ReturnAuthItem 
Quote 
QuoteItem 
SalesOrder 
SalesOrderItem 
ShipTo 
TimeExpense 
Task 
TransferOrder 
TransferOrderItem 
Vendor 
Voucher 
Warehouse 
WorkOrder 

Property Documentation

◆ type

int Documents::type
readwrite

Constructor & Destructor Documentation

◆ Documents()

Documents::Documents ( QWidget pParent)

Member Function Documentation

◆ cleanup()

void Documents::cleanup ( )
static

◆ documentMap()

QMap< QString, struct DocumentMap * > & Documents::documentMap ( )
static

◆ engine()

QScriptEngine * ScriptableWidget::engine ( )
virtualinherited

Reimplemented in ScriptablePrivate.

◆ loadScript() [1/2]

void ScriptableWidget::loadScript ( const QString &  oName)
virtualinherited

◆ loadScript() [2/2]

void ScriptableWidget::loadScript ( const QStringList &  list)
virtualinherited

◆ loadScriptEngine()

void ScriptableWidget::loadScriptEngine ( )
virtualinherited

◆ refresh

void Documents::refresh ( )
slot

◆ retranslateUi() [1/2]

void Ui_documents::retranslateUi ( QWidget documents)
inlineinherited

◆ retranslateUi() [2/2]

void Ui_documents::retranslateUi ( QWidget documents)
inlineinherited

◆ sAttachDoc

void Documents::sAttachDoc ( )
slot

◆ sDetachDoc

void Documents::sDetachDoc ( )
slot

◆ sEditDoc

void Documents::sEditDoc ( )
slot

◆ setId

void Documents::setId ( int  pSourceid)
slot

◆ setReadOnly

void Documents::setReadOnly ( bool  pReadOnly)
slot

◆ setScriptableParams()

bool ScriptableWidget::setScriptableParams ( ParameterList &  params)
virtualinherited

◆ setType [1/2]

void Documents::setType ( int  sourceType)
slot

◆ setType [2/2]

void Documents::setType ( QString  sourceType)
slot

◆ setupUi() [1/2]

void Ui_documents::setupUi ( QWidget documents)
inlineinherited

◆ setupUi() [2/2]

void Ui_documents::setupUi ( QWidget documents)
inlineinherited

◆ showEvent

void Documents::showEvent ( QShowEvent *  e)
protectedvirtualslot

◆ sInsertDocass

void Documents::sInsertDocass ( QString  target_type,
int  target_id 
)
slot

◆ sNewDoc

void Documents::sNewDoc ( QString  type = QString(),
QString  ui = QString() 
)
slot

◆ sNewImage

void Documents::sNewImage ( )
slot

◆ sOpenDoc

void Documents::sOpenDoc ( QString  mode = "edit")
slot

◆ sourceid()

Q_INVOKABLE int Documents::sourceid ( )
inline

◆ sViewDoc

void Documents::sViewDoc ( )
slot

◆ type()

Q_INVOKABLE int Documents::type ( ) const

Friends And Related Function Documentation

◆ file

friend class file
friend

◆ image

friend class image
friend

Member Data Documentation

◆ _attachDoc

QPushButton * Ui_documents::_attachDoc
inherited

◆ _cache

ScriptCache * ScriptableWidget::_cache
staticprotectedinherited

◆ _debugger

QScriptEngineDebugger* ScriptableWidget::_debugger
protectedinherited

◆ _detachDoc

QPushButton * Ui_documents::_detachDoc
inherited

◆ _doc

XTreeWidget * Ui_documents::_doc
inherited

◆ _documents

QWidget * Ui_documents::_documents
inherited

◆ _editDoc

QPushButton * Ui_documents::_editDoc
inherited

◆ _engine

QScriptEngine* ScriptableWidget::_engine
protectedinherited

◆ _guiClientInterface

GuiClientInterface * Documents::_guiClientInterface
static

◆ _newDoc

QPushButton * Ui_documents::_newDoc
inherited

◆ _scriptLoaded

bool ScriptableWidget::_scriptLoaded
protectedinherited

◆ _self

QWidget* ScriptableWidget::_self
protectedinherited

◆ _viewDoc

QPushButton * Ui_documents::_viewDoc
inherited

◆ gridLayout

QGridLayout * Ui_documents::gridLayout
inherited

◆ gridLayout1

QGridLayout * Ui_documents::gridLayout1
inherited

◆ spacerItem

QSpacerItem * Ui_documents::spacerItem
inherited

◆ vboxLayout

QVBoxLayout * Ui_documents::vboxLayout
inherited

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

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