Kexi API Documentation (2.0 alpha)

KFormDesigner::EditListViewDialog Class Reference

#include <editlistviewdialog.h>

Inheritance diagram for KFormDesigner::EditListViewDialog:

KDialogBase List of all members.

Detailed Description

A dialog to edit the contents of a listvuew (KListView or QListView).

The dialog contains two pages, one to edit columns and one to edit ist items. KoProperty::Editor is used in columns to edit column properties (there are two properties not supported by Qt Designer: 'width' and 'resizable'). The user can enter list contents inside the list using KListViewItem::setRenameable(). Pixmaps are not yet supported.

Definition at line 49 of file editlistviewdialog.h.

Public Slots

void updateItemProperties (QListBoxItem *)
void newItem ()
void removeItem ()
void MoveItemUp ()
void MoveItemDown ()
void changeProperty (KoProperty::Set &set, KoProperty::Property &property)
 Columns page slots ///////.
void updateButtons (QListViewItem *)
 Contents page slots ////////.
void newRow ()
void newChildRow ()
void removeRow ()
void MoveRowUp ()
void MoveRowDown ()

Public Member Functions

 EditListViewDialog (QWidget *parent)
 A Dialog to edit the contents of a listview /////////////////////.
 ~EditListViewDialog ()
int exec (QListView *listview)

Protected Types

enum  {
  BNewRow = 10, BNewChild, BRemRow, BRowUp,
  BRowDown, BColAdd = 20, BColRem, BColUp,
  BColDown
}

Protected Member Functions

void loadChildNodes (QListView *listview, QListViewItem *item, QListViewItem *parent)

Protected Attributes

KoProperty::Editor * m_editor
KoProperty::Set * m_propSet
QFramem_contents
QFramem_column
KListBox * m_listbox
KListViewm_listview
QIntDict< QToolButtonm_buttons


Member Enumeration Documentation

anonymous enum [protected]
 

Enumeration values:
BNewRow 
BNewChild 
BRemRow 
BRowUp 
BRowDown 
BColAdd 
BColRem 
BColUp 
BColDown 

Definition at line 82 of file editlistviewdialog.h.


Constructor & Destructor Documentation

KFormDesigner::EditListViewDialog::EditListViewDialog QWidget parent  ) 
 

A Dialog to edit the contents of a listview /////////////////////.

Definition at line 41 of file editlistviewdialog.cpp.

References BColAdd, BColDown, BColRem, BColUp, BNewChild, BNewRow, BRemRow, BRowDown, BRowUp, changeProperty(), m_buttons, m_column, m_contents, m_editor, m_listbox, m_listview, m_propSet, MoveItemDown(), MoveItemUp(), MoveRowDown(), MoveRowUp(), newChildRow(), newItem(), newRow(), removeItem(), removeRow(), updateButtons(), and updateItemProperties().

KFormDesigner::EditListViewDialog::~EditListViewDialog  )  [inline]
 

Definition at line 55 of file editlistviewdialog.h.


Member Function Documentation

void KFormDesigner::EditListViewDialog::changeProperty KoProperty::Set &  set,
KoProperty::Property &  property
[slot]
 

Columns page slots ///////.

Definition at line 225 of file editlistviewdialog.cpp.

References m_listbox, m_listview, and m_propSet.

Referenced by EditListViewDialog().

int KFormDesigner::EditListViewDialog::exec QListView *  listview  ) 
 

Definition at line 162 of file editlistviewdialog.cpp.

References loadChildNodes(), m_listbox, m_listview, and updateButtons().

void KFormDesigner::EditListViewDialog::loadChildNodes QListView *  listview,
QListViewItem item,
QListViewItem parent
[protected]
 

Loads all child items of item into listview (may be different from the items 's listview) as child of parent item. This is used to copy the contents of a listview into another listview.

Definition at line 364 of file editlistviewdialog.cpp.

References newItem().

Referenced by exec().

void KFormDesigner::EditListViewDialog::MoveItemDown  )  [slot]
 

Definition at line 321 of file editlistviewdialog.cpp.

