Lines Matching refs:entry

595     ConfEntry* entry = 0;  in importGourceSettings()  local
601 if((entry = gource_settings->getEntry("hide")) != 0) { in importGourceSettings()
603 if(!entry->hasValue()) conffile.missingValueException(entry); in importGourceSettings()
605 std::string hide_string = entry->getString(); in importGourceSettings()
641 conffile.entryException(entry, unknown_hide_option); in importGourceSettings()
679 if((entry = gource_settings->getEntry("date-format")) != 0) { in importGourceSettings()
681 if(!entry->hasValue()) conffile.missingValueException(entry); in importGourceSettings()
683 date_format = entry->getString(); in importGourceSettings()
702 if((entry = gource_settings->getEntry("loop-delay-seconds")) != 0) { in importGourceSettings()
704 if(!entry->hasValue()) conffile.entryException(entry, "specify loop-delay-seconds (float)"); in importGourceSettings()
706 loop_delay_seconds = entry->getFloat(); in importGourceSettings()
709 conffile.invalidValueException(entry); in importGourceSettings()
713 if((entry = gource_settings->getEntry("git-branch")) != 0) { in importGourceSettings()
715 if(!entry->hasValue()) conffile.missingValueException(entry); in importGourceSettings()
719 std::string branch = entry->getString(); in importGourceSettings()
724 conffile.invalidValueException(entry); in importGourceSettings()
732 if((entry = gource_settings->getEntry("crop")) != 0) { in importGourceSettings()
734 if(!entry->hasValue()) conffile.entryException(entry, "specify crop (vertical,horizontal)"); in importGourceSettings()
736 std::string crop = entry->getString(); in importGourceSettings()
743 conffile.invalidValueException(entry); in importGourceSettings()
747 if((entry = gource_settings->getEntry("log-format")) != 0) { in importGourceSettings()
749 if(!entry->hasValue()) conffile.entryException(entry, "specify log-format (format)"); in importGourceSettings()
751 log_format = entry->getString(); in importGourceSettings()
754 conffile.entryException(entry, "please use either 'cvs2cl' or 'cvs-exp'"); in importGourceSettings()
766 conffile.invalidValueException(entry); in importGourceSettings()
770 if((entry = gource_settings->getEntry("default-user-image")) != 0) { in importGourceSettings()
772 … if(!entry->hasValue()) conffile.entryException(entry, "specify default-user-image (image path)"); in importGourceSettings()
774 default_user_image = entry->getString(); in importGourceSettings()
777 if((entry = gource_settings->getEntry("user-image-dir")) != 0) { in importGourceSettings()
779 if(!entry->hasValue()) conffile.entryException(entry, "specify user-image-dir (directory)"); in importGourceSettings()
781 user_image_dir = entry->getString(); in importGourceSettings()
793 conffile.entryException(entry, "specified user-image-dir is not a directory"); in importGourceSettings()
801 conffile.entryException(entry, "error reading specified user-image-dir"); in importGourceSettings()
840 if((entry = gource_settings->getEntry("caption-file")) != 0) { in importGourceSettings()
842 if(!entry->hasValue()) conffile.entryException(entry, "specify caption file (filename)"); in importGourceSettings()
844 caption_file = entry->getString(); in importGourceSettings()
847 conffile.entryException(entry, "caption file not found"); in importGourceSettings()
851 if((entry = gource_settings->getEntry("caption-duration")) != 0) { in importGourceSettings()
853 if(!entry->hasValue()) conffile.entryException(entry, "specify caption duration (seconds)"); in importGourceSettings()
855 caption_duration = entry->getFloat(); in importGourceSettings()
858 conffile.invalidValueException(entry); in importGourceSettings()
862 if((entry = gource_settings->getEntry("caption-size")) != 0) { in importGourceSettings()
864 if(!entry->hasValue()) conffile.entryException(entry, "specify caption size"); in importGourceSettings()
866 caption_size = entry->getInt(); in importGourceSettings()
869 conffile.invalidValueException(entry); in importGourceSettings()
873 if((entry = gource_settings->getEntry("caption-offset")) != 0) { in importGourceSettings()
875 if(!entry->hasValue()) conffile.entryException(entry, "specify caption offset"); in importGourceSettings()
877 caption_offset = entry->getInt(); in importGourceSettings()
880 if((entry = gource_settings->getEntry("caption-colour")) != 0) { in importGourceSettings()
882 if(!entry->hasValue()) conffile.entryException(entry, "specify caption colour (FFFFFF)"); in importGourceSettings()
886 std::string colstring = entry->getString(); in importGourceSettings()
888 if(entry->isVec3()) { in importGourceSettings()
889 caption_colour = entry->getVec3(); in importGourceSettings()
894 conffile.invalidValueException(entry); in importGourceSettings()
898 if((entry = gource_settings->getEntry("filename-colour")) != 0) { in importGourceSettings()
899 if(!entry->hasValue()) conffile.entryException(entry, "specify filename colour (FFFFFF)"); in importGourceSettings()
903 std::string colstring = entry->getString(); in importGourceSettings()
905 if(entry->isVec3()) { in importGourceSettings()
906 filename_colour = entry->getVec3(); in importGourceSettings()
911 conffile.invalidValueException(entry); in importGourceSettings()
915 if((entry = gource_settings->getEntry("filename-time")) != 0) { in importGourceSettings()
917 …if(!entry->hasValue()) conffile.entryException(entry, "specify duration to keep files on screen (f… in importGourceSettings()
919 filename_time = entry->getFloat(); in importGourceSettings()
922 conffile.entryException(entry, "filename-time must be >= 2.0"); in importGourceSettings()
926 if((entry = gource_settings->getEntry("bloom-intensity")) != 0) { in importGourceSettings()
928 if(!entry->hasValue()) conffile.entryException(entry, "specify bloom-intensity (float)"); in importGourceSettings()
930 bloom_intensity = entry->getFloat(); in importGourceSettings()
933 conffile.invalidValueException(entry); in importGourceSettings()
937 if((entry = gource_settings->getEntry("bloom-multiplier")) != 0) { in importGourceSettings()
939 if(!entry->hasValue()) conffile.entryException(entry, "specify bloom-multiplier (float)"); in importGourceSettings()
941 bloom_multiplier = entry->getFloat(); in importGourceSettings()
944 conffile.invalidValueException(entry); in importGourceSettings()
948 if((entry = gource_settings->getEntry("elasticity")) != 0) { in importGourceSettings()
950 if(!entry->hasValue()) conffile.entryException(entry, "specify elasticity (float)"); in importGourceSettings()
952 elasticity = entry->getFloat(); in importGourceSettings()
955 conffile.invalidValueException(entry); in importGourceSettings()
959 if((entry = gource_settings->getEntry("font-file")) != 0) { in importGourceSettings()
961 if(!entry->hasValue()) conffile.entryException(entry, "specify font file"); in importGourceSettings()
963 font_file = entry->getString(); in importGourceSettings()
968 conffile.invalidValueException(entry); in importGourceSettings()
974 conffile.invalidValueException(entry); in importGourceSettings()
978 if((entry = gource_settings->getEntry("font-size")) != 0) { in importGourceSettings()
980 if(!entry->hasValue()) conffile.entryException(entry, "specify font size"); in importGourceSettings()
982 font_size = entry->getInt(); in importGourceSettings()
985 conffile.invalidValueException(entry); in importGourceSettings()
989 if((entry = gource_settings->getEntry("file-font-size")) != 0) { in importGourceSettings()
991 if(!entry->hasValue()) conffile.entryException(entry, "specify font size"); in importGourceSettings()
993 filename_font_size = entry->getInt(); in importGourceSettings()
996 conffile.invalidValueException(entry); in importGourceSettings()
1000 if((entry = gource_settings->getEntry("dir-font-size")) != 0) { in importGourceSettings()
1002 if(!entry->hasValue()) conffile.entryException(entry, "specify font size"); in importGourceSettings()
1004 dirname_font_size = entry->getInt(); in importGourceSettings()
1007 conffile.invalidValueException(entry); in importGourceSettings()
1011 if((entry = gource_settings->getEntry("user-font-size")) != 0) { in importGourceSettings()
1013 if(!entry->hasValue()) conffile.entryException(entry, "specify font size"); in importGourceSettings()
1015 user_font_size = entry->getInt(); in importGourceSettings()
1018 conffile.invalidValueException(entry); in importGourceSettings()
1022 if((entry = gource_settings->getEntry("font-scale")) != 0) { in importGourceSettings()
1024 if(!entry->hasValue()) conffile.entryException(entry, "specify font scale"); in importGourceSettings()
1026 float font_scale = entry->getFloat(); in importGourceSettings()
1029 conffile.invalidValueException(entry); in importGourceSettings()
1037 if((entry = gource_settings->getEntry("hash-seed")) != 0) { in importGourceSettings()
1039 if(!entry->hasValue()) conffile.entryException(entry, "specify hash seed (integer)"); in importGourceSettings()
1041 gStringHashSeed = entry->getInt(); in importGourceSettings()
1044 if((entry = gource_settings->getEntry("font-colour")) != 0) { in importGourceSettings()
1046 if(!entry->hasValue()) conffile.entryException(entry, "specify font colour (FFFFFF)"); in importGourceSettings()
1050 std::string colstring = entry->getString(); in importGourceSettings()
1052 if(entry->isVec3()) { in importGourceSettings()
1053 font_colour = entry->getVec3(); in importGourceSettings()
1058 conffile.invalidValueException(entry); in importGourceSettings()
1062 if((entry = gource_settings->getEntry("background-colour")) != 0) { in importGourceSettings()
1064 if(!entry->hasValue()) conffile.entryException(entry, "specify background colour (FFFFFF)"); in importGourceSettings()
1068 std::string colstring = entry->getString(); in importGourceSettings()
1070 if(entry->isVec3()) { in importGourceSettings()
1071 background_colour = entry->getVec3(); in importGourceSettings()
1076 conffile.invalidValueException(entry); in importGourceSettings()
1080 if((entry = gource_settings->getEntry("highlight-colour")) != 0) { in importGourceSettings()
1082 if(!entry->hasValue()) conffile.entryException(entry, "specify highlight colour (FFFFFF)"); in importGourceSettings()
1086 std::string colstring = entry->getString(); in importGourceSettings()
1088 if(entry->isVec3()) { in importGourceSettings()
1089 highlight_colour = entry->getVec3(); in importGourceSettings()
1094 conffile.invalidValueException(entry); in importGourceSettings()
1098 if((entry = gource_settings->getEntry("selection-colour")) != 0) { in importGourceSettings()
1100 if(!entry->hasValue()) conffile.entryException(entry, "specify selection colour (FFFFFF)"); in importGourceSettings()
1104 std::string colstring = entry->getString(); in importGourceSettings()
1106 if(entry->isVec3()) { in importGourceSettings()
1107 selection_colour = entry->getVec3(); in importGourceSettings()
1112 conffile.invalidValueException(entry); in importGourceSettings()
1116 if((entry = gource_settings->getEntry("dir-colour")) != 0) { in importGourceSettings()
1118 if(!entry->hasValue()) conffile.entryException(entry, "specify dir colour (FFFFFF)"); in importGourceSettings()
1122 std::string colstring = entry->getString(); in importGourceSettings()
1124 if(entry->isVec3()) { in importGourceSettings()
1125 dir_colour = entry->getVec3(); in importGourceSettings()
1130 conffile.invalidValueException(entry); in importGourceSettings()
1134 if((entry = gource_settings->getEntry("background-image")) != 0) { in importGourceSettings()
1136 … if(!entry->hasValue()) conffile.entryException(entry, "specify background image (image path)"); in importGourceSettings()
1138 background_image = entry->getString(); in importGourceSettings()
1141 if((entry = gource_settings->getEntry("title")) != 0) { in importGourceSettings()
1143 if(!entry->hasValue()) conffile.entryException(entry, "specify title"); in importGourceSettings()
1145 title = entry->getString(); in importGourceSettings()
1148 if((entry = gource_settings->getEntry("logo")) != 0) { in importGourceSettings()
1150 if(!entry->hasValue()) conffile.entryException(entry, "specify logo (image path)"); in importGourceSettings()
1152 logo = entry->getString(); in importGourceSettings()
1155 if((entry = gource_settings->getEntry("logo-offset")) != 0) { in importGourceSettings()
1157 if(!entry->hasValue()) conffile.entryException(entry, "specify logo-offset (XxY)"); in importGourceSettings()
1159 std::string logo_offset_str = entry->getString(); in importGourceSettings()
1167 conffile.invalidValueException(entry); in importGourceSettings()
1172 if((entry = gource_settings->getEntry("seconds-per-day")) != 0) { in importGourceSettings()
1174 if(!entry->hasValue()) conffile.entryException(entry, "specify seconds-per-day (seconds)"); in importGourceSettings()
1176 float seconds_per_day = entry->getFloat(); in importGourceSettings()
1179 conffile.invalidValueException(entry); in importGourceSettings()
1186 if((entry = gource_settings->getEntry("auto-skip-seconds")) != 0) { in importGourceSettings()
1188 … if(!entry->hasValue()) conffile.entryException(entry, "specify auto-skip-seconds (seconds)"); in importGourceSettings()
1190 auto_skip_seconds = entry->getFloat(); in importGourceSettings()
1193 conffile.invalidValueException(entry); in importGourceSettings()
1197 if((entry = gource_settings->getEntry("file-idle-time")) != 0) { in importGourceSettings()
1199 if(!entry->hasValue()) conffile.entryException(entry, "specify file-idle-time (seconds)"); in importGourceSettings()
1201 std::string file_idle_str = entry->getString(); in importGourceSettings()
1206 conffile.invalidValueException(entry); in importGourceSettings()
1210 if((entry = gource_settings->getEntry("user-idle-time")) != 0) { in importGourceSettings()
1212 if(!entry->hasValue()) conffile.entryException(entry, "specify user-idle-time (seconds)"); in importGourceSettings()
1214 user_idle_time = entry->getFloat(); in importGourceSettings()
1217 conffile.invalidValueException(entry); in importGourceSettings()
1221 if((entry = gource_settings->getEntry("time-scale")) != 0) { in importGourceSettings()
1223 if(!entry->hasValue()) in importGourceSettings()
1224 conffile.entryException(entry, "specify time-scale (scale)"); in importGourceSettings()
1226 time_scale = entry->getFloat(); in importGourceSettings()
1229 conffile.entryException(entry, "time-scale outside of range 0.0 - 4.0"); in importGourceSettings()
1233 if((entry = gource_settings->getEntry("start-date")) != 0) { in importGourceSettings()
1235 … if(!entry->hasValue()) conffile.entryException(entry, "specify start-date (YYYY-MM-DD hh:mm:ss)"); in importGourceSettings()
1237 std::string start_date_string = entry->getString(); in importGourceSettings()
1246 conffile.invalidValueException(entry); in importGourceSettings()
1250 if((entry = gource_settings->getEntry("stop-date")) != 0) { in importGourceSettings()
1252 … if(!entry->hasValue()) conffile.entryException(entry, "specify stop-date (YYYY-MM-DD hh:mm:ss)"); in importGourceSettings()
1254 std::string end_date_string = entry->getString(); in importGourceSettings()
1272 conffile.invalidValueException(entry); in importGourceSettings()
1276 if((entry = gource_settings->getEntry("start-position")) != 0) { in importGourceSettings()
1278 … if(!entry->hasValue()) conffile.entryException(entry, "specify start-position (float,random)"); in importGourceSettings()
1280 if(entry->getString() == "random") { in importGourceSettings()
1284 start_position = entry->getFloat(); in importGourceSettings()
1287 … conffile.entryException(entry, "start-position outside of range 0.0 - 1.0 (non-inclusive)"); in importGourceSettings()
1292 if((entry = gource_settings->getEntry("stop-position")) != 0) { in importGourceSettings()
1294 if(!entry->hasValue()) conffile.entryException(entry, "specify stop-position (float)"); in importGourceSettings()
1296 stop_position = entry->getFloat(); in importGourceSettings()
1299 conffile.entryException(entry, "stop-position outside of range 0.0 - 1.0 (inclusive)"); in importGourceSettings()
1303 if((entry = gource_settings->getEntry("stop-at-time")) != 0) { in importGourceSettings()
1305 if(!entry->hasValue()) conffile.entryException(entry, "specify stop-at-time (seconds)"); in importGourceSettings()
1307 stop_at_time = entry->getFloat(); in importGourceSettings()
1310 conffile.invalidValueException(entry); in importGourceSettings()
1343 if((entry = gource_settings->getEntry("max-files")) != 0) { in importGourceSettings()
1345 if(!entry->hasValue()) conffile.entryException(entry, "specify max-files (number)"); in importGourceSettings()
1347 max_files = entry->getInt(); in importGourceSettings()
1349 if( max_files<0 || (max_files == 0 && entry->getString() != "0") ) { in importGourceSettings()
1350 conffile.invalidValueException(entry); in importGourceSettings()
1354 if((entry = gource_settings->getEntry("max-file-lag")) != 0) { in importGourceSettings()
1356 if(!entry->hasValue()) conffile.entryException(entry, "specify max-file-lag (seconds)"); in importGourceSettings()
1358 max_file_lag = entry->getFloat(); in importGourceSettings()
1361 conffile.invalidValueException(entry); in importGourceSettings()
1365 if((entry = gource_settings->getEntry("user-friction")) != 0) { in importGourceSettings()
1367 if(!entry->hasValue()) conffile.entryException(entry, "specify user-friction (seconds)"); in importGourceSettings()
1369 user_friction = entry->getFloat(); in importGourceSettings()
1372 conffile.invalidValueException(entry); in importGourceSettings()
1378 if((entry = gource_settings->getEntry("user-scale")) != 0) { in importGourceSettings()
1380 if(!entry->hasValue()) conffile.entryException(entry, "specify user-scale (scale)"); in importGourceSettings()
1382 user_scale = entry->getFloat(); in importGourceSettings()
1385 conffile.invalidValueException(entry); in importGourceSettings()
1389 if((entry = gource_settings->getEntry("max-user-speed")) != 0) { in importGourceSettings()
1391 if(!entry->hasValue()) conffile.entryException(entry, "specify max-user-speed (units)"); in importGourceSettings()
1393 max_user_speed = entry->getFloat(); in importGourceSettings()
1396 conffile.invalidValueException(entry); in importGourceSettings()
1409 if((entry = gource_settings->getEntry("camera-mode")) != 0) { in importGourceSettings()
1411 … if(!entry->hasValue()) conffile.entryException(entry, "specify camera-mode (overview,track)"); in importGourceSettings()
1413 camera_mode = entry->getString(); in importGourceSettings()
1416 conffile.invalidValueException(entry); in importGourceSettings()
1420 if((entry = gource_settings->getEntry("padding")) != 0) { in importGourceSettings()
1422 if(!entry->hasValue()) conffile.entryException(entry, "specify padding (float)"); in importGourceSettings()
1424 padding = entry->getFloat(); in importGourceSettings()
1427 conffile.invalidValueException(entry); in importGourceSettings()
1433 if((entry = gource_settings->getEntry("highlight-user")) != 0) { in importGourceSettings()
1439 entry = *it; in importGourceSettings()
1441 if(!entry->hasValue()) conffile.entryException(entry, "specify highlight-user (user)"); in importGourceSettings()
1443 highlight_users.push_back(entry->getString()); in importGourceSettings()
1447 if((entry = gource_settings->getEntry("follow-user")) != 0) { in importGourceSettings()
1453 entry = *it; in importGourceSettings()
1455 if(!entry->hasValue()) conffile.entryException(entry, "specify follow-user (user)"); in importGourceSettings()
1457 follow_users.push_back(entry->getString()); in importGourceSettings()
1469 if((entry = gource_settings->getEntry("file-filter")) != 0) { in importGourceSettings()
1475 entry = *it; in importGourceSettings()
1477 if(!entry->hasValue()) conffile.entryException(entry, "specify file-filter (regex)"); in importGourceSettings()
1479 std::string filter_string = entry->getString(); in importGourceSettings()
1485 conffile.entryException(entry, "invalid file-filter regular expression"); in importGourceSettings()
1492 if((entry = gource_settings->getEntry("file-show-filter")) != 0) { in importGourceSettings()
1498 entry = *it; in importGourceSettings()
1500 … if(!entry->hasValue()) conffile.entryException(entry, "specify file-show-filter (regex)"); in importGourceSettings()
1502 std::string filter_string = entry->getString(); in importGourceSettings()
1508 conffile.entryException(entry, "invalid file-show-filter regular expression"); in importGourceSettings()
1515 if((entry = gource_settings->getEntry("user-filter")) != 0) { in importGourceSettings()
1521 entry = *it; in importGourceSettings()
1523 if(!entry->hasValue()) conffile.entryException(entry, "specify user-filter (regex)"); in importGourceSettings()
1525 std::string filter_string = entry->getString(); in importGourceSettings()
1531 conffile.entryException(entry, "invalid user-filter regular expression"); in importGourceSettings()
1538 if((entry = gource_settings->getEntry("user-show-filter")) != 0) { in importGourceSettings()
1544 entry = *it; in importGourceSettings()
1546 … if(!entry->hasValue()) conffile.entryException(entry, "specify user-show-filter (regex)"); in importGourceSettings()
1548 std::string filter_string = entry->getString(); in importGourceSettings()
1554 conffile.entryException(entry, "invalid user-show-filter regular expression"); in importGourceSettings()
1561 if((entry = gource_settings->getEntry("dir-name-depth")) != 0) { in importGourceSettings()
1563 if(!entry->hasValue()) conffile.entryException(entry, "specify dir-name-depth (depth)"); in importGourceSettings()
1565 dir_name_depth = entry->getInt(); in importGourceSettings()
1568 conffile.invalidValueException(entry); in importGourceSettings()
1572 if((entry = gource_settings->getEntry("dir-name-position")) != 0) { in importGourceSettings()
1574 if(!entry->hasValue()) conffile.entryException(entry, "specify dir-name-position (float)"); in importGourceSettings()
1576 dir_name_position = entry->getFloat(); in importGourceSettings()
1579 … conffile.entryException(entry, "dir-name-position outside of range 0.1 - 1.0 (inclusive)"); in importGourceSettings()