 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Go to the documentation of this file.
23 void openTask(
const QString& urlStr,
bool addToRecents);
25 void openTasks(
const QStringList& urls,
bool addToRecents);
27 bool openTemplate(chaiscript::ChaiScript& engine,
const std::string& templateFolder);
bool openTemplate(chaiscript::ChaiScript &engine, const std::string &templateFolder)
Definition: taskutil.cpp:65
void openTask(const QString &urlStr, bool addToRecents)
Definition: taskutil.cpp:31
TemplateManifest getTemplateManifest(const std::string &templateFolder)
Definition: taskutil.cpp:98
std::string getFirstFileWithExtensions(const std::string &dirPath, const std::vector< std::string > &extensions)
getFirstFileWithExtensions Gets the absolute file path to the first file with one of the given extens...
Definition: util.cpp:224
bool directoryContainsFile(const std::string &dirPath, const std::string &fileName)
directoryContainsFile Checks if the directory contains the given file, returns true if it does.
Definition: util.cpp:135
std::vector< std::string > getScriptsForPath(const std::string &dirPath)
getScriptsForPath Gets the absolute file paths to the script files (*.chai) for the given directory,...
Definition: util.cpp:236
ImageTask * createImageTaskAndWindow(const std::string &displayName, const std::string &taskUrl, const std::optional< geometrize::preferences::ImageTaskPreferences > &prefs)
createImageTaskAndWindow Creates an image task, and immediately creates a graphical window for manipu...
Definition: imagetaskcreator.cpp:52
std::string readFileAsString(const std::string &filePath)
readFileAsString Reads a file, returning a string containing the contents.
Definition: util.cpp:155
void onWebpageDownloadComplete(network::Downloader *self, const QNetworkReply::NetworkError error)
onWebpageDownloadComplete A callback when a webpage download completes.
Definition: completionhandlers.cpp:53
void downloadImage(const QUrl &url, const std::function< void(network::Downloader *self, QNetworkReply::NetworkError error)> &onComplete)
downloadImage Downloads an image over the network.
Definition: networkactions.cpp:13
Definition: commandlineedit.h:11
The ImageTaskPreferences class models the preferences associated with an image task.
Definition: imagetaskpreferences.h:29
RecentItems & getRecentItems()
getRecentItems Gets a reference to the recent files list.
Definition: recentitems.cpp:206
Definition: commandlineparser.cpp:73
void runScript(const std::string &code, chaiscript::ChaiScript &runner)
runScript Evaluates the provided script code.
Definition: scriptrunner.cpp:16
void add(const QString &itemId, const QString &itemDisplayName)
add Adds an item to the recent items.
Definition: recentitems.cpp:177
void onImageDownloadComplete(network::Downloader *self, const QNetworkReply::NetworkError error)
onImageDownloadComplete A callback when an image download completes.
Definition: completionhandlers.cpp:26
std::string getDefaultTaskSettingsFilename()
getTaskSettingsFilename Gets the default name of a task settings file that is manually saved by the u...
Definition: searchpaths.cpp:31
void openTasks(const QStringList &urls, const bool addToRecents)
Definition: taskutil.cpp:58
The TemplateManifest class represents the metadata for a task template.
Definition: templatemanifest.h:14
void downloadWebpage(const QUrl &url, const std::function< void(network::Downloader *self, QNetworkReply::NetworkError error)> &onComplete)
downloadWebpage Downloads a whole webpage over the network.
Definition: networkactions.cpp:18