Geometrize  1.0
An application for geometrizing images into geometric primitives
Public Member Functions | Static Public Member Functions | List of all members
geometrize::strings::Strings Class Reference

The Strings class contains methods for getting miscelleanous translatable strings. More...

#include <strings.h>

Inheritance diagram for geometrize::strings::Strings:
Inheritance graph
[legend]
Collaboration diagram for geometrize::strings::Strings:
Collaboration graph
[legend]

Public Member Functions

 Strings ()=delete
 
Stringsoperator= (const Strings &)=delete
 
 Strings (const Strings &)=delete
 

Static Public Member Functions

static QString getApplicationName ()
 getApplicationName Gets the name of the application. More...
 
static QString getShortApplicationDescription ()
 getApplicationDescription Gets a short description of the application. More...
 
static QString getCopyrightNotice ()
 getCopyrightNotice Gets a copyright notice for the application. More...
 
static QString getShapeTypeNamePlural (geometrize::ShapeTypes shapeType)
 getShapeTypeNamePlural Gets the plural name of the shape for the given shape type. More...
 

Detailed Description

The Strings class contains methods for getting miscelleanous translatable strings.

Constructor & Destructor Documentation

◆ Strings() [1/2]

geometrize::strings::Strings::Strings ( )
delete

◆ Strings() [2/2]

geometrize::strings::Strings::Strings ( const Strings )
delete

Member Function Documentation

◆ getApplicationName()

QString geometrize::strings::Strings::getApplicationName ( )
static

getApplicationName Gets the name of the application.

Returns
The name of the application.
10 {
11  return tr("Geometrize", "This means to 'turn into geometry' or to 'represent using geometric primitives'. The name of the application, so must be short and meaningful. Do not translate if this is difficult to communicate in one word.");
12 }
Here is the caller graph for this function:

◆ getCopyrightNotice()

QString geometrize::strings::Strings::getCopyrightNotice ( )
static

getCopyrightNotice Gets a copyright notice for the application.

Returns
The copyright notice for the application.
20 {
21  return tr("Copyright 2015-2021 Sam Twidale", "This is the copyright notice of the application.");
22 }
Here is the caller graph for this function:

◆ getShapeTypeNamePlural()

QString geometrize::strings::Strings::getShapeTypeNamePlural ( geometrize::ShapeTypes  shapeType)
static

getShapeTypeNamePlural Gets the plural name of the shape for the given shape type.

Parameters
shapeTypeThe type of shape whose name will be returned.
Returns
The name of the shape for the given shape type e.g. RECTANGLE type returns "Rectangles".
25 {
26  switch(shapeType) {
27  case geometrize::ShapeTypes::RECTANGLE:
28  return tr("Rectangles", "Plural form of rectangle geometric shape");
29  case geometrize::ShapeTypes::ROTATED_RECTANGLE:
30  return tr("Rotated Rectangles", "Plural form of rectangle geometric shape. These rectangles are rotated through an angle (0-360 degrees)");
31  case geometrize::ShapeTypes::TRIANGLE:
32  return tr("Triangles", "Plural form of triangle geometric shape");
33  case geometrize::ShapeTypes::ELLIPSE:
34  return tr("Ellipses", "Plural form of ellipse/ellipsoid geometric shape");
35  case geometrize::ShapeTypes::ROTATED_ELLIPSE:
36  return tr("Rotated Ellipses", "Plural form of ellipse geometric shape. These ellipses are rotated through an angle (0-360 degrees)");
37  case geometrize::ShapeTypes::CIRCLE:
38  return tr("Circles", "Plural form of circle/circular geometric shape");
39  case geometrize::ShapeTypes::LINE:
40  return tr("Lines", "Plural form of the simple line geometric shape");
41  case geometrize::ShapeTypes::QUADRATIC_BEZIER:
42  return tr("Quadratic Beziers", "Plural form of quadratic bezier curve geometric shape");
43  case geometrize::ShapeTypes::POLYLINE:
44  return tr("Polylines", "Plural form of the polyline geometric shape (multiple line segments joined together)");
45  default:
46  return tr("Unknown Shapes", "Plural form of an unknown type of shapes");
47  }
48 }

◆ getShortApplicationDescription()

QString geometrize::strings::Strings::getShortApplicationDescription ( )
static

getApplicationDescription Gets a short description of the application.

Returns
Short description of the application.
15 {
16  return tr("Geometrize recreates your photos using simple geometric shapes, transforming them into unique artwork.", "This is a short description for what this application is and what it does.");
17 }
Here is the caller graph for this function:

◆ operator=()

Strings& geometrize::strings::Strings::operator= ( const Strings )
delete

The documentation for this class was generated from the following files: