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 = __poLandmarkOverlay->currentItem();
95 if( !__pqTreeWidgetItem_current )
break;
96 switch( __pqTreeWidgetItem_current->type() )
102 int __iHead = 0, __iTail = __pqTreeWidgetItem_current->childCount()-1;
103 while( __iTail > __iHead )
105 QTreeWidgetItem* __pqTreeWidgetItem_head = __pqTreeWidgetItem_current->child( __iHead );
106 QTreeWidgetItem* __pqTreeWidgetItem_tail = __pqTreeWidgetItem_current->child( __iTail );
107 __pqTreeWidgetItem_current->removeChild( __pqTreeWidgetItem_head );
108 __pqTreeWidgetItem_current->removeChild( __pqTreeWidgetItem_tail );
109 __pqTreeWidgetItem_current->insertChild( __iHead++, __pqTreeWidgetItem_tail );
110 __pqTreeWidgetItem_current->insertChild( __iTail--, __pqTreeWidgetItem_head );
129 QTreeWidgetItem* __pqTreeWidgetItem_current = __poLandmarkOverlay->currentItem();
130 if( !__pqTreeWidgetItem_current )
break;
131 switch( __pqTreeWidgetItem_current->type() )
153 QTreeWidgetItem* __pqTreeWidgetItem_current = __poLandmarkOverlay->currentItem();
154 if( !__pqTreeWidgetItem_current )
break;
155 switch( __pqTreeWidgetItem_current->type() )
177 if( __qsFilename.isEmpty() )
break;
178 QFileInfo __qFileInfo( __qsFilename );
179 if( __qFileInfo.suffix().isEmpty() ) __qsFilename +=
".qvct";
180 QStringList __qsListExtensions; __qsListExtensions <<
"qvct" <<
"gpx";
195 __pqMutexDataChange->lock();
197 __pqMutexDataChange->unlock();
void setProjectModified()
Sets the status of the project to modified (data have changed and need saving)
void updateChart()
Update the (current) chart content (on screen)
QPushButton * pqPushButtonDelete
[UI:Button] Delete
QPushButton * pqPushButtonSave
[UI:Button] Load
void constructLayout()
Constructs the layout of the user-interface.
CLandmarkOverlayActionsView()
void slotDelete()
[UI:Slot] Slot to delete overlay's selected content
void slotOrderInvert()
[UI:Slot] Slot to invert overlay's content order
void slotOrderDescending()
[UI:Slot] Slot to order overlay's content in descending direction
QPushButton * pqPushButtonOrderAscending
[UI:Button] Order ascending
QPushButton * pqPushButtonOrderDescending
[UI:Button] Order descending
void slotOrderAscending()
[UI:Slot] Slot to order overlay's content in ascending direction
QPushButton * pqPushButtonOrderInvert
[UI:Button] Order invert
void slotSave()
[UI:Slot] Slot to save overlay's selected content to file
[UI] Landmark overlay container
void save(const QString &_rqsFilename, CLandmarkContainer *_poLandmarkContainer=0) const
Save this object's content (container) to the given file (all selected items if no container is given...
int deleteSelection()
Deletes selected items within this overlay's containers.
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)
void forceRedraw()
Forces this overlay's rendering (not matter its cache content)
static QMutex * useMutexDataChange()
static CMainWindow * useMainWindow()
static CChartTable * useChartTable()
static CLandmarkOverlay * useLandmarkOverlay()