 |
Geometrize
1.0
An application for geometrizing images into geometric primitives
|
Go to the documentation of this file.
40 virtual void dropEvent(QDropEvent* event)
override;
63 std::unique_ptr<LaunchWindowImpl>
d;
bool load(const std::string &filePath)
load Loads the global preferences from a file.
Definition: globalpreferences.cpp:448
void onLanguageChange()
Definition: launchwindow.cpp:208
virtual ~LaunchWindow()
Definition: launchwindow.cpp:292
void handleCommand(const geometrize::script::Command &command)
Definition: launchwindow.cpp:96
The LaunchWindow class models the UI for a launchpad for opening new task templates and recent tasks.
Definition: launchwindow.h:22
QString openImagePathPickerDialog(QWidget *parent)
Definition: uiactions.cpp:103
~LaunchWindowImpl()=default
LaunchWindow()
Definition: launchwindow.cpp:286
void saveGlobalSettingsTemplate() const
Definition: launchwindow.cpp:199
void openGlobalPreferences(QWidget *parent)
Definition: uiactions.cpp:92
static std::vector< LaunchWindow * > getTopLevelLaunchWindows()
getTopLevelLaunchWindows Gets all of the existing top level launch windows.
Definition: launchwindow.cpp:296
std::string getCommandHandlerName() const
Definition: launchwindow.cpp:160
void saveConsoleHistory()
Definition: launchwindow.cpp:184
void closeEvent(QCloseEvent *bar) override
Definition: launchwindow.cpp:347
void loadGlobalSettingsTemplate()
Definition: launchwindow.cpp:190
static const std::string launchConsoleHistoryFilename
The name of the console history settings file used by the console embedded in the launch window.
Definition: scriptconsole.h:33
std::unique_ptr< LaunchWindowImpl > d
Definition: launchwindow.h:62
QUrl openGetUrlDialog(QWidget *parent)
Definition: uiactions.cpp:173
static std::vector< LaunchWindow * > getTopLevelLaunchWindows()
Definition: launchwindow.cpp:82
void on_openLinkButton_clicked()
Definition: launchwindow.cpp:388
void clear()
clear Removes all items from the recent items.
Definition: recentitems.cpp:196
std::string readFileAsString(const std::string &filePath)
readFileAsString Reads a file, returning a string containing the contents.
Definition: util.cpp:155
The Command class provides a convenient way for a script to tell an object about something For exampl...
Definition: command.h:17
void openTechnicalSupport()
Definition: uiactions.cpp:197
const QString MORE_RESOURCES_URL
URL to a webpage providing additional templates, scripts and/or helpful links.
Definition: constants.h:14
void on_actionSave_Global_Preferences_triggered()
Definition: launchwindow.cpp:362
std::unique_ptr< Ui::LaunchWindow > ui
Definition: launchwindow.cpp:277
virtual std::string getCommandHandlerName() const override
Definition: launchwindow.cpp:306
const std::size_t m_maxLogoTaskSteps
Definition: launchwindow.cpp:282
void updateLogoTaskProgress()
Definition: launchwindow.cpp:232
LaunchWindowImpl(const LaunchWindowImpl &)=delete
The CommandHandler class provides an interface that all objects that can handle/process script comman...
Definition: commandhandler.h:19
void on_actionClear_Recents_triggered()
Definition: launchwindow.cpp:367
void changeEvent(QEvent *) override
Definition: launchwindow.cpp:424
LaunchWindowImpl(LaunchWindow *pQ)
Definition: launchwindow.cpp:34
void setCommandHandlerName(const std::string &name)
Definition: launchwindow.cpp:165
QString getApplicationVersionString()
getApplicationVersionString Gets the application version as a string in VERSION.MAJOR....
Definition: versioninfo.cpp:13
const QString VIDEO_TUTORIAL_URL
The video tutorial webpage URL for the software.
Definition: constants.h:15
void on_actionGlobal_Preferences_triggered()
Definition: launchwindow.cpp:352
void openOnlineTutorials()
Definition: uiactions.cpp:202
RecentItems & getRecentItems()
getRecentItems Gets a reference to the recent files list.
Definition: recentitems.cpp:206
virtual void handleCommand(const geometrize::script::Command &command) override
Definition: launchwindow.cpp:301
void on_actionAbout_triggered()
Definition: launchwindow.cpp:419
Bitmap createBitmap(const QImage &image)
createBitmap Creates a bitmap data object from the given image.
Definition: imageloader.cpp:22
bool save(const std::string &filePath)
save Saves the global preferences to a file.
Definition: globalpreferences.cpp:453
static QString getApplicationName()
getApplicationName Gets the name of the application.
Definition: strings.cpp:9
std::string getStringArg(const std::string &key) const
Definition: command.cpp:20
QString openGetScriptDialog(QWidget *parent)
Definition: uiactions.cpp:182
void populateUi()
Definition: launchwindow.cpp:215
QPixmap createPixmap(const Bitmap &data)
createPixmap Creates a pixmap from the bitmap data object. Assumes RGBA8888 format.
Definition: imageloader.cpp:59
Definition: commandlineparser.cpp:73
QString openSaveGlobalSettingsDialog(QWidget *parent)
Definition: uiactions.cpp:236
std::string getCommand() const
Definition: command.cpp:15
void runScript(const std::string &code, chaiscript::ChaiScript &runner)
runScript Evaluates the provided script code.
Definition: scriptrunner.cpp:16
virtual void setCommandHandlerName(const std::string &name) override
Definition: launchwindow.cpp:311
void loadConsoleHistory()
Definition: launchwindow.cpp:178
void openAboutPage(QWidget *parent)
Definition: uiactions.cpp:86
QString openLoadGlobalSettingsDialog(QWidget *parent)
Definition: uiactions.cpp:228
virtual void dropEvent(QDropEvent *event) override
Definition: launchwindow.cpp:321
void on_openImageButton_clicked()
Definition: launchwindow.cpp:377
LaunchWindowImpl operator=(const LaunchWindowImpl &)=delete
std::size_t m_logoTaskSteps
Definition: launchwindow.cpp:283
void writeStringVector(const std::vector< std::string > &vec, const std::string &filePath)
writeStringVector Writes the string vector to the given filepath as JSON. Will attempt to overwrite a...
Definition: serializationutil.cpp:37
void on_actionLoad_Global_Preferences_triggered()
Definition: launchwindow.cpp:357
std::unique_ptr< chaiscript::ChaiScript > m_engine
Definition: launchwindow.cpp:279
void on_actionSupport_triggered()
Definition: launchwindow.cpp:414
void on_runScriptButton_clicked()
Definition: launchwindow.cpp:398
void signal_templateLoaded(QString, bool)
void setConsoleVisibility(const bool visible)
Definition: launchwindow.cpp:170
LaunchWindow * q
Definition: launchwindow.cpp:278
void on_openTaskQueueButton_clicked()
Definition: launchwindow.cpp:404
void on_actionTutorials_triggered()
Definition: launchwindow.cpp:409
void on_actionExit_triggered()
Definition: launchwindow.cpp:372
std::string getAppDataLocation()
getAppDataLocation Returns a directory location where persistent application data can be stored.
Definition: util.cpp:319
geometrize::preferences::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32
void signal_modelDidStep(std::vector< geometrize::ShapeResult > shapes)
signal_modelDidStep Signal that is emitted immediately after the underlying image task model is stepp...
std::unique_ptr< task::ImageTask > m_logoTask
Definition: launchwindow.cpp:281
Definition: launchwindow.cpp:32
virtual void dragEnterEvent(QDragEnterEvent *event) override
Definition: launchwindow.cpp:316
void setupLogo()
Definition: launchwindow.cpp:244
std::unique_ptr< chaiscript::ChaiScript > createLaunchWindowEngine()
createLaunchWindowEngine Creates a Chaiscript engine object for the launch window script console.
Definition: chaiscriptcreator.cpp:37
void openTasks(const QStringList &urls, const bool addToRecents)
Definition: taskutil.cpp:58
std::vector< std::string > readStringVector(const std::string &filePath)
readStringVector Reads the JSON file containing the vector of strings at the given filepath....
Definition: serializationutil.cpp:20
void openTaskQueueWindow()
Definition: uiactions.cpp:71