bool Editor::importGIF(QString filePath, int numOfImages) { Layer* layer = layers()->currentLayer(); if (layer->type() == Layer::BITMAP) { return importBitmapImage(filePath, numOfImages); } return false; }
bool Editor::importImage( QString filePath ) { newBitmapLayer(); Layer* layer = layers()->currentLayer(); switch ( layer->type() ) { case Layer::BITMAP: return importBitmapImage( filePath ); case Layer::VECTOR: return importBitmapImage( filePath ); //return importVectorImage( filePath ); default: { mLastError = Error( ERROR_INVALID_LAYER_TYPE ); return false; } } }