Geometrize  1.0
An application for geometrizing images into geometric primitives
 All Classes Namespaces Files Functions Variables Enumerations Enumerator Friends Macros
Classes | Enumerations | Functions
geometrize::dialog Namespace Reference

Classes

class  AboutDialog
 The AboutDialog class models the UI for the vendor info, license details, credits etc. More...
 
class  GeometrizeSplashScreen
 
class  AppSplashScreen
 The AppSplashScreen class implements a splash screen for Geometrize. More...
 
class  CommandLineEdit
 The CommandLineEdit class models the UI for the command line in a graphical script console. More...
 
class  StringListModel
 
class  CompletionBox
 The CompletionBox class is a line edit that facilitates searching task templates with an autocomplete drop-down list. More...
 
class  CreditsDialog
 The CreditsDialog class models the UI for the developer, artwork, localization etc credits pages. More...
 
class  ElidedLabel
 The ElidedLabel class is a label that elides text that does not fit within it. More...
 
class  GlobalPreferencesDialog
 The GlobalPreferencesDialog class models the UI for a tabbed preferences dialog for application-level preferences. Note this is a modal dialog, task-specific preferences are edited elsewhere. More...
 
class  ImageTaskExportWidget
 The ImageTaskExportWidget implements a widget for accessing and using the image task exporters e.g. for exporting image task shape data to JSON. More...
 
class  ImageTaskImageWidget
 The ImageTaskImageWidget implements a widget for viewing and manipulating the images that an image task works with. More...
 
class  ImageTaskRunnerWidget
 The ImageTaskRunnerWidget implements a widget for manipulating and changing the settings of an image task e.g. the number of times to mutate each shape the task generates. More...
 
class  ImageTaskScriptingWidget
 The ImageTaskScriptingWidget implements a widget for manipulating scripts that are run when an image is being geometrized e.g. before/after a shape is added. More...
 
class  ImageTaskShapeScriptingPanel
 The ImageTaskShapeScriptingPanel models the UI for the script editors for controlling image task shape setup, mutation etc. More...
 
class  ImageTaskStatsWidget
 The ImageTaskStatsWidget implements a widget for statistics relating to image task progress, such as the number of shapes created so far. More...
 
class  ImageTaskWindow
 The ImageTaskWindow class encapsulates the UI for manipiulating, running and viewing an image task that geometrizes an image. More...
 
class  LanguageSelectList
 The LanguageSelectList class implements a widget for selecting the application language/locale from a list of options. More...
 
class  LanguageSelectWidget
 The LanguageSelectWidget class implements a widget for selecting and viewing the application language/locale. More...
 
class  LaunchWindow
 The LaunchWindow class models the UI for a launchpad for opening new task templates and recent tasks. More...
 
class  LicenseDialog
 The LicenseDialog class models the UI for the software license text and notices. More...
 
class  OpenUrlDialog
 The OpenUrlDialog class models the UI for the dialog box users can enter URLs into to open remote images or webpages. More...
 
class  RecentTasksList
 The RecentTasksList class models the UI for a list of recently opened tasks. More...
 
class  RunScriptDialog
 The RunScriptDialog class models the UI for picking scripts to run, and specifying script options. More...
 
class  ScriptConsole
 The ScriptConsole class models a command line and output window. More...
 
class  ScriptEditorWidget
 The ScriptEditorWidget class implements a widget for interactively editing a Chaiscript function. More...
 
class  TaskItemWidget
 The TaskItemWidget class is a button that opens/shows a task when pressed (such as a recently opened image, when used on the recently-opened items list). More...
 
class  TaskQueueWindow
 The TaskQueueWindow class encapsulates the UI for creating, configuring and executing a collection of tasks that geometrize images. More...
 
class  TemplateButton
 The TemplateButton class is a button that opens a task template when clicked. More...
 
class  TemplateGrid
 The TemplateGrid class models the UI for a dynamic grid of project templates. More...
 
class  WelcomeWindow
 The WelcomeWindow class models the UI for a quickstart tutorial/welcome page shown to users on first launch. More...
 

Enumerations

enum  SplashState { SplashState::STARTING, SplashState::LOADING_LAUNCHER_WINDOW, SplashState::FINISHED }
 The SplashState enum provides identifiers for the states of the splash screen. More...
 

Functions

AppSplashScreensharedSplashInstance ()
 sharedInstance Gets a singleton/shared instance of the application splash screen. More...
 
void showImageTaskStopConditionMetMessage (QWidget *parent)
 showImageTaskStopConditionMetMessage Shows a messagebox stating that the stop conditions for geometrizing an image were met More...
 
bool shouldShowWelcomeOnLaunch ()
 
void setShouldShowWelcomeOnLaunch (const bool show)
 

Enumeration Type Documentation

The SplashState enum provides identifiers for the states of the splash screen.

Enumerator
STARTING 
LOADING_LAUNCHER_WINDOW 
FINISHED 

Function Documentation

void geometrize::dialog::setShouldShowWelcomeOnLaunch ( const bool  show)
26 {
28  prefs.setShouldShowWelcomeScreenOnLaunch(show);
29 }
geometrize::preferences::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32

Here is the call graph for this function:

Here is the caller graph for this function:

AppSplashScreen & geometrize::dialog::sharedSplashInstance ( )

sharedInstance Gets a singleton/shared instance of the application splash screen.

Returns
A reference to the shared application splash screen instance.
131 {
132  static AppSplashScreen instance;
133  return instance;
134 }
bool geometrize::dialog::shouldShowWelcomeOnLaunch ( )
20 {
22  return prefs.shouldShowWelcomeScreenOnLaunch();
23 }
geometrize::preferences::GlobalPreferences & getGlobalPreferences()
getGlobalPreferences Shorthand function that gets a reference to the shared global preferences object...
Definition: globalpreferences.cpp:32

Here is the call graph for this function:

Here is the caller graph for this function:

void geometrize::dialog::showImageTaskStopConditionMetMessage ( QWidget *  parent)

showImageTaskStopConditionMetMessage Shows a messagebox stating that the stop conditions for geometrizing an image were met

Parameters
parentThe parent widget to center the message box on
57 {
58  QMessageBox info(QMessageBox::Icon::Information,
59  QObject::tr("Stop Condition Met"),
60  QObject::tr("Stop condition for geometrizing was met"),
61  QMessageBox::StandardButton::Ok,
62  parent);
63 
64  info.setWindowModality(Qt::WindowModality::WindowModal);
65  info.setWindowFlags(info.windowFlags() & ~Qt::WindowContextHelpButtonHint);
66  info.exec();
67 }