Iniciado por
Tirwal
Lo de los ficheros ini lo he intentado por activa y por pasiva, y no parece encontrarlos de ninguna manera si se meten dentro del firm (¿¿bug de la última versión de coolreader??).
Pues los fuentes dicen...
Código:
CRLog::trace("choosing init file...");
static const lChar16 * dirs[] = {
L"/root/abook/crengine/",
L"/home/crengine/",
L"/root/appdata/",
NULL
};
int i;
CRLog::debug("Loading settings...");
lString16 ini;
for ( i=0; dirs[i]; i++ ) {
ini = lString16(dirs[i]) + ini_fname;
if ( main_win->loadSettings( ini ) ) {
break;
}
}
CRLog::debug("settings at %s", UnicodeToUtf8(ini).c_str() );
Código:
#define SETTINGS_MENU_COMMANDS_START 300
enum MainMenuItems_t {
mm_Settings = SETTINGS_MENU_COMMANDS_START,
mm_FontFace,
mm_FontSize,
mm_FontAntiAliasing,
mm_InterlineSpace,
mm_Orientation,
mm_EmbeddedStyles,
mm_Inverse,
mm_StatusLine,
mm_BookmarkIcons,
mm_Footnotes,
mm_SetTime,
mm_ShowTime,
mm_Kerning,
mm_LandscapePages,
mm_PreformattedText,
mm_PageMargins,
mm_PageMarginTop,
mm_PageMarginLeft,
mm_PageMarginRight,
mm_PageMarginBottom,
mm_Hyphenation,
};
#define DECL_DEF_CR_FONT_SIZES static int cr_font_sizes[] =
{ 18, 20, 22, 24, 28, 32, 36, 42, 48, 56 }
// 2 2 2 4 4 4 6 6 8
//{ 18, 20, 22, 24, 26, 28, 32, 38, 42, 48 }
// 2 2 2 2 2 4 6 4 6