Refractor stretch panel
This commit is contained in:
+13
-9
@@ -1,7 +1,7 @@
|
||||
#include "stretchpanel.h"
|
||||
#include <QVBoxLayout>
|
||||
#include <QDebug>
|
||||
#include <QPushButton>
|
||||
#include <QToolButton>
|
||||
#include "imageringlist.h"
|
||||
|
||||
const float BLACK_POINT_SIGMA = -2.8f;
|
||||
@@ -21,18 +21,22 @@ StretchPanel::StretchPanel(QWidget *parent) : QWidget(parent)
|
||||
setLayout(layout);
|
||||
|
||||
m_stfSlider = new STFSlider(this);
|
||||
layout->addWidget(m_stfSlider);
|
||||
layout->addWidget(m_stfSlider, 0, 0);
|
||||
connect(m_stfSlider, SIGNAL(paramChanged(float, float, float)), this, SIGNAL(paramChanged(float,float,float)));
|
||||
|
||||
QPushButton *resetButton = new QPushButton(tr("Reset STF"), this);
|
||||
resetButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
|
||||
layout->addWidget(resetButton);
|
||||
connect(resetButton, SIGNAL(pressed()), this, SLOT(resetMTF()));
|
||||
|
||||
QPushButton *autoStretchButton = new QPushButton(tr("Autostretch"), this);
|
||||
autoStretchButton->setSizePolicy(QSizePolicy::Maximum, QSizePolicy::Maximum);
|
||||
QToolButton *autoStretchButton = new QToolButton(this);
|
||||
autoStretchButton->setIcon(QIcon(":/nuke.svg"));
|
||||
autoStretchButton->setToolTip(tr("Auto Stretch F12"));
|
||||
autoStretchButton->setShortcut(Qt::Key_F12);
|
||||
layout->addWidget(autoStretchButton);
|
||||
connect(autoStretchButton, SIGNAL(pressed()), this, SIGNAL(autoStretch()));
|
||||
|
||||
QToolButton *resetButton = new QToolButton(this);
|
||||
resetButton->setIcon(style()->standardIcon(QStyle::SP_DialogResetButton));
|
||||
resetButton->setToolTip(tr("Reset Screen Transfer Function F11"));
|
||||
resetButton->setShortcut(Qt::Key_F11);
|
||||
layout->addWidget(resetButton);
|
||||
connect(resetButton, SIGNAL(pressed()), this, SLOT(resetMTF()));
|
||||
}
|
||||
|
||||
void StretchPanel::stretchImage(Image *img)
|
||||
|
||||
Reference in New Issue
Block a user