diff options
author | Berk Geveci <berk.geveci@kitware.com> | 2001-11-30 15:51:30 (GMT) |
---|---|---|
committer | Berk Geveci <berk.geveci@kitware.com> | 2001-11-30 15:51:30 (GMT) |
commit | d6e0f7da0cccef416ef2e31b8c5f225d4b429f11 (patch) | |
tree | ecc4341edeefefc5835589ab41ad5ce76b384d38 /Source/CursesDialog/cmCursesMainForm.h | |
parent | 906ebb5547e93a173017a987d5bceb417503b640 (diff) | |
download | CMake-d6e0f7da0cccef416ef2e31b8c5f225d4b429f11.zip CMake-d6e0f7da0cccef416ef2e31b8c5f225d4b429f11.tar.gz CMake-d6e0f7da0cccef416ef2e31b8c5f225d4b429f11.tar.bz2 |
Since it is being used as an array size in another file, it is not possible to initialize MAX_WIDTH in a .cxx file.
Diffstat (limited to 'Source/CursesDialog/cmCursesMainForm.h')
-rw-r--r-- | Source/CursesDialog/cmCursesMainForm.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/Source/CursesDialog/cmCursesMainForm.h b/Source/CursesDialog/cmCursesMainForm.h index 38be712..aa6c0ed 100644 --- a/Source/CursesDialog/cmCursesMainForm.h +++ b/Source/CursesDialog/cmCursesMainForm.h @@ -31,10 +31,12 @@ public: // list of current composites. bool LookForCacheEntry(const char* key); - static const int MIN_WIDTH; - static const int MIN_HEIGHT; - static const int IDEAL_WIDTH; - static const int MAX_WIDTH; + enum { + MIN_WIDTH = 65, + MIN_HEIGHT = 6, + IDEAL_WIDTH = 80, + MAX_WIDTH = 512 + }; // Description: // This method should normally called only by the form. |