⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 krfboptions.cpp

📁 Trolltech公司发布的图形界面操作系统。可在qt-embedded-2.3.7平台上编译为嵌入式图形界面操作系统。
💻 CPP
字号:
#include <qtopia/config.h>#include <qtopia/qpeapplication.h>#include "krfboptions.h"KRFBOptions::KRFBOptions(){  Config config( "keypebble" );  config.setGroup( "Encodings" );  readSettings( &config );}KRFBOptions::~KRFBOptions(){    save();}void KRFBOptions::save(){  Config config( "keypebble" );  config.setGroup( "Encodings" );  writeSettings( &config );}void KRFBOptions::readSettings( Config *config ){  hexTile = config->readBoolEntry( "HexTile" );  corre = config->readBoolEntry( "CORRE" );  rre = config->readBoolEntry( "RRE" );  copyrect = config->readBoolEntry( "CopyRect", true );  colors256 = config->readBoolEntry( "Colors256" );  shared = config->readBoolEntry( "Shared" );  readOnly = config->readBoolEntry( "ReadOnly" );  updateRate = config->readNumEntry( "UpdateRate", 50 );}void KRFBOptions::writeSettings( Config *config ){  config->writeEntry( "HexTile", hexTile );  config->writeEntry( "CORRE", corre );  config->writeEntry( "RRE", rre );  config->writeEntry( "CopyRect", copyrect );  config->writeEntry( "Colors256", colors256 );  config->writeEntry( "Shared", shared );  config->writeEntry( "ReadOnly", readOnly );  config->writeEntry( "UpdateRate", updateRate );}int KRFBOptions::encodings(){  // Initially one because we always support raw encoding  int count = 1;  count += hexTile ? 1 : 0;  count += corre ? 1 : 0;  count += rre ? 1 : 0;  count += copyrect ? 1 : 0;  return count;}

⌨️ 快捷键说明

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