ItemViewDialog class reference
[Model/View module]

Declaration  

#include <QtLua/ItemViewDialog>

namespace QtLua {
class ItemViewDialog;
};

This class is a member of the QtLua namespace.

This class is declared in QtLua/qtluaitemviewdialog.hh source file, line 53.

Description  

This class provides a generic dialog to view and edit data in a model.

Some edit buttons can be made available depending on the value of the edit_actions attribute.

Some lua functions can be used to create and invoke these dialogs from lua script.

See also TableTreeModel class and TableGridModel class.

Members  

Types  

Functions  

Protected function  

Private functions  

Private slots  

Private fields  

Members detail  

ItemViewDialog(ItemViewDialog::EditActions edit, QAbstractItemModel *model, QAbstractItemView *view = 0, QWidget *parent = 0)  

This constructor is declared in QtLua/qtluaitemviewdialog.hh source file, line 98.

Create a table dialog.

Parameters list:

  • table: lua table to expose
  • type: dialog type
  • model: mvc model to use, a default model is created if NULL.
  • attr: model attributes, control display and edit options

enum EditAction  

This enum is declared in QtLua/qtluaitemviewdialog.hh source file, line 63.

IdentifierValueDescription
EditData0x00001
EditDataOnNewRow0x00002
EditAddChild0x00004
EditInsertRow0x00010
EditInsertRowAfter0x00020
EditAddRow0x00040
EditRemoveRow0x00080
EditRowAll0x000f0
EditInsertColumn0x00100
EditInsertColumnAfter0x00200
EditAddColumn0x00400
EditRemoveColumn0x00800
EditColumnAll0x00f00

See also ItemViewDialog::EditActions typedef.

typedef ItemViewDialog::EditAction EditActions  

This typedef is declared in QtLua/qtluaitemviewdialog.hh source file, line 81.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 148.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 149.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 147.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 146.

This member access is private.

float _column_margin_factor  

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 151.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 147.

This member access is private.

ItemViewDialog::EditActions _edit  

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 143.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 148.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 148.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 149.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 149.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 144.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 148.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 149.

This member access is private.

bool _resize_on_expand  

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 150.

This member access is private.

This variable is declared in QtLua/qtluaitemviewdialog.hh source file, line 145.

This member access is private.

void add_child() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 123.

This member access is private.

This member is a Qt slot.

void add_column() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 132.

This member access is private.

This member is a Qt slot.

void add_row() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 127.

This member access is private.

This member is a Qt slot.

void current_item_changed(const QModelIndex &index) const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 121.

This member access is private.

This member is a Qt slot.

void edit() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 119.

This member access is private.

This member is a Qt slot.

void edit_error(const QString &message)  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 120.

This member access is private.

This member is a Qt slot.

float get_column_margin_factor() const  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 116.

Get additionnal column width factor

ItemViewDialog::EditActions get_edit_actions() const  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 101.

QAbstractItemModel * get_model() const  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 104.

Return pointer to model

bool get_resize_on_expand() const  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 111.

Get current resize on expand state

QAbstractItemView * get_view() const  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 106.

Return pointer to view

void insert_column() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 131.

This member access is private.

This member is a Qt slot.

void insert_column_after() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 130.

This member access is private.

This member is a Qt slot.

void insert_row() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 125.

This member access is private.

This member is a Qt slot.

void insert_row_after() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 126.

This member access is private.

This member is a Qt slot.

void new_row(const QModelIndex &parent, int row) const  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 141.

This member access is private.

void remove_column() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 133.

This member access is private.

This member is a Qt slot.

void remove_row() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 128.

This member access is private.

This member is a Qt slot.

void set_column_margin_factor(float cmf)  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 114.

Set additionnal column width factor

void set_edit_actions(ItemViewDialog::EditActions edit)  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 100.

void set_edit_actions_(int edit)  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 140.

This member access is private.

void set_resize_on_expand(bool roe)  

This function is declared in QtLua/qtluaitemviewdialog.hh source file, line 109.

Set keys column resize to content on node expand

virtual QSize sizeHint() const  

This virtual function is declared in QtLua/qtluaitemviewdialog.hh source file, line 136.

This member access is protected.

void tree_expanded() const  

This Qt slot is declared in QtLua/qtluaitemviewdialog.hh source file, line 122.

This member access is private.

This member is a Qt slot.

Valid XHTML 1.0 StrictGenerated by diaxen on Sat Mar 30 16:23:03 2013 using MkDoc