00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020 #ifndef __COP2_ProjectSettings_h__
00021 #define __COP2_ProjectSettings_h__
00022
00023 #include "COP2_API.h"
00024 #include <iostream.h>
00025 #include <OP/OP_Error.h>
00026
00027 #define COP2_PROJECT_SETTINGS_PREF_FILE "compproject.pref"
00028
00029 class CMD_Args;
00030
00031 class COP2_API COP2_ProjectSettings
00032 {
00033 public:
00034 static bool setRes(int x, int y);
00035 static void getRes(int &x, int &y);
00036
00037 static bool setPixelAspect(float aspect);
00038 static float getPixelAspect();
00039
00040 static bool setDepth(int depth);
00041 static int getDepth();
00042
00043 static bool resetBWPoints();
00044 static bool setBWPoints(int b, int w);
00045 static void getBWPoints(int &b, int &w);
00046
00047 static bool setProxyLevel(int level);
00048 static int getProxyLevel();
00049 static float getProxyRes();
00050 static void getIconRes(int &x, int &y);
00051
00052 static void setFileDefaults(int res, int depth);
00053 static int getFileResDefault();
00054 static int getFileDepthDefault();
00055
00056 static void setFileLastFileDefault(int enable);
00057 static int getFileLastFileDefault();
00058
00059 static void setLargeCanvas(bool enable);
00060 static bool getLargeCanvas();
00061
00062 static const char *getProxyLevelString(int index);
00063
00064 static void initialize();
00065 static OP_ERROR saveSettings(ostream &, void *);
00066 static void compProjectCmd(CMD_Args &args);
00067
00068 static void setViewerCallback(void (*cb)(float ));
00069
00070 private:
00071 static void loadDefaultPrefs();
00072
00073 };
00074
00075 #endif