You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
72 lines
1.3 KiB
72 lines
1.3 KiB
#ifndef DESKTOP_H
|
|
#define DESKTOP_H
|
|
|
|
#include <QWidget>
|
|
#include "assistant.h"
|
|
#include "slidepage/slidepage.h"
|
|
#include "desktop2.h"
|
|
#include "slidepage/slidepage.h"
|
|
#include "music/music.h"
|
|
#include "weather/climate.h"
|
|
#include "class_table/class_table.h"
|
|
#include "timer/alarm.h"
|
|
#include "cam/CAM.h"
|
|
#include "set/set.h"
|
|
#include "album/album.h"
|
|
|
|
class assistant;
|
|
class assistant;
|
|
class SlidePage;
|
|
class desktop2;
|
|
class music;
|
|
class climate;
|
|
class class_table;
|
|
class Alarm;
|
|
class CAM;
|
|
class set;
|
|
class album;
|
|
|
|
class desktop : public QWidget
|
|
{
|
|
Q_OBJECT
|
|
public:
|
|
desktop();
|
|
~desktop();
|
|
private:
|
|
|
|
/*第一页*/
|
|
assistant *desktop1;
|
|
/*第二页*/
|
|
desktop2 *desk2;
|
|
/* 滑动页面管理对象*/
|
|
SlidePage *mySlidePage;
|
|
|
|
QWidget *bgWidget;
|
|
|
|
/*app*/
|
|
music *musicplay;
|
|
class_table *classtable;
|
|
Alarm *alarmnotice;
|
|
climate *climateapp;
|
|
CAM *cameraapp;
|
|
set *setapp;
|
|
album *albumapp;
|
|
|
|
/* 重设大小 */
|
|
void resizeEvent(QResizeEvent *event);
|
|
|
|
private slots:
|
|
void onButtonPressed();
|
|
void music_handle(bool t);
|
|
void climate_handle(bool t);
|
|
void class_handle(bool t);
|
|
void alarm_handle(bool t);
|
|
void cam_handle(bool t);
|
|
void set_handle(bool t);
|
|
void album_handle(bool t);
|
|
|
|
|
|
};
|
|
|
|
#endif // DESKTOP_H
|