Commit a8209ba1 authored by Matthias Möller's avatar Matthias Möller

refresh button and update content, when examiner was changed via mouse click

refs #1736

git-svn-id: http://www.openflipper.org/svnrepo/OpenFlipper/branches/Free@17523 383ad7c9-94d9-4d36-a494-682f7c89f535
parent ae9ce0c7
......@@ -1051,6 +1051,8 @@ void CoreWidget::slotActivateExaminer()
if (examiner == examiner_widgets_[i])
{
PluginFunctions::setActiveExaminer (i);
if (postProcessorDialog_)
postProcessorDialog_->refresh();
break;
}
}
......
......@@ -71,12 +71,14 @@ PostProcessorDialog::PostProcessorDialog(QWidget *_parent)
connect(upButton,SIGNAL(clicked()),this,SLOT(slotMoveUp()));
connect(downButton,SIGNAL(clicked()),this,SLOT(slotMoveDown()));
connect(saveButton,SIGNAL(clicked()),this,SLOT(slotSaveActive()));
connect(refreshButton,SIGNAL(clicked()), this,SLOT(refresh()));
//set icons
QString iconPath = OpenFlipper::Options::iconDirStr()+OpenFlipper::Options::dirSeparator();
closeButton->setIcon( QIcon(iconPath + "window-close.png"));
saveButton->setIcon( QIcon(iconPath + "document-save.png"));
refreshButton->setIcon( QIcon(iconPath + "edit-redo.png"));
}
......@@ -383,3 +385,8 @@ void PostProcessorDialog::loadSavedPostProcessors(const unsigned _examiner)
postProcessorManager().append(*iter,_examiner);
}
}
void PostProcessorDialog::refresh()
{
initWindow();
}
......@@ -68,6 +68,10 @@ class PostProcessorDialog : public QDialog, public Ui::PostProcessorWidget
/// append all saved post processors
static void loadSavedPostProcessors(const unsigned _examiner);
public slots:
/// refreshes the content of the dialog with current examiner
void refresh();
private slots:
/// Show the custom context menu for activation
void slotContextMenuActivate(const QPoint& _point);
......
......@@ -316,6 +316,52 @@
</property>
</widget>
</item>
<item row="5" column="0">
<layout class="QHBoxLayout" name="horizontalLayout_3">
<item>
<spacer name="horizontalSpacer_3">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
<item>
<widget class="QPushButton" name="refreshButton">
<property name="toolTip">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Refreshes the available and active post processor list&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="statusTip">
<string>Refreshes the available and active post processor list</string>
</property>
<property name="whatsThis">
<string>&lt;html&gt;&lt;head/&gt;&lt;body&gt;&lt;p&gt;Refreshes the available and active post processor list&lt;/p&gt;&lt;/body&gt;&lt;/html&gt;</string>
</property>
<property name="text">
<string>Refresh</string>
</property>
</widget>
</item>
<item>
<spacer name="horizontalSpacer_4">
<property name="orientation">
<enum>Qt::Horizontal</enum>
</property>
<property name="sizeHint" stdset="0">
<size>
<width>40</width>
<height>20</height>
</size>
</property>
</spacer>
</item>
</layout>
</item>
</layout>
</widget>
<resources/>
......
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