summaryrefslogtreecommitdiffstats
path: root/src/ui/dialog
diff options
context:
space:
mode:
authorEmmanuel Gil Peyrot <linkmauve@linkmauve.fr>2018-06-19 15:18:27 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2018-06-20 09:51:42 +0000
commit954a0083d9ce7065564c18c9788743eb0cf371f2 (patch)
tree3f77797181a9e89dafd9c5f00f6da3dc477d244b /src/ui/dialog
parentReplace typedef struct with struct in POD type declarations. (diff)
downloadinkscape-954a0083d9ce7065564c18c9788743eb0cf371f2.tar.gz
inkscape-954a0083d9ce7065564c18c9788743eb0cf371f2.zip
Replace typedef enum with enum in POD type declarations.
Diffstat (limited to 'src/ui/dialog')
-rw-r--r--src/ui/dialog/filedialog.h12
-rw-r--r--src/ui/dialog/transformation.h4
2 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/dialog/filedialog.h b/src/ui/dialog/filedialog.h
index a652266c7..41101d204 100644
--- a/src/ui/dialog/filedialog.h
+++ b/src/ui/dialog/filedialog.h
@@ -43,22 +43,22 @@ namespace Dialog
* Used for setting filters and options, and
* reading them back from user selections.
*/
-typedef enum {
+enum FileDialogType {
SVG_TYPES,
IMPORT_TYPES,
EXPORT_TYPES,
EXE_TYPES,
SWATCH_TYPES,
CUSTOM_TYPE
- } FileDialogType;
+ };
/**
* Used for returning the type selected in a SaveAs
*/
-typedef enum {
+enum FileDialogSelectionType {
SVG_NAMESPACE,
SVG_NAMESPACE_WITH_EXTENSIONS
- } FileDialogSelectionType;
+ };
/**
@@ -248,13 +248,13 @@ class FileExportDialog
{
public:
- typedef enum
+ enum ScopeType
{
SCOPE_DOCUMENT,
SCOPE_PAGE,
SCOPE_SELECTION,
SCOPE_CUSTOM
- } ScopeType;
+ };
/**
* Constructor. Do not call directly . Use the factory.
diff --git a/src/ui/dialog/transformation.h b/src/ui/dialog/transformation.h
index 953c6d27a..0ecd5abd8 100644
--- a/src/ui/dialog/transformation.h
+++ b/src/ui/dialog/transformation.h
@@ -109,9 +109,9 @@ public:
int getCurrentPage()
{ return _notebook.get_current_page(); }
- typedef enum {
+ enum PageType {
PAGE_MOVE, PAGE_SCALE, PAGE_ROTATE, PAGE_SKEW, PAGE_TRANSFORM, PAGE_QTY
- } PageType;
+ };
void updateSelection(PageType page, Inkscape::Selection *selection);