Commit a9892f15 authored by Jan Möbius's avatar Jan Möbius

More viewModes

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@7238 383ad7c9-94d9-4d36-a494-682f7c89f535
parent 01d5ccb2
......@@ -60,16 +60,19 @@ viewModeWidget::viewModeWidget(const QVector< ViewMode* >& _modes, QWidget *_par
connect(viewModeList, SIGNAL(itemSelectionChanged()), this, SLOT(slotSetToolWidgets()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(close()));
connect(saveButton, SIGNAL(clicked()), this, SLOT(slotSaveMode()));
connect(removeButton, SIGNAL(clicked()), this, SLOT(slotRemoveMode()));
connect(viewModeList, SIGNAL(currentTextChanged (QString)), this, SLOT(slotModeChanged(QString)) );
connect(viewModeList, SIGNAL(clicked (QModelIndex)), this, SLOT(slotModeClicked(QModelIndex)) );
// View Mode buttons
connect(removeButton, SIGNAL(clicked()), this, SLOT(slotRemoveMode()));
connect(copyButton, SIGNAL(clicked()), this, SLOT(slotCopyMode()));
connect(addButton, SIGNAL(clicked()), this, SLOT(slotAddMode()));
// View Mode List context Menu
viewModeList->setContextMenuPolicy(Qt::CustomContextMenu);
......@@ -114,9 +117,11 @@ viewModeWidget::viewModeWidget(const QVector< ViewMode* >& _modes, QWidget *_par
downButton->setIcon( QIcon(OpenFlipper::Options::iconDirStr() + OpenFlipper::Options::dirSeparator() + "arrow-down.png" ) );
// Geeral Buttons
// General Buttons
// Apply currently configured Mode
connect(okButton, SIGNAL(clicked()), this, SLOT(slotChangeView()));
connect(cancelButton, SIGNAL(clicked()), this, SLOT(close()));
connect(saveButton, SIGNAL(clicked()), this, SLOT(slotSaveMode()));
}
......@@ -129,6 +134,14 @@ void viewModeWidget::slotRemoveMode(){
delete item;
}
void viewModeWidget::slotCopyMode(){
std::cerr << "Todo: Copy Mode" << std::endl;
}
void viewModeWidget::slotAddMode(){
std::cerr << "Todo: Add Mode" << std::endl;
}
// =======================================================================================================
// View Mode Context Menu
// =======================================================================================================
......
......@@ -75,6 +75,18 @@ class viewModeWidget : public QDialog, public Ui::viewMode
* This slot removes the currently selected view mode
*/
void slotRemoveMode();
/** \brief Button slot to copy the selected view mode
*
* This slot copies the currently selected view mode
*/
void slotCopyMode();
/** \brief Button slot to add a new empty mode
*
* This slot creates an new empty view mode
*/
void slotAddMode();
// ============================================
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment