]> git.saurik.com Git - wxWidgets.git/commitdiff
No changes, just replace #defines with enums in printing sample.
authorVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Apr 2011 22:57:23 +0000 (22:57 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Tue, 26 Apr 2011 22:57:23 +0000 (22:57 +0000)
This makes it more convenient to define menu ids with consecutive values as
will be done in the next commit.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@67618 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

samples/printing/printing.h

index 264a49c3b43198cfbf4d8537425eeb4f8b16201d..3c0a8949401860750d9fd10bcba08d530b39822b 100644 (file)
@@ -104,16 +104,18 @@ private:
 
 
 // constants:
+enum
+{
+    WXPRINT_PAGE_SETUP = 103,
 
-#define WXPRINT_PAGE_SETUP      103
-
-#define WXPRINT_PRINT_PS        105
-#define WXPRINT_PAGE_SETUP_PS   107
-#define WXPRINT_PREVIEW_PS      108
+    WXPRINT_PRINT_PS,
+    WXPRINT_PAGE_SETUP_PS,
+    WXPRINT_PREVIEW_PS,
 
-#define WXPRINT_ANGLEUP         110
-#define WXPRINT_ANGLEDOWN       111
+    WXPRINT_ANGLEUP,
+    WXPRINT_ANGLEDOWN
 
 #ifdef __WXMAC__
-    #define WXPRINT_PAGE_MARGINS 112
+    , WXPRINT_PAGE_MARGINS
 #endif
+};