References current, m_listbox, m_listview, and m_propSet.

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::MoveItemUp  )  [slot]
 

Definition at line 296 of file editlistviewdialog.cpp.

References current, m_listbox, m_listview, and m_propSet.

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::MoveRowDown  )  [slot]
 

Definition at line 451 of file editlistviewdialog.cpp.

References m_listview, and updateButtons().

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::MoveRowUp  )  [slot]
 

Definition at line 443 of file editlistviewdialog.cpp.

References m_listview, and updateButtons().

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::newChildRow  )  [slot]
 

Definition at line 422 of file editlistviewdialog.cpp.

References m_listview.

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::newItem  )  [slot]
 

Definition at line 271 of file editlistviewdialog.cpp.

References BColRem, m_buttons, m_listbox, and m_listview.

Referenced by EditListViewDialog(), and loadChildNodes().

void KFormDesigner::EditListViewDialog::newRow  )  [slot]
 

Definition at line 407 of file editlistviewdialog.cpp.

References m_listview.

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::removeItem  )  [slot]
 

Definition at line 281 of file editlistviewdialog.cpp.

References BColRem, current, m_buttons, m_listbox, and m_listview.

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::removeRow  )  [slot]
 

Definition at line 437 of file editlistviewdialog.cpp.

References m_listview.

Referenced by EditListViewDialog().

void KFormDesigner::EditListViewDialog::updateButtons QListViewItem  )  [slot]
 

Contents page slots ////////.

Definition at line 348 of file editlistviewdialog.cpp.

References BNewChild, BRemRow, BRowDown, BRowUp, and m_buttons.

Referenced by EditListViewDialog(), exec(), MoveRowDown(), and MoveRowUp().

void KFormDesigner::EditListViewDialog::updateItemProperties QListBoxItem *   )  [slot]
 

Definition at line 249 of file editlistviewdialog.cpp.

References BColDown, BColUp, m_buttons, m_editor, m_listbox, m_listview, and m_propSet.

Referenced by EditListViewDialog().


Member Data Documentation

QIntDict<QToolButton> KFormDesigner::EditListViewDialog::m_buttons [protected]
 

Definition at line 88 of file editlistviewdialog.h.

Referenced by EditListViewDialog(), newItem(), removeItem(), updateButtons(), and updateItemProperties().

QFrame * KFormDesigner::EditListViewDialog::m_column [protected]
 

Definition at line 85 of file editlistviewdialog.h.

Referenced by EditListViewDialog().

QFrame* KFormDesigner::EditListViewDialog::m_contents [protected]
 

Definition at line 85 of file editlistviewdialog.h.

Referenced by EditListViewDialog().

KoProperty::Editor* KFormDesigner::EditListViewDialog::m_editor [protected]
 

Definition at line 83 of file editlistviewdialog.h.

Referenced by EditListViewDialog(), and updateItemProperties().

KListBox* KFormDesigner::EditListViewDialog::m_listbox [protected]
 

Definition at line 86 of file editlistviewdialog.h.

Referenced by changeProperty(), EditListViewDialog(), exec(), MoveItemDown(), MoveItemUp(), newItem(), removeItem(), and updateItemProperties().

KListView* KFormDesigner::EditListViewDialog::m_listview [protected]
 

Definition at line 87 of file editlistviewdialog.h.

Referenced by changeProperty(), EditListViewDialog(), exec(), MoveItemDown(), MoveItemUp(), MoveRowDown(), MoveRowUp(), newChildRow(), newItem(), newRow(), removeItem(), removeRow(), and updateItemProperties().

KoProperty::Set* KFormDesigner::EditListViewDialog::m_propSet [protected]
 

Definition at line 84 of file editlistviewdialog.h.

Referenced by changeProperty(), EditListViewDialog(), MoveItemDown(), MoveItemUp(), and updateItemProperties().


The documentation for this class was generated from the following files:
KDE Logo
This file is part of the documentation for Kexi 2.0 alpha.
Documentation copyright © 2002-2007 the Kexi Team.
Generated on Tue Apr 1 20:50:58 2008 by doxygen 1.4.2 written by Dimitri van Heesch, © 1997-2003