appprefs.h.svn-base
来自「SumatraPDF是一款小型开源的pdf阅读工具。虽然玲珑小巧(只有800多K」· SVN-BASE 代码 · 共 69 行
SVN-BASE
69 行
/* Copyright Krzysztof Kowalczyk 2006-2007
License: GPLv2 */
#ifndef APP_PREFS_H_
#define APP_PREFS_H_
#include "DisplayState.h"
#define DEFAULT_WIN_POS (int)-1
/* enum from m_windowState */
enum {
WIN_STATE_NORMAL = 1 /* use remebered position and size */
,WIN_STATE_MAXIMIZED /* ignore position and size, maximize the window */
,WIN_STATE_FULLSCREEN
};
/* Most of the global settings that we persist in preferences file. */
typedef struct {
BOOL m_showToolbar;
/* If false, we won't ask the user if he wants Sumatra to handle PDF files */
BOOL m_pdfAssociateDontAskAgain;
/* If m_pdfAssociateDontAskAgain is TRUE, says whether we should
silently associate or not */
BOOL m_pdfAssociateShouldAssociate;
BOOL m_enableAutoUpdate;
int m_bgColor;
BOOL m_escToExit;
/* pattern used to launch the editor when doing inverse search */
char *m_inverseSearchCmdLine;
/* When we show 'new version available', user has an option to check
'skip this version'. This remembers which version is to be skipped.
If NULL - don't skip */
char *m_versionToSkip;
char *m_lastUpdateTime;
/* Default state of Sumatra window */
/* TODO: I would also like to remember a monitor, but that seems a bit complicated */
DisplayMode m_defaultDisplayMode;
double m_defaultZoom;
int m_windowState;
int m_windowPosX;
int m_windowPosY;
int m_windowDx;
int m_windowDy;
/* temporary original values */
int m_tmpWindowPosX;
int m_tmpWindowPosY;
int m_tmpWindowDx;
int m_tmpWindowDy;
int m_pdfsOpened;
} SerializableGlobalPrefs;
extern SerializableGlobalPrefs gGlobalPrefs;
struct FileHistoryList;
const char *Prefs_Serialize(FileHistoryList **root, size_t* lenOut);
bool Prefs_Deserialize(const char *prefsTxt, size_t prefsTxtLen, FileHistoryList **fileHistoryRoot);
#endif
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?