亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频

? 歡迎來到蟲蟲下載站! | ?? 資源下載 ?? 資源專輯 ?? 關于我們
? 蟲蟲下載站

?? pwmconfig.cpp

?? KeePassX用于保護密碼的安全
?? CPP
字號:
/*************************************************************************** *   Copyright (C) 2005 by Tarek Saidi                                     * *   mail@tarek-saidi.de                                                   * *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * *   This program is distributed in the hope that it will be useful,       * *   but WITHOUT ANY WARRANTY; without even the implied warranty of        * *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         * *   GNU General Public License for more details.                          * *                                                                         * *   You should have received a copy of the GNU General Public License     * *   along with this program; if not, write to the                         * *   Free Software Foundation, Inc.,                                       * *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             * ***************************************************************************/#include "PwmConfig.h"#include <qobject.h>#include <qdir.h>#include <iostream>using namespace std;#ifdef Q_WS_MAC	#define DEFAULT_MOUNT_DIR "/Volumes/"#endif#ifdef Q_WS_X11	#define DEFAULT_MOUNT_DIR "/media/"#endif#ifdef Q_WS_WIN	#define DEFAULT_MOUNT_DIR "/"#endifbool CConfig::loadFromIni(QString filename){QString defaultSearchOptions = "001101111";QString defaultPwGenOptions = "1111100001";ini.SetPath((const char*)filename.toUtf8());ini.ReadFile();ClipboardTimeOut=ini.GetValueI("Options","ClipboardTimeOut",20);Toolbar=ini.GetValueB("UI","ShowToolbar",true);EntryDetails=ini.GetValueB("UI","ShowEntryDetails",true);OpenLast=ini.GetValueB("Options","RememberLastFile",true);LastFile=ini.GetValue("Options","LastFile","").c_str();ParseColumnString(ini.GetValue("UI","Columns","1111100000").c_str(),Columns);BannerColor1=ParseColorString(ini.GetValue("Options","BannerColor1","0,85,127").c_str());BannerColor2=ParseColorString(ini.GetValue("Options","BannerColor2","0,117,175").c_str());BannerTextColor=ParseColorString(ini.GetValue("Options","BannerTextColor","222,222,222").c_str());ShowPasswords=ini.GetValueB("Options","ShowPasswords",false);OpenUrlCommand=ini.GetValue("Options","UrlCmd","kfmclient openURL %1").c_str();Language=ini.GetValue("Options","LangFile","").c_str();ParseBoolString(ini.GetValue("Options","SearchOptions",(const char*)defaultSearchOptions.toUtf8()).c_str(),defaultSearchOptions,SearchOptions,9);ListView_HidePasswords=ini.GetValueB("UI","HidePasswords",true);ListView_HideUsernames=ini.GetValueB("UI","HideUsernames",false);ParseBoolString(ini.GetValue("Options","PwGenOptions",(const char*)defaultPwGenOptions.toUtf8()).c_str(),defaultPwGenOptions,PwGenOptions,10);PwGenLength=ini.GetValueI("Options","PwGenLength",25);PwGenCharList=ini.GetValue("Options","PwGenCharList","").c_str();ExpandGroupTree=ini.GetValueB("Options","ExpandGroupTree",true);EnableKdePlugin=ini.GetValueB("KDE Plugin","Enabled",false);MainWinHeight=ini.GetValueI("UI","MainWinHeight",550);MainWinWidth=ini.GetValueI("UI","MainWinWidth",900);MainWinSplit1=ini.GetValueI("UI","MainWinSplit1",100);MainWinSplit2=ini.GetValueI("UI","MainWinSplit2",300);ParseIntString(ini.GetValue("UI","ColumnSizes","15,10,10,10,10,10,10,10,10,10").c_str(),ColumnSizes,10);ShowStatusbar=ini.GetValueB("UI","ShowStatusbar",true);AlternatingRowColors=ini.GetValueB("Options","AlternatingRowColors",true);MountDir=ini.GetValue("Options","MountDir",DEFAULT_MOUNT_DIR).c_str();RememberLastKey=ini.GetValueB("Options","RememberLastKey",true);LastKeyLocation=ini.GetValue("Options","LastKeyLocation","").c_str();LastKeyType=(tKeyType)ini.GetValueI("Options","LastKeyType",(int)PASSWORD);if(!OpenLast)RememberLastKey=false;ToolbarIconSize=ini.GetValueI("UI","ToolbarIconSize",16);return true;}bool CConfig::saveToIni(QString filename){ini.SetValueI("Options","ClipboardTimeOut",ClipboardTimeOut);ini.SetValueB("UI","ShowToolbar",Toolbar);ini.SetValueB("UI","ShowEntryDetails",EntryDetails);ini.SetValueB("Options","RememberLastFile",OpenLast); if(OpenLast)ini.SetValue("Options","LastFile",(const char*)LastFile.toUtf8()); else	     ini.SetValue("Options","LastFile","");ini.SetValue("UI","Columns",(const char*)CreateColumnString().toUtf8(),true);ini.SetValue("Options","BannerColor1",(const char*)CreateColorString(BannerColor1).toUtf8(),true);ini.SetValue("Options","BannerColor2",(const char*)CreateColorString(BannerColor2).toUtf8(),true);ini.SetValue("Options","BannerTextColor",(const char*)CreateColorString(BannerTextColor).toUtf8(),true);ini.SetValueB("Options","ShowPasswords",ShowPasswords,true);ini.SetValue("Options","UrlCmd",(const char*)OpenUrlCommand.toUtf8(),true);ini.SetValue("Options","LangFile",(const char*)Language.toUtf8(),true);ini.SetValue("Options","SearchOptions",(const char*)CreateBoolString(SearchOptions,9).toUtf8(),true);ini.SetValueB("UI","HidePasswords",ListView_HidePasswords);ini.SetValueB("UI","HideUsernames",ListView_HideUsernames);ini.SetValue("Options","PwGenOptions",(const char*)CreateBoolString(PwGenOptions,10).toUtf8(),true);ini.SetValueI("Options","PwGenLength",PwGenLength,true);ini.SetValue("Options","PwGenCharList",(const char*)PwGenCharList.toUtf8(),true);ini.SetValueB("Options","ExpandGroupTree",ExpandGroupTree,true);ini.SetValueB("KDE Plugin","Enabled",EnableKdePlugin,true);ini.SetValueI("UI","MainWinHeight",MainWinHeight);ini.SetValueI("UI","MainWinWidth",MainWinWidth);ini.SetValueI("UI","MainWinSplit1",MainWinSplit1);ini.SetValueI("UI","MainWinSplit2",MainWinSplit2);ini.SetValue("UI","ColumnSizes",(const char*)CreateIntString(ColumnSizes,10).toUtf8(),true);ini.SetValueB("UI","ShowStatusbar",ShowStatusbar);ini.SetValueB("Options","AlternatingRowColors",AlternatingRowColors);ini.SetValue("Options","MountDir",(const char*)MountDir.toUtf8());ini.SetValueB("Options","RememberLastKey",RememberLastKey);if(RememberLastKey){	ini.SetValue("Options","LastKeyLocation",(const char*)LastKeyLocation.toUtf8());	ini.SetValueI("Options","LastKeyType",LastKeyType);}else{	ini.SetValue("Options","LastKeyLocation","");	ini.SetValueI("Options","LastKeyType",0);}ini.SetValueI("UI","ToolbarIconSize",ToolbarIconSize,true);if(!ini.WriteFile())return false;else return true;}void CConfig::ParseColumnString(QString str, bool* dst){if(str.length()<10){bool _default[]={true,true,true,true,true,false,false,false,false,false};memcpy((char*)_default,(char*)dst,10*sizeof(bool));}for(int i=0; i<10; i++){if(str[i]==QChar('0')) *(dst+i)=false;else *(dst+i)=true;}}QString CConfig::CreateColumnString(){QString str="";for(int i=0;i<10;i++){if(Columns[i])str+="1";else	      str+="0";}return str;}QColor CConfig::ParseColorString(QString str){QStringList lst=str.split(',');if(lst.size()!=3){  qWarning((QObject::tr("Warning:")+" CConfig::ParseColorString(QString):"+QObject::tr("Invalid RGB color value.\n")).toUtf8());  return QColor(0,0,0);}bool err[3];int r=lst[0].toUInt(err);int g=lst[1].toUInt(err+1);int b=lst[2].toUInt(err+2);if(!err[0] || !err[1] || !err[2]){  qWarning((QObject::tr("Warning:")+" CConfig::ParseColorString(QString):"+QObject::tr("Invalid RGB color value.\n")).toUtf8());  return QColor(0,0,0);}return QColor(r,g,b);}QString CConfig::CreateColorString(QColor c){return (QString::number(c.red())+","+QString::number(c.green())+","+QString::number(c.blue()));}void CConfig::ParseBoolString(const QString &str,const QString &defaults,bool* dst, int count){Q_ASSERT(defaults.count() == count);for(int i=0; i<count; i++){ QChar setting; if(i < str.count()) setting = str[i]; else setting = defaults[i]; if(setting==QChar('0'))  *(dst+i)=false; else  *(dst+i)=true;}}QString CConfig::CreateBoolString(bool* src, int count){QString str="";for(int i=0;i<count;i++){if(src[i])str+="1";else	  str+="0";}return str;}#define DEFAULT_INT_VAL 20void CConfig::ParseIntString(const QString &str,int* dst, int count){QStringList lst=str.split(",");if(lst.size()!=count)	qWarning("Warnig: CConfig::ParseIntString(): unexpected item count.\n");int* values=new int[count];bool err;for(int i=0;i<lst.size() && i<count;i++){	values[i]=lst[i].toUInt(&err);	if(!err){		qWarning("Warnig: CConfig::ParseIntString(): invalid int value.\n");		values[i]=DEFAULT_INT_VAL;}}if(count > lst.size()){	for(int i=lst.size(); i<count; i++)		values[i]=DEFAULT_INT_VAL;}memcpy(dst,values,count*sizeof(int));delete [] values;}QString CConfig::CreateIntString(int* src, int count){QString str;for(int i=0;i<count;i++){	str+=QString::number(src[i]);	if(i<(count-1))str+=",";}return str;}

