# zoom_type.h

Go to the documentation of this file.

    00001 /* $Id: zoom_type.h 18354 2009-11-30 23:59:42Z rubidium $ */
    00002
    00005 #ifndef ZOOM_TYPE_H
    00006 #define ZOOM_TYPE_H
    00007
    00008 #include "core/enum_type.hpp"
    00009
    00010 enum ZoomLevel {
    00011   /* Our possible zoom-levels */
    00012   ZOOM_LVL_BEGIN  = 0,
    00013   ZOOM_LVL_NORMAL = 0,
    00014   ZOOM_LVL_OUT_2X,
    00015   ZOOM_LVL_OUT_4X,
    00016   ZOOM_LVL_OUT_8X,
    00017   ZOOM_LVL_END,
    00018
    00019   /* Number of zoom levels */
    00020   ZOOM_LVL_COUNT = ZOOM_LVL_END - ZOOM_LVL_BEGIN,
    00021
    00022   /* Here we define in which zoom viewports are */
    00023   ZOOM_LVL_VIEWPORT = ZOOM_LVL_NORMAL,
    00024   ZOOM_LVL_NEWS     = ZOOM_LVL_NORMAL,
    00025   ZOOM_LVL_INDUSTRY = ZOOM_LVL_OUT_2X,
    00026   ZOOM_LVL_TOWN     = ZOOM_LVL_OUT_2X,
    00027   ZOOM_LVL_AIRCRAFT = ZOOM_LVL_NORMAL,
    00028   ZOOM_LVL_SHIP     = ZOOM_LVL_NORMAL,
    00029   ZOOM_LVL_TRAIN    = ZOOM_LVL_NORMAL,
    00030   ZOOM_LVL_ROADVEH  = ZOOM_LVL_NORMAL,
    00031   ZOOM_LVL_WORLD_SCREENSHOT = ZOOM_LVL_NORMAL,
    00032
    00033   ZOOM_LVL_DETAIL   = ZOOM_LVL_OUT_2X,
    00034
    00035   ZOOM_LVL_MIN      = ZOOM_LVL_NORMAL,
    00036   ZOOM_LVL_MAX      = ZOOM_LVL_OUT_8X,
    00037 };
    00038 DECLARE_POSTFIX_INCREMENT(ZoomLevel)
    00039
    00040 typedef SimpleTinyEnumT<ZoomLevel, byte> ZoomLevelByte;
    00041
    00042 #endif /* ZOOM_TYPE_H */