Geometrize  1.0
An application for geometrizing images into geometric primitives
Functions
main.cpp File Reference
#include "dialog/launchwindow.h"
#include <cassert>
#include <functional>
#include <string>
#include <QApplication>
#include <QEvent>
#include <QIcon>
#include <QLocale>
#include <QObject>
#include <QString>
#include <QStringList>
#include <QtGlobal>
#include "tabletproximityeventfilter.h"
#include "cli/commandlineparser.h"
#include "common/uiactions.h"
#include "dialog/appsplashscreen.h"
#include "dialog/welcomewindow.h"
#include "localization/localization.h"
#include "logging/logging.h"
#include "preferences/globalpreferences.h"
#include "test/functionaltestrunner.h"
#include "version/versioninfo.h"

Functions

int main (int argc, char *argv[])
 

Function Documentation

◆ main()

int main ( int  argc,
char *  argv[] 
)
122 {
124 
125  setApplicationSettingsFields();
126  incrementAppLaunchCount();
127 
128  QApplication app(argc, argv);
129 
130  // Intercept proximity tablet pen events
132 
133 #if defined(Q_OS_LINUX) || defined(Q_OS_MAC)
134  // Some Linux/Macs taskbars/DEs use the application window icon to set the taskbar icon
135  // So we explicitly set the window icon here
136  app.setWindowIcon(QIcon(":/logos/logo_small.png"));
137 #endif
138 
139  const QStringList arguments{app.arguments()};
140  setLocale(arguments);
141 
142 #if defined DATASLINGER_INCLUDED
143  geometrize::setupImageSlinger();
144  geometrize::setupImageReceiver();
145  geometrize::setupSvgShapeSlinger();
146 #endif
147 
148  const auto run = resolveLaunchFunction(arguments);
149  return run(app);
150 }
Here is the call graph for this function:
geometrize::logging::setupLogging
void setupLogging()
setupLogging Installs a log message handler. Logging in Geometrize uses the Qt QLoggingCategory loggi...
Definition: logging.cpp:30
geometrize::getSharedTabletProximityEventFilterInstance
TabletProximityEventFilter & getSharedTabletProximityEventFilterInstance()
getSharedTabletProximityEventFilterInstance Gets a reference to the shared instance of the tablet pro...
Definition: tabletproximityeventfilter.cpp:32