21 #include <QHBoxLayout>
22 #include <QPushButton>
57 pqPushButtonSave =
new QPushButton( QIcon(
":icons/32x32/save_select.png" ),
"" );
68 QHBoxLayout* __pqHBoxLayoutButtons =
new QHBoxLayout();
76 QDialog::setLayout( __pqHBoxLayoutButtons );
94 QTreeWidgetItem* __pqTreeWidgetItem_current = __poDeviceOverlay->currentItem();
95 if( !__pqTreeWidgetItem_current )
break;
96 switch( __pqTreeWidgetItem_current->type() )
101 int __iHead = 0, __iTail = __pqTreeWidgetItem_current->childCount()-1;
102 while( __iTail > __iHead )
104 QTreeWidgetItem* __pqTreeWidgetItem_head = __pqTreeWidgetItem_current->child( __iHead );
105 QTreeWidgetItem* __pqTreeWidgetItem_tail = __pqTreeWidgetItem_current->child( __iTail );
106 __pqTreeWidgetItem_current->removeChild( __pqTreeWidgetItem_head );
107 __pqTreeWidgetItem_current->removeChild( __pqTreeWidgetItem_tail );
108 __pqTreeWidgetItem_current->insertChild( __iHead++, __pqTreeWidgetItem_tail );
109 __pqTreeWidgetItem_current->insertChild( __iTail--, __pqTreeWidgetItem_head );
128 QTreeWidgetItem* __pqTreeWidgetItem_current = __poDeviceOverlay->currentItem();
129 if( !__pqTreeWidgetItem_current )
break;
130 switch( __pqTreeWidgetItem_current->type() )
151 QTreeWidgetItem* __pqTreeWidgetItem_current = __poDeviceOverlay->currentItem();
152 if( !__pqTreeWidgetItem_current )
break;
153 switch( __pqTreeWidgetItem_current->type() )
174 if( __qsFilename.isEmpty() )
break;
175 QFileInfo __qFileInfo( __qsFilename );
176 if( __qFileInfo.suffix().isEmpty() ) __qsFilename +=
".qvct";
177 QStringList __qsListExtensions; __qsListExtensions <<
"qvct";
192 __pqMutexDataChange->lock();
194 __pqMutexDataChange->unlock();
void setProjectModified()
Sets the status of the project to modified (data have changed and need saving)
void slotDelete()
[UI:Slot] Slot to delete overlay's selected content
void slotOrderAscending()
[UI:Slot] Slot to order overlay's content in ascending direction
void constructLayout()
Constructs the layout of the user-interface.
QPushButton * pqPushButtonSave
[UI:Button] Load
CDeviceOverlayActionsView()
QPushButton * pqPushButtonOrderInvert
[UI:Button] Order invert
void slotOrderInvert()
[UI:Slot] Slot to invert overlay's content order
void slotSave()
[UI:Slot] Slot to save overlay's selected content to file
QPushButton * pqPushButtonOrderAscending
[UI:Button] Order ascending
void slotOrderDescending()
[UI:Slot] Slot to order overlay's content in descending direction
QPushButton * pqPushButtonOrderDescending
[UI:Button] Order descending
QPushButton * pqPushButtonDelete
[UI:Button] Delete
[UI] Device overlay container
int deleteSelection()
Deletes selected devices from this overlay.
void save(const QString &_rqsFilename, CDevice *_poDevice=0, bool _bApplicationDump=false) const
Save this object's content (device) to the given file (all selected items if no device is given)
QString fileDialog(QVCT::EFileOperation _eFileOperation, const QString &_rqsTitle, const QString &_rqsFilter)
Displays a generic dialog to pick a file for the given operation (open/save)
static CDeviceOverlay * useDeviceOverlay()
static QMutex * useMutexDataChange()
static CMainWindow * useMainWindow()
static CChartTable * useChartTable()