quarkai/component/utils.h

78 lines
1.6 KiB
C

/*
* Copyright (C) 2013 ~ 2015 National University of Defense Technology(NUDT) & Kylin Ltd.
*
* Authors:
* Kobe Lee xiangli@ubuntukylin.com/kobe24_lixiang@126.com
*
* 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; version 3.
*
* 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, see <http://www.gnu.org/licenses/>.
*/
#ifndef UTILS_H
#define UTILS_H
#include <QString>
#define ITEMHEIGHT 30
#define ITEMHSPACE 10
#define ITEMVSPACE 5
#define PAGESPACE 20
#define ITEMWIDTH 650
//#define VERSION "2.4.1"
const QString KYLIN_COMPANY_SETTING = "kylin/kylin-assistant";
const QString KYLIN_SETTING_FILE_NAME_SETTING = "kylin-assistant";
typedef enum{
YOUKER_EN,
YOUKER_ZH_CN,
YOUKER_ES,
} LANGUAGE;
typedef enum{
CACHE,
PACAKAGE,
COOKIES,
BROWSER,
TRACE,
BIGFILE,
} CLEANERTAB;
struct AutoData
{
QString appPath;
QString appName;
QString appComment;
QString iconName;
QString appStatus;
};
typedef enum{
BUTTON_ENTER,
BUTTON_LEAVE,
BUTTON_PRESSED,
BUTTON_DISABLE,
BUTTON_FIRST,
BUTTON_SCALED,
}BUTTONSTATUS;
typedef enum{
HOMEPAGE,
CLEANPAGE,
INFOPAGE,
SETTINGPAGE,
BOXPAGE,
}PAGESTATUS;
#endif // UTILS_H