Changeset 98 for trunk/src/Config.h

Show
Ignore:
Timestamp:
04/20/06 11:13:01 (3 years ago)
Author:
jordi
Message:

Divided the pageZoom function from the MainPter? test to ZoomInAndOut?, ZoomWidth? and ZoomFit?, because I'm planning to make ZoomToWith? and ZoomToHeigh? toggle action that deserved separate test cases.

Also added the ZoomToFit? and ZoomToWidth? options to the configuration class. Also the test case was added.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/src/Config.h

    r96 r98  
    4444            gint getWindowX (void); 
    4545            gint getWindowY (void); 
     46            gboolean zoomToFit (void); 
     47            gboolean zoomToWidth (void); 
    4648            void save(void); 
    4749            void setOpenFileFolder (const gchar *folder); 
    4850            void setWindowSize (gint width, gint height); 
    4951            void setWindowPos (gint x, gint y); 
     52            void setZoomToFit (gboolean active); 
     53            void setZoomToWidth (gboolean active); 
    5054             
    5155        protected: 
     
    5862            static gboolean m_LoadFile; 
    5963 
     64            gboolean getBoolean (const gchar *group, const char *key, 
     65                                 gboolean defaultValue); 
    6066            gint getInteger (const gchar *group, const char *key,  
    6167                             gint defaultValue);