Inheritance diagram for Item:
Public Slots | |
virtual void | edit () |
virtual void | add () |
Public Member Functions | |
Item (QListView *listView, ShowModesDlg *_dlg) | |
Item (QListViewItem *item, ShowModesDlg *_dlg) | |
~Item () | |
void | moveToEnd () |
virtual QString | name ()=0 |
virtual bool | deletable ()=0 |
void | popup (const QPoint &pos) |
virtual void | setAttributes (QDomElement elem)=0 |
void | createDom (QDomElement elem) |
Protected Attributes | |
QPopupMenu * | menu |
ShowModesDlg * | showModesDlg |
Definition at line 36 of file showmodesdlg.cpp.
|
Definition at line 39 of file showmodesdlg.cpp. References moveToEnd(). 00039 : QListViewItem( listView ), showModesDlg(_dlg) 00040 { moveToEnd(); }
|
|
Definition at line 41 of file showmodesdlg.cpp. References moveToEnd(). 00041 : QListViewItem( item ), showModesDlg(_dlg) 00042 { moveToEnd(); }
|
|
Definition at line 43 of file showmodesdlg.cpp. References menu.
|
|
Reimplemented in LayerItem, ModeItem, and RootItem. Definition at line 104 of file showmodesdlg.cpp. Referenced by ShowModesDlg::add().
|
|
Definition at line 73 of file showmodesdlg.cpp. References createDom(), name(), and setAttributes(). Referenced by ShowModesDlg::accept(), and createDom(). 00074 { 00075 00076 setAttributes( elem ); 00077 QListViewItem *child = firstChild(); 00078 while ( child ) 00079 { 00080 QDomDocument doc = elem.ownerDocument(); 00081 00082 Item * it = dynamic_cast<Item *> ( child ); 00083 00084 00085 Q_ASSERT( it ); 00086 if ( it ) 00087 { 00088 00089 QDomElement childElem = doc.createElement( it->name() ); 00090 elem.appendChild( childElem ); 00091 00092 it->createDom( childElem ); 00093 } 00094 child = child->nextSibling(); 00095 } 00096 }
|
|
Implemented in FeatureItem, LayerItem, ModeItem, and RootItem. Referenced by ShowModesDlg::remove(). |
|
Reimplemented in LayerItem, and ModeItem. Definition at line 99 of file showmodesdlg.cpp. Referenced by ShowModesDlg::clicked(), and ShowModesDlg::edit().
|
|
Definition at line 51 of file showmodesdlg.cpp. Referenced by Item(). 00051 { 00052 QListViewItem *lastChild = this; 00053 if ( lastChild ) { 00054 while ( lastChild->nextSibling() ) 00055 lastChild = lastChild->nextSibling(); 00056 } 00057 00058 00059 moveItem( lastChild ); 00060 }
|
|
Implemented in FeatureItem, LayerItem, ModeItem, and RootItem. Referenced by createDom(). |
|
Definition at line 64 of file showmodesdlg.cpp. References menu. Referenced by ShowModesDlg::contextMenu(). 00065 { 00066 if ( menu ) 00067 { 00068 menu->popup( pos ); 00069 } 00070 return; 00071 }
|
|
Implemented in FeatureItem, LayerItem, ModeItem, and RootItem. Referenced by createDom(). |
|
Definition at line 109 of file showmodesdlg.cpp. Referenced by LayerItem::LayerItem(), ModeItem::ModeItem(), popup(), RootItem::RootItem(), and ~Item(). |
|
Definition at line 110 of file showmodesdlg.cpp. Referenced by ModeItem::add(), RootItem::add(), LayerItem::edit(), ModeItem::edit(), RootItem::parseDom(), ModeItem::parseDom(), and LayerItem::parseDom(). |