refactoring method names
and updated readme
This commit is contained in:
parent
78cdb55af8
commit
ab82adb889
@ -21,6 +21,14 @@ Possibly, rotoscoping applications are not considered commercially viable since
|
|||||||
* use alpha.png for reducing opacity of parts of background layer
|
* use alpha.png for reducing opacity of parts of background layer
|
||||||
* allow blocker layer type (make an animated object that seems to "undo" previous edits, such as to reveal parts of characters under the effect, without permanently erasing any part of the effect)
|
* allow blocker layer type (make an animated object that seems to "undo" previous edits, such as to reveal parts of characters under the effect, without permanently erasing any part of the effect)
|
||||||
* use layer cache (purpose for unused variable cacheMaxMB)
|
* use layer cache (purpose for unused variable cacheMaxMB)
|
||||||
|
* Keyboard controls for fast operation:
|
||||||
|
Ctrl Scrollwheel: zoom
|
||||||
|
Shift Alt Scrollwheel: brush hardness
|
||||||
|
Shift Scrollwheel: brush size
|
||||||
|
* Add exception handling in appropriate situations:
|
||||||
|
catch(std::exception& e) {
|
||||||
|
qCritical() << "Exception thrown:" << e.what();
|
||||||
|
}
|
||||||
|
|
||||||
## Low-priority Known Issues
|
## Low-priority Known Issues
|
||||||
* drawLineTo (this is used for painting) should draw line instead of last point
|
* drawLineTo (this is used for painting) should draw line instead of last point
|
||||||
|
@ -72,7 +72,7 @@ void MainWindow::askOpen()
|
|||||||
//! [4]
|
//! [4]
|
||||||
|
|
||||||
//! [5]
|
//! [5]
|
||||||
void MainWindow::askSave()
|
void MainWindow::save()
|
||||||
//! [5] //! [6]
|
//! [5] //! [6]
|
||||||
{
|
{
|
||||||
QAction *action = qobject_cast<QAction *>(sender());
|
QAction *action = qobject_cast<QAction *>(sender());
|
||||||
@ -151,14 +151,14 @@ void MainWindow::createActions()
|
|||||||
|
|
||||||
saveFrameAct = new QAction(tr("&Save"), this);
|
saveFrameAct = new QAction(tr("&Save"), this);
|
||||||
saveFrameAct->setShortcut(QKeySequence::Save);
|
saveFrameAct->setShortcut(QKeySequence::Save);
|
||||||
connect(saveFrameAct, SIGNAL(triggered()), this, SLOT(askSave()));
|
connect(saveFrameAct, SIGNAL(triggered()), this, SLOT(save()));
|
||||||
|
|
||||||
foreach (QByteArray format, QImageWriter::supportedImageFormats()) {
|
foreach (QByteArray format, QImageWriter::supportedImageFormats()) {
|
||||||
QString text = tr("%1...").arg(QString(format).toUpper());
|
QString text = tr("%1...").arg(QString(format).toUpper());
|
||||||
|
|
||||||
QAction *action = new QAction(text, this);
|
QAction *action = new QAction(text, this);
|
||||||
action->setData(format);
|
action->setData(format);
|
||||||
connect(action, SIGNAL(triggered()), this, SLOT(askSave()));
|
connect(action, SIGNAL(triggered()), this, SLOT(save()));
|
||||||
saveAsActs.append(action);
|
saveAsActs.append(action);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,7 +21,7 @@ protected:
|
|||||||
|
|
||||||
private slots:
|
private slots:
|
||||||
void askOpen();
|
void askOpen();
|
||||||
void askSave();
|
void save();
|
||||||
void askBrushColor();
|
void askBrushColor();
|
||||||
void askBrushOpacity();
|
void askBrushOpacity();
|
||||||
void askBrushRadius();
|
void askBrushRadius();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user