Cleanup struct initialization and formatting
This commit is contained in:
parent
18dbe51d66
commit
0259e0ba07
|
@ -79,32 +79,32 @@ static const wxChar traceEnvVars[] = wxT( "KIENVVARS" );
|
|||
#define _(s) s
|
||||
LANGUAGE_DESCR LanguagesList[] =
|
||||
{
|
||||
{ wxLANGUAGE_DEFAULT, ID_LANGUAGE_DEFAULT, lang_def_xpm, _( "Default" ) },
|
||||
{ wxLANGUAGE_ENGLISH, ID_LANGUAGE_ENGLISH, lang_en_xpm, wxT( "English" ), true },
|
||||
{ wxLANGUAGE_FRENCH, ID_LANGUAGE_FRENCH, lang_fr_xpm, _( "French" ) },
|
||||
{ wxLANGUAGE_FINNISH, ID_LANGUAGE_FINNISH, lang_fi_xpm, _( "Finnish" ) },
|
||||
{ wxLANGUAGE_SPANISH, ID_LANGUAGE_SPANISH, lang_es_xpm, _( "Spanish" ) },
|
||||
{ wxLANGUAGE_PORTUGUESE, ID_LANGUAGE_PORTUGUESE, lang_pt_xpm, _( "Portuguese" ) },
|
||||
{ wxLANGUAGE_ITALIAN, ID_LANGUAGE_ITALIAN, lang_it_xpm, _( "Italian" ) },
|
||||
{ wxLANGUAGE_GERMAN, ID_LANGUAGE_GERMAN, lang_de_xpm, _( "German" ) },
|
||||
{ wxLANGUAGE_GREEK, ID_LANGUAGE_GREEK, lang_gr_xpm, _( "Greek" ) },
|
||||
{ wxLANGUAGE_SLOVENIAN, ID_LANGUAGE_SLOVENIAN, lang_sl_xpm, _( "Slovenian" ) },
|
||||
{ wxLANGUAGE_SLOVAK, ID_LANGUAGE_SLOVAK, lang_sk_xpm, _( "Slovak" ) },
|
||||
{ wxLANGUAGE_HUNGARIAN, ID_LANGUAGE_HUNGARIAN, lang_hu_xpm, _( "Hungarian" ) },
|
||||
{ wxLANGUAGE_POLISH, ID_LANGUAGE_POLISH, lang_pl_xpm, _( "Polish" ) },
|
||||
{ wxLANGUAGE_CZECH, ID_LANGUAGE_CZECH, lang_cs_xpm, _( "Czech" ) },
|
||||
{ wxLANGUAGE_RUSSIAN, ID_LANGUAGE_RUSSIAN, lang_ru_xpm, _( "Russian" ) },
|
||||
{ wxLANGUAGE_KOREAN, ID_LANGUAGE_KOREAN, lang_ko_xpm, _( "Korean" ) },
|
||||
{ wxLANGUAGE_DEFAULT, ID_LANGUAGE_DEFAULT, lang_def_xpm, _( "Default" ), false },
|
||||
{ wxLANGUAGE_ENGLISH, ID_LANGUAGE_ENGLISH, lang_en_xpm, wxT( "English" ), true },
|
||||
{ wxLANGUAGE_FRENCH, ID_LANGUAGE_FRENCH, lang_fr_xpm, _( "French" ), false },
|
||||
{ wxLANGUAGE_FINNISH, ID_LANGUAGE_FINNISH, lang_fi_xpm, _( "Finnish" ), false },
|
||||
{ wxLANGUAGE_SPANISH, ID_LANGUAGE_SPANISH, lang_es_xpm, _( "Spanish" ), false },
|
||||
{ wxLANGUAGE_PORTUGUESE, ID_LANGUAGE_PORTUGUESE, lang_pt_xpm, _( "Portuguese" ), false },
|
||||
{ wxLANGUAGE_ITALIAN, ID_LANGUAGE_ITALIAN, lang_it_xpm, _( "Italian" ), false },
|
||||
{ wxLANGUAGE_GERMAN, ID_LANGUAGE_GERMAN, lang_de_xpm, _( "German" ), false },
|
||||
{ wxLANGUAGE_GREEK, ID_LANGUAGE_GREEK, lang_gr_xpm, _( "Greek" ), false },
|
||||
{ wxLANGUAGE_SLOVENIAN, ID_LANGUAGE_SLOVENIAN, lang_sl_xpm, _( "Slovenian" ), false },
|
||||
{ wxLANGUAGE_SLOVAK, ID_LANGUAGE_SLOVAK, lang_sk_xpm, _( "Slovak" ), false },
|
||||
{ wxLANGUAGE_HUNGARIAN, ID_LANGUAGE_HUNGARIAN, lang_hu_xpm, _( "Hungarian" ), false },
|
||||
{ wxLANGUAGE_POLISH, ID_LANGUAGE_POLISH, lang_pl_xpm, _( "Polish" ), false },
|
||||
{ wxLANGUAGE_CZECH, ID_LANGUAGE_CZECH, lang_cs_xpm, _( "Czech" ), false },
|
||||
{ wxLANGUAGE_RUSSIAN, ID_LANGUAGE_RUSSIAN, lang_ru_xpm, _( "Russian" ), false },
|
||||
{ wxLANGUAGE_KOREAN, ID_LANGUAGE_KOREAN, lang_ko_xpm, _( "Korean" ), false },
|
||||
{ wxLANGUAGE_CHINESE_SIMPLIFIED, ID_LANGUAGE_CHINESE_SIMPLIFIED, lang_zh_xpm,
|
||||
_( "Chinese simplified" ) },
|
||||
_( "Chinese simplified" ), false },
|
||||
{ wxLANGUAGE_CHINESE_TRADITIONAL, ID_LANGUAGE_CHINESE_TRADITIONAL, lang_zh_xpm,
|
||||
_( "Chinese traditional" ) },
|
||||
{ wxLANGUAGE_CATALAN, ID_LANGUAGE_CATALAN, lang_ca_xpm, _( "Catalan" ) },
|
||||
{ wxLANGUAGE_DUTCH, ID_LANGUAGE_DUTCH, lang_nl_xpm, _( "Dutch" ) },
|
||||
{ wxLANGUAGE_JAPANESE, ID_LANGUAGE_JAPANESE, lang_jp_xpm, _( "Japanese" ) },
|
||||
{ wxLANGUAGE_BULGARIAN, ID_LANGUAGE_BULGARIAN, lang_bg_xpm, _( "Bulgarian" ) },
|
||||
{ wxLANGUAGE_LITHUANIAN, ID_LANGUAGE_LITHUANIAN, lang_lt_xpm, _( "Lithuanian" ) },
|
||||
{ 0, 0, lang_def_xpm, "" } // Sentinel
|
||||
_( "Chinese traditional" ), false },
|
||||
{ wxLANGUAGE_CATALAN, ID_LANGUAGE_CATALAN, lang_ca_xpm, _( "Catalan" ), false },
|
||||
{ wxLANGUAGE_DUTCH, ID_LANGUAGE_DUTCH, lang_nl_xpm, _( "Dutch" ), false },
|
||||
{ wxLANGUAGE_JAPANESE, ID_LANGUAGE_JAPANESE, lang_jp_xpm, _( "Japanese" ), false },
|
||||
{ wxLANGUAGE_BULGARIAN, ID_LANGUAGE_BULGARIAN, lang_bg_xpm, _( "Bulgarian" ), false },
|
||||
{ wxLANGUAGE_LITHUANIAN, ID_LANGUAGE_LITHUANIAN, lang_lt_xpm, _( "Lithuanian" ), false },
|
||||
{ 0, 0, lang_def_xpm, "", false } // Sentinel
|
||||
};
|
||||
#undef _
|
||||
#define _(s) wxGetTranslation((s))
|
||||
|
|
|
@ -200,29 +200,29 @@ static EXCELLON_CMD excellonHeaderCmdList[] =
|
|||
{ "M30", DRILL_M_ENDFILE, -1 }, // End of File (last line of NC drill)
|
||||
{ "M47", DRILL_M_MESSAGE, -1 }, // Operator Message
|
||||
{ "M45", DRILL_M_LONGMESSAGE, -1 }, // Long Operator message (use more than one line)
|
||||
{ "M48", DRILL_M_HEADER, 0 }, // beginning of a header
|
||||
{ "M95", DRILL_M_ENDHEADER, 0 }, // End of the header
|
||||
{ "METRIC", DRILL_METRIC_HEADER, 1 },
|
||||
{ "INCH", DRILL_IMPERIAL_HEADER, 1 },
|
||||
{ "M71", DRILL_M_METRIC, 1 },
|
||||
{ "M72", DRILL_M_IMPERIAL, 1 },
|
||||
{ "M25", DRILL_M_BEGINPATTERN, 0 }, // Beginning of Pattern
|
||||
{ "M01", DRILL_M_ENDPATTERN, 0 }, // End of Pattern
|
||||
{ "M48", DRILL_M_HEADER, 0 }, // beginning of a header
|
||||
{ "M95", DRILL_M_ENDHEADER, 0 }, // End of the header
|
||||
{ "METRIC", DRILL_METRIC_HEADER, 1 },
|
||||
{ "INCH", DRILL_IMPERIAL_HEADER, 1 },
|
||||
{ "M71", DRILL_M_METRIC, 1 },
|
||||
{ "M72", DRILL_M_IMPERIAL, 1 },
|
||||
{ "M25", DRILL_M_BEGINPATTERN, 0 }, // Beginning of Pattern
|
||||
{ "M01", DRILL_M_ENDPATTERN, 0 }, // End of Pattern
|
||||
{ "M97", DRILL_M_CANNEDTEXT, -1 },
|
||||
{ "M98", DRILL_M_CANNEDTEXT, -1 },
|
||||
{ "DETECT", DRILL_DETECT_BROKEN, -1 },
|
||||
{ "ICI", DRILL_INCREMENTALHEADER, 1 },
|
||||
{ "FMAT", DRILL_FMT, 1 }, // Use Format command
|
||||
{ "ATC", DRILL_AUTOMATIC_TOOL_CHANGE, 0 },
|
||||
{ "TCST", DRILL_TOOL_CHANGE_STOP, 0 }, // Tool Change Stop
|
||||
{ "AFS", DRILL_AUTOMATIC_SPEED }, // Automatic Feeds and Speeds
|
||||
{ "VER", DRILL_AXIS_VERSION, 1 }, // Selection of X and Y Axis Version
|
||||
{ "ICI", DRILL_INCREMENTALHEADER, 1 },
|
||||
{ "FMAT", DRILL_FMT, 1 }, // Use Format command
|
||||
{ "ATC", DRILL_AUTOMATIC_TOOL_CHANGE, 0 },
|
||||
{ "TCST", DRILL_TOOL_CHANGE_STOP, 0 }, // Tool Change Stop
|
||||
{ "AFS", DRILL_AUTOMATIC_SPEED, 0 }, // Automatic Feeds and Speeds
|
||||
{ "VER", DRILL_AXIS_VERSION, 1 }, // Selection of X and Y Axis Version
|
||||
{ "R", DRILL_RESET_CMD, -1 }, // Reset commands
|
||||
{ "%", DRILL_REWIND_STOP, -1 }, // Rewind stop. End of the header
|
||||
{ "/", DRILL_SKIP, -1 }, // Clear Tool Linking. End of the header
|
||||
// Keep this item after all commands starting by 'T':
|
||||
{ "T", DRILL_TOOL_INFORMATION, 0 }, // Tool Information
|
||||
{ "", DRILL_M_UNKNOWN, 0 } // last item in list
|
||||
{ "T", DRILL_TOOL_INFORMATION, 0 }, // Tool Information
|
||||
{ "", DRILL_M_UNKNOWN, 0 } // last item in list
|
||||
};
|
||||
|
||||
static EXCELLON_CMD excellon_G_CmdList[] =
|
||||
|
|
Loading…
Reference in New Issue