本文整理汇总了C++中roadmap_config_get函数的典型用法代码示例。如果您正苦于以下问题:C++ roadmap_config_get函数的具体用法?C++ roadmap_config_get怎么用?C++ roadmap_config_get使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。
在下文中一共展示了roadmap_config_get函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C++代码示例。
示例1: RealtimeTrafficInfoPluginInit
void RealtimeTrafficInfoPluginInit () {
roadmap_config_declare
("schema", &RouteInfoConfigRouteColorGood, "#fdf66b", NULL); //Yellow
roadmap_config_declare
("schema", &RouteInfoConfigRouteColorMild, "#f57a24", NULL); //Orange
roadmap_config_declare
("schema", &RouteInfoConfigRouteColorBad, "#FF0000", NULL); //Red
roadmap_config_declare_enumeration
("preferences", &RouteInfoConfigDisplayTraffic, NULL, "yes", "no", NULL);
pens[TRAFFIC_OK] = roadmap_canvas_create_pen ("RealtimeTrafficInfoPenGood");
roadmap_canvas_set_foreground
(roadmap_config_get (&RouteInfoConfigRouteColorGood));
roadmap_canvas_set_thickness (TRAFFIC_PEN_WIDTH);
pens[TRAFFIC_MILD] = roadmap_canvas_create_pen ("RealtimeTrafficInfoPenMild");
roadmap_canvas_set_foreground
(roadmap_config_get (&RouteInfoConfigRouteColorMild));
roadmap_canvas_set_thickness (TRAFFIC_PEN_WIDTH);
pens[TRAFFIC_BAD] = roadmap_canvas_create_pen ("RealtimeTrafficInfoPenBad");
roadmap_canvas_set_foreground
(roadmap_config_get (&RouteInfoConfigRouteColorBad));
roadmap_canvas_set_thickness (TRAFFIC_PEN_WIDTH);
speed_text_pen = roadmap_canvas_create_pen("SpeedText");
roadmap_canvas_set_foreground("#000000");
if (roadmap_config_match(&RouteInfoConfigDisplayTraffic, "yes")){
RealtimeTrafficInfoRegister();
Realtime_SendTrafficInfo(1);
}
}
开发者ID:NNN-zz,项目名称:Freemap-waze,代码行数:35,代码来源:RealtimeTrafficInfoPlugin.c
示例2: roadmap_voice_announce
void roadmap_voice_announce (const char *title) {
int i;
char text[1024];
char expanded[1024];
char *final;
char *arguments;
if (!featureEnabled)
return;
if (RoadMapVoiceMuted) {
if (strcasecmp
(roadmap_config_get (&RoadMapVoiceMute), "no") == 0) {
RoadMapVoiceMuted = 0;
} else {
return;
}
}
RoadMapVoiceActive.handler = roadmap_voice_complete;
for (i = 0; RoadMapVoiceText[i].default_text != NULL; ++i) {
if (strcmp (title, RoadMapVoiceText[i].config.name) == 0) {
break;
}
}
if (RoadMapVoiceText[i].default_text == NULL) {
roadmap_log (ROADMAP_ERROR, "invalid voice %s", title);
return;
}
if (!roadmap_message_format
(text, sizeof(text),
roadmap_config_get (&RoadMapVoiceText[i].config)) ||
(text[0] == 0)) {
/* No message. */
return;
}
if (roadmap_voice_expand (text, expanded, sizeof(expanded))) {
final = expanded;
} else {
开发者ID:GitPicz,项目名称:waze,代码行数:48,代码来源:roadmap_voice.c
示例3: roadmap_lang_initialize_params
const char *roadmap_lang_get_default_lang(){
if (!initialized)
roadmap_lang_initialize_params();
return roadmap_config_get (&RoadMapConfigDefaultLanguage);
}
开发者ID:Priednis,项目名称:WazeWP7,代码行数:7,代码来源:roadmap_lang.c
示例4: roadmap_help_make_url
static void roadmap_help_make_url (const char *path) {
int size;
const char *options = roadmap_config_get(&RoadMapConfigBrowserOptions);
char *url;
size = strlen(options)
+ strlen(RDM_URLHEAD)
+ strlen(path)
+ strlen(RDM_MANUAL)
+ 8;
url = malloc (size);
strcpy(url, RDM_URLHEAD);
strcat(url, path);
strcat(url, "/" RDM_MANUAL "#%s");
if (options[0] != 0) {
RoadMapHelpManual = malloc(size);
sprintf (RoadMapHelpManual, options, url);
free (url);
} else {
RoadMapHelpManual = url;
}
}
开发者ID:FlavioFalcao,项目名称:Freemap-waze,代码行数:27,代码来源:roadmap_help.c
示例5: set_state
static void set_state () {
gState = ERTVisabilityGroup_from_string (roadmap_config_get (
&RT_CFG_PRM_VISGRP_Var));
// gReportState = ERTVisabilityReport_from_string (roadmap_config_get (
// &RT_CFG_PRM_VISREP_Var));
}
开发者ID:Daoudai,项目名称:waze-qt,代码行数:7,代码来源:RealtimePrivacy.c
示例6: roadmap_help_menu
void roadmap_help_menu(void){
int count = 0;
const char *help_menu[10];
if (roadmap_introduction_is_available()){
help_menu[count++] = "nutshell";
help_menu[count++] = "guided_tour";
if (!strcmp(roadmap_config_get(&RoadMapConfigHelpShowWhatToExpect), "yes")) {
help_menu[count++] = "what_to_expect";
}
//help_menu[count++] = "geoinfo";
}
help_menu[count++] = "submit_logs";
help_menu[count++] = "about";
help_menu[count++] = NULL;
roadmap_list_menu_simple ("Help menu",
NULL,
help_menu,
NULL,
NULL,
NULL,
NULL,
RoadMapStartActions,
0);
}
开发者ID:Daoudai,项目名称:waze-qt,代码行数:29,代码来源:roadmap_help.c
示例7: custom_bonus_feature_enabled
static BOOL custom_bonus_feature_enabled (void) {
if (0 == strcmp (roadmap_config_get (&RoadMapConfigCustomBonusFeatureEnabled), "yes")){
return TRUE;
}
return FALSE;
}
开发者ID:Daoudai,项目名称:waze-qt,代码行数:7,代码来源:RealtimeBonus.c
示例8: open_data_file
static int open_data_file (void) {
char *file_name;
if (track_file) return 0;
file_name = roadmap_path_join(roadmap_config_get(&RoadMapConfigMapPath),
"track_data.bin");
track_file =
roadmap_file_fopen(NULL, file_name, "a");
roadmap_path_free(file_name);
if (track_file == NULL) {
roadmap_messagebox("Error", "Can't open track_data");
return -1;
}
if (ftell(track_file) == 0) {
unsigned char version[4] = {0, 10, 0, 1};
if (fwrite(version, sizeof(version), 1, track_file) != 1) {
roadmap_messagebox("Error", "Can't write to track_data");
fclose(track_file);
track_file = NULL;
return -1;
}
}
return 0;
}
开发者ID:NoamSheffer,项目名称:WazeWP7,代码行数:30,代码来源:track_rec.c
示例9: roadmap_config_get
static RoadMapPen roadmap_display_new_pen
(RoadMapConfigDescriptor * descriptor) {
const char *color = roadmap_config_get (descriptor);
if (strcasecmp (color, "#000000") != 0) {
RoadMapPen pen;
char pen_name[256];
if (sizeof(pen_name) <
strlen(descriptor->category) + strlen(descriptor->name) + 2) {
roadmap_log(ROADMAP_FATAL,
"not enough space for pen name %s.%s\n",
descriptor->category,
descriptor->name);
}
strcpy (pen_name, descriptor->category);
strcat (pen_name, ".");
strcat (pen_name, descriptor->name);
pen = roadmap_canvas_create_pen (pen_name);
roadmap_canvas_set_foreground (color);
return pen;
}
return RoadMapMessageContour;
}
开发者ID:Daoudai,项目名称:waze-qt,代码行数:29,代码来源:roadmap_display.c
示例10: roadmap_groups_tip_shown
static BOOL roadmap_groups_tip_shown (void) {
if (0 == strcmp (roadmap_config_get (&RoadMapConfigGroupsTipShown), "yes")){
return TRUE;
}
return FALSE;
}
开发者ID:NoamSheffer,项目名称:WazeWP7,代码行数:8,代码来源:roadmap_groups.c
示例11: roadmap_groups_feature_enabled
BOOL roadmap_groups_feature_enabled (void) {
if (0 == strcmp (roadmap_config_get (&RoadMapConfigGroupsFeatureEnabled), "yes")){
return TRUE;
}
return FALSE;
}
开发者ID:NoamSheffer,项目名称:WazeWP7,代码行数:8,代码来源:roadmap_groups.c
示例12: sprintf
const char *roadmap_mood_get_top_name(){
static char mood_top[100];
roadmap_config_declare
("user", &MoodCfg, "happy", NULL);
sprintf(mood_top, "top_mood_%s", roadmap_config_get (&MoodCfg));
return &mood_top[0];
}
开发者ID:Daoudai,项目名称:waze-qt,代码行数:8,代码来源:roadmap_mood.c
示例13: roadmap_reminder_feature_enabled
BOOL roadmap_reminder_feature_enabled (void) {
#ifdef IPHONE_NATIVE
return FALSE; // Feature not ready yet for iPhone
#endif //IPHONE_NATIVE
if (0 == strcmp (roadmap_config_get (&RoadMapConfigFeatureEnabled), "yes_new"))
return TRUE;
return FALSE;
}
开发者ID:GitPicz,项目名称:waze,代码行数:9,代码来源:roadmap_reminder.c
示例14: roadmap_config_declare
const char *roadmap_lang_get_lang_file_update_time(const char *lang_value){
RoadMapConfigDescriptor descriptor;
descriptor.category = lang_value;
descriptor.name = "Update time";
roadmap_config_declare("session",&descriptor, "", NULL);
return roadmap_config_get (&descriptor);
}
开发者ID:Priednis,项目名称:WazeWP7,代码行数:10,代码来源:roadmap_lang.c
示例15: roadmap_groups_get_popup_config
int roadmap_groups_get_popup_config(void){
const char *conf_value;
conf_value = roadmap_config_get(&RoadMapConfigGroupsPopUpReports);
if (!strcmp(conf_value, POPUP_REPORT_VAL_NONE)) return POPUP_REPORT_NONE;
else if (!strcmp(conf_value, POPUP_REPORT_VAL_FOLLOWING_GROUPS)) return POPUP_REPORT_FOLLOWING_GROUPS;
else if (!strcmp(conf_value, POPUP_REPORT_VAL_ONLY_MAIN_GROUP)) return POPUP_REPORT_ONLY_MAIN_GROUP;
else return POPUP_REPORT_NONE;
}
开发者ID:NoamSheffer,项目名称:WazeWP7,代码行数:10,代码来源:roadmap_groups.c
示例16: roadmap_config_get
static const char *roadmap_option_get_geometry (const char *name) {
RoadMapConfigDescriptor descriptor;
descriptor.category = "Geometry";
descriptor.name = name;
descriptor.reference = NULL;
return roadmap_config_get (&descriptor);
}
开发者ID:Daoudai,项目名称:waze-qt,代码行数:10,代码来源:roadmap_option.c
示例17: roadmap_groups_get_show_wazer_config
int roadmap_groups_get_show_wazer_config(void){
const char *conf_value;
conf_value = roadmap_config_get(&RoadMapConfigGroupsShowWazers);
if (!strcmp(conf_value, SHOW_WAZER_GROUP_VAL_ALL)) return SHOW_WAZER_GROUP_ALL;
else if (!strcmp(conf_value, SHOW_WAZER_GROUP_VAL_FOLLOWING)) return SHOW_WAZER_GROUP_FOLLOWING;
else if (!strcmp(conf_value, SHOW_WAZER_GROUP_VAL_MAIN)) return SHOW_WAZER_GROUP_MAIN;
else return SHOW_WAZER_GROUP_MAIN;
}
开发者ID:NoamSheffer,项目名称:WazeWP7,代码行数:10,代码来源:roadmap_groups.c
示例18: geo_location_displayed
static BOOL geo_location_displayed(void){
roadmap_config_declare_enumeration( GEO_LOCATION_CONFIG_TYPE,
&GEO_LOCATION_DISPLAYED_Var,
NULL,
GEO_LOCATION_No,
GEO_LOCATION_Yes,
NULL);
if( 0 == strcmp( roadmap_config_get( &GEO_LOCATION_DISPLAYED_Var), GEO_LOCATION_Yes))
return TRUE;
return FALSE;
}
开发者ID:FlavioFalcao,项目名称:Freemap-waze,代码行数:11,代码来源:roadmap_geo_location_info.c
示例19: roadmap_native_keyboard_enabled
/***********************************************************
* Name : roadmap_native_keyboard_enabled
* Purpose : If the native keyboard enabled
* Params : void
*
*/
BOOL roadmap_native_keyboard_enabled( void )
{
#ifdef EMBEDDED_CE
return FALSE;
#else
if (0 == strcmp (roadmap_config_get (&RoadMapConfigUseNativeKeyboard), "yes"))
return TRUE;
return FALSE;
#endif
}
开发者ID:NoamSheffer,项目名称:WazeWP7,代码行数:17,代码来源:roadmap_native_keyboard.c
示例20: roadmap_config_get
const char *roadmap_lang_get_system_lang(){
const char *lang = roadmap_config_get (&RoadMapConfigSystemLanguage);
if (!initialized)
roadmap_lang_initialize_params();
if (!strcmp(lang,"default"))
return roadmap_lang_get_default_lang();
else
return lang;
}
开发者ID:Priednis,项目名称:WazeWP7,代码行数:11,代码来源:roadmap_lang.c
注:本文中的roadmap_config_get函数示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论