?? 快捷鍵說明

復制代碼 Ctrl + C
搜索代碼 Ctrl + F
全屏模式 F11
切換主題 Ctrl + Shift + D
顯示快捷鍵 ?
增大字號 Ctrl + =
減小字號 Ctrl + -
亚洲欧美第一页_禁久久精品乱码_粉嫩av一区二区三区免费野_久草精品视频
色94色欧美sute亚洲线路一久 | 欧美另类videos死尸| 亚洲国产高清aⅴ视频| 久久国产综合精品| 久久夜色精品国产噜噜av| 国产成人在线视频网站| 国产精品久久久久久久蜜臀 | 日本丶国产丶欧美色综合| 一区二区三区蜜桃网| 4438x成人网最大色成网站| 奇米在线7777在线精品| 久久九九99视频| 色综合中文字幕国产 | 青青青伊人色综合久久| 精品噜噜噜噜久久久久久久久试看| 国产传媒日韩欧美成人| 亚洲精品国产视频| 91精品中文字幕一区二区三区| 黑人精品欧美一区二区蜜桃| 国产精品第五页| 欧美日本国产视频| 成人精品电影在线观看| 亚洲午夜精品久久久久久久久| 精品久久免费看| 在线看日本不卡| 免费成人美女在线观看.| 国产精品国产三级国产aⅴ原创 | 一片黄亚洲嫩模| 精品久久久久久久久久久院品网| 91在线观看成人| 久久99国产精品麻豆| 亚洲精品视频在线观看网站| 精品乱人伦一区二区三区| 色婷婷综合久久| 国产麻豆日韩欧美久久| 天天免费综合色| 中文字幕在线一区免费| 精品粉嫩aⅴ一区二区三区四区| 99精品在线观看视频| 精品一区二区精品| 亚洲午夜在线电影| 国产精品拍天天在线| 日韩三级视频在线观看| 在线观看视频一区二区欧美日韩| 国产福利一区二区三区视频| 天天爽夜夜爽夜夜爽精品视频| 亚洲婷婷在线视频| 日本一区二区成人| 日韩久久精品一区| 欧美高清hd18日本| 色哟哟一区二区三区| 成人激情校园春色| 国产福利精品一区二区| 精品制服美女久久| 日韩电影免费在线| 午夜电影久久久| 亚洲精品亚洲人成人网在线播放| 中文字幕第一区第二区| 久久久一区二区三区捆绑**| 欧美成人video| 欧美一区二区免费| 欧美一区二区三区白人| 欧美裸体一区二区三区| 欧美日韩中文字幕精品| 欧美日韩综合不卡| 欧美视频精品在线| 欧美色图12p| 欧美亚洲日本一区| 欧美午夜不卡在线观看免费| 91久久精品一区二区三| 91捆绑美女网站| 一本高清dvd不卡在线观看| 99v久久综合狠狠综合久久| av亚洲产国偷v产偷v自拍| www.综合网.com| av成人老司机| 欧美中文字幕一区二区三区| 欧美亚洲自拍偷拍| 欧美精品aⅴ在线视频| 91精品国模一区二区三区| 日韩视频一区二区三区在线播放| 日韩欧美综合在线| 久久一区二区视频| 中国av一区二区三区| 国产精品久久国产精麻豆99网站| 亚洲欧洲www| 一个色在线综合| 视频在线在亚洲| 韩国av一区二区三区在线观看| 国产一区二区精品久久| jlzzjlzz欧美大全| 欧洲亚洲国产日韩| 欧美一区二区三区不卡| 久久综合999| 亚洲欧洲三级电影| 亚洲图片一区二区| 久久国产成人午夜av影院| 国产一区二区在线观看免费| 国产91色综合久久免费分享| 91精品1区2区| 日韩亚洲欧美中文三级| 国产亚洲一区二区在线观看| 亚洲特黄一级片| 天天做天天摸天天爽国产一区| 久久99精品国产麻豆婷婷洗澡| 国产伦精品一区二区三区免费迷| 99久久久国产精品| 欧美一区二区三区视频在线| 日本一区二区三区在线观看| 艳妇臀荡乳欲伦亚洲一区| 麻豆国产一区二区| 成人的网站免费观看| 欧美福利视频一区| 日本一区二区免费在线 | 久久亚洲一区二区三区四区| 自拍偷拍欧美激情| 捆绑紧缚一区二区三区视频| 色综合中文字幕| 久久免费看少妇高潮| 亚洲激情综合网| 国产一区视频网站| 欧美日本韩国一区| 国产精品短视频| 精品一区二区三区香蕉蜜桃| 国产99久久久久| 日韩欧美专区在线| 亚洲另类春色校园小说| 国产在线国偷精品产拍免费yy| 色噜噜狠狠成人中文综合| 2017欧美狠狠色| 天天色综合成人网| 色婷婷亚洲综合| 中文字幕久久午夜不卡| 久久99国产精品久久99果冻传媒| 91久久精品一区二区| 中文子幕无线码一区tr| 青青草一区二区三区| 欧洲亚洲精品在线| 亚洲同性gay激情无套| 狠狠色丁香久久婷婷综合_中| 色爱区综合激月婷婷| 国产精品视频在线看| 久久99精品久久久久久久久久久久| 欧洲精品中文字幕| 亚洲天堂2016| 91在线精品秘密一区二区| 国产日韩av一区| 精品一区二区三区在线播放| 91麻豆精品国产| 亚洲人成亚洲人成在线观看图片| 国产老女人精品毛片久久| 91精品欧美综合在线观看最新| 亚洲综合视频网| 在线观看一区二区视频| 欧美高清性hdvideosex| 国产精品久久三区| 国产专区综合网| 日韩欧美第一区| 视频一区二区中文字幕| 在线观看欧美黄色| 亚洲激情校园春色| 在线观看一区二区精品视频| 一区二区三区中文字幕电影| 91视频91自| 亚洲人亚洲人成电影网站色| 成人h精品动漫一区二区三区| 国产精品每日更新在线播放网址 | 午夜精品久久久久久久99水蜜桃| 在线免费观看视频一区| 亚洲午夜精品在线| 欧美日韩成人一区| 一色屋精品亚洲香蕉网站| 成人高清在线视频| 精品蜜桃在线看| 国产一区二区三区久久久| 2020国产精品| 国产精品99久久久久| 中文字幕不卡在线播放| 97aⅴ精品视频一二三区| 亚洲黄一区二区三区| 欧美视频精品在线| 免费在线观看精品| 久久人人超碰精品| 成人动漫一区二区| 亚洲一区在线观看免费观看电影高清| 欧美中文字幕一区二区三区| 日本一不卡视频| 国产视频一区在线播放| 99视频国产精品| 国产精品国产三级国产普通话99| yourporn久久国产精品| 亚洲欧美日韩成人高清在线一区| 欧美日韩精品一区二区三区| 久久99蜜桃精品| 国产精品亲子伦对白| 欧美午夜片在线观看| 蜜桃在线一区二区三区| 国产精品国产三级国产aⅴ原创| 在线免费观看日本一区| 精品一区二区三区免费视频|