conf.h

来自「qt-x11-free-3.0.3.tar.gz minigui图形界面工具」· C头文件 代码 · 共 39 行

H
39
字号
#ifndef CONFIG_H#define CONFIG_H#include <qfont.h>#include <qcolor.h>#include <qmap.h>#include "dlldefs.h"struct EDITOR_EXPORT ConfigStyle{    QFont font;    QColor color;};#if defined(Q_TEMPLATEDLL)// MOC_SKIP_BEGINtemplate class EDITOR_EXPORT QMap<QString, ConfigStyle>;// MOC_SKIP_END#endifstruct EDITOR_EXPORT Config{    QMap<QString, ConfigStyle> styles;    bool hasCompletion, hasParenMatching, hasWordWrap;    static QMap<QString, ConfigStyle> defaultStyles();    static QMap<QString, ConfigStyle> readStyles( const QString &path );    static void saveStyles( const QMap<QString, ConfigStyle> &styles, const QString &path );    static bool completion( const QString &path );    static bool wordWrap( const QString &path );    static bool parenMatching( const QString &path );    static void setCompletion( bool b, const QString &path );    static void setWordWrap( bool b, const QString &path );    static void setParenMatching( bool b,const QString &path );};#endif

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?