forked from openkylin/quarkai
55 lines
1.6 KiB
C++
55 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 SETTINGACTION_H
|
|
#define SETTINGACTION_H
|
|
|
|
#include <QWidget>
|
|
#include <QLabel>
|
|
#include <QPushButton>
|
|
#include <QMouseEvent>
|
|
#include <QHBoxLayout>
|
|
#include <QSignalMapper>
|
|
#include <QVBoxLayout>
|
|
#include "../component/kylinbutton.h"
|
|
#include "../component/systembutton.h"
|
|
|
|
class SettingAction : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
explicit SettingAction(QString cur_dekstop = "", QWidget *parent = 0);
|
|
~SettingAction();
|
|
// void setParentWindow(MainWindow* window) { p_mainwindow = window;}
|
|
void setLanguage(int index);
|
|
|
|
signals:
|
|
void showSettingMainWidget();
|
|
|
|
private:
|
|
QPushButton *back_btn;
|
|
QLabel *img_label;
|
|
QLabel *title_label;
|
|
// QLabel *description_label;
|
|
// MainWindow *p_mainwindow;
|
|
QString desktop;
|
|
};
|
|
|
|
#endif // SETTINGACTION_H
|