refactoring method names

and updated readme
master
Jacob Gustafson 2016-11-06 12:24:32 -05:00
parent 78cdb55af8
commit ab82adb889
3 changed files with 13 additions and 5 deletions

View File

@ -21,7 +21,15 @@ Possibly, rotoscoping applications are not considered commercially viable since
* 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)
* 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
* drawLineTo (this is used for painting) should draw line instead of last point

View File

@ -72,7 +72,7 @@ void MainWindow::askOpen()
//! [4]
//! [5]
void MainWindow::askSave()
void MainWindow::save()
//! [5] //! [6]
{
QAction *action = qobject_cast<QAction *>(sender());
@ -151,14 +151,14 @@ void MainWindow::createActions()
saveFrameAct = new QAction(tr("&Save"), this);
saveFrameAct->setShortcut(QKeySequence::Save);
connect(saveFrameAct, SIGNAL(triggered()), this, SLOT(askSave()));
connect(saveFrameAct, SIGNAL(triggered()), this, SLOT(save()));
foreach (QByteArray format, QImageWriter::supportedImageFormats()) {
QString text = tr("%1...").arg(QString(format).toUpper());
QAction *action = new QAction(text, this);
action->setData(format);
connect(action, SIGNAL(triggered()), this, SLOT(askSave()));
connect(action, SIGNAL(triggered()), this, SLOT(save()));
saveAsActs.append(action);
}

View File

@ -21,7 +21,7 @@ protected:
private slots:
void askOpen();
void askSave();
void save();
void askBrushColor();
void askBrushOpacity();
void askBrushRadius();