UNIVERS  15.3
UNIVERS base processing software API
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Protected Slots | Protected Member Functions | List of all members
hds::TableEditor Class Reference

#include <table_editor.hpp>

Inheritance diagram for hds::TableEditor:

Public Member Functions

 TableEditor (QWidget *parent=0, Qt::WindowFlags f=0)
 
virtual ~TableEditor ()
 
void attachDoc (TableDoc &doc)
 
void detachDoc ()
 

Protected Slots

virtual void tableContextMenuRequested (QPoint)
 
virtual void insertRow ()
 
virtual void insertRows ()
 
virtual void removeSelectedRows ()
 
virtual void selectAllRows ()
 
virtual void unselectAllRows ()
 

Protected Member Functions

QTableWidgetItem * get_table_wid_item (const TableDoc::AbstractItem &doc_item)
 
void keyPressEvent (QKeyEvent *event)
 

Detailed Description

Provides table editing facilities.

Constructor & Destructor Documentation

hds::TableEditor::TableEditor ( QWidget *  parent = 0,
Qt::WindowFlags  f = 0 
)

Default constructor.

virtual hds::TableEditor::~TableEditor ( )
virtual

Destroy table editor.

Member Function Documentation

void hds::TableEditor::attachDoc ( TableDoc doc)
Attach table document for show/edit. Document object not copied inside, 

just store a pointer.

void hds::TableEditor::detachDoc ( )

Detach current document.

QTableWidgetItem* hds::TableEditor::get_table_wid_item ( const TableDoc::AbstractItem doc_item)
protected
Convert doc item to table item. 
Returns
new QTableWidgetItem or NULL on error.

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