MUAN
|
00001 00005 /* 00006 * Copyright (C) 2006 Lab. Visgraf/IMPA and AnimaMundi 00007 * 00008 * This program is free software; you can redistribute it and/or 00009 * modify it under the terms of the GNU General Public License 00010 * as published by the Free Software Foundation; either version 2 00011 * of the License, or (at your option) any later version. 00012 * 00013 * This program is distributed in the hope that it will be useful, 00014 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00015 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00016 * GNU General Public License for more details. 00017 * 00018 * You should have received a copy of the GNU General Public License 00019 * along with this program; if not, write to the Free Software 00020 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. 00021 * 00022 */ 00023 #ifndef DEFAULTS_H 00024 #define DEFAULTS_H 00025 00026 //available languages: PT (Portuguese), EN (English), SP (Spanish) - uncomment the desired one 00027 #ifndef LANG_PT 00028 # ifndef LANG_EN 00029 # ifndef LANG_SP 00030 # define LANG_PT 00031 # endif 00032 # endif 00033 #endif 00034 00035 #define DEF_LOAD_MODE 0 00036 #define DEF_DURATION_DEFAULT 1 00037 #define DEF_AUTO_SAVE 0 00038 #define DEF_AUTO_SAVE_TIME 300 00039 #define DEF_SAVE_PATH "" 00040 00041 #ifdef WIN32 00042 #define DEF_AUTO_SAVE_FILE "MUAN_auto_save.avi" 00043 #else 00044 #define DEF_AUTO_SAVE_FILE "/tmp/MUAN_auto_save.avi" 00045 #endif 00046 00047 #define DEF_PLAY_SOUND 1 00048 #define DEF_CAMERA_CONNECTION 0 00049 #define DEF_SHOW_SPLASH 1 00050 00051 #define CAM_DEFAULT 0 00052 #define CAM_V4L 1 00053 #define CAM_DV1394 2 00054 #define CAM_DC1394 3 00055 #define CAM_FILE 4 00056 #define CAM_GST 5 00057 00058 #define LD_MODE_ALL_FRMS 0 00059 #define LD_MODE_COMP_FRM 1 00060 #define LD_MODE_MUAN_COD 2 00061 00062 #if defined(WIN32) 00063 // MUAN_ROOT_DIR is defined in the CMake 00064 #elif defined(__APPLE__) 00065 #define MUAN_ROOT_DIR "/Applications/muan/" 00066 #else // Linux 00067 #define MUAN_ROOT_DIR "/usr/local/share/muan/" 00068 #endif 00069 00070 const char* config_filename(); 00071 int test_file(const char *fname, const char *mode); 00072 void writePreferences (void); 00073 int ui_choice(const char *s, const char *cancel, const char *yes, const char *no); 00074 void ui_message(const char *s); 00075 void ui_setfilter(int stat); 00076 void ui_beep(void); 00077 00078 #endif