mirror of
https://github.com/LapplandSP/QtAdb.git
synced 2025-05-23 18:56:10 +08:00
实现了子页面切换动画
This commit is contained in:
parent
8c03903d8c
commit
2a62e48a7f
|
@ -33,7 +33,7 @@ about::about(QWidget *parent) :
|
|||
ui->btn_money->setGraphicsEffect(shadowEffect_btn_money);
|
||||
QGraphicsDropShadowEffect *shadowEffect_btn_money2 = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_btn_money2->setOffset(0,0);
|
||||
shadowEffect_btn_money2->setColor(Qt::gray);
|
||||
shadowEffect_btn_money2->setColor(Qt::green);
|
||||
shadowEffect_btn_money2->setBlurRadius(5);
|
||||
ui->btn_money_2->setGraphicsEffect(shadowEffect_btn_money2);
|
||||
QGraphicsDropShadowEffect *shadowEffect_btn_money3 = new QGraphicsDropShadowEffect(this);
|
||||
|
|
|
@ -120,7 +120,7 @@ QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 11
|
|||
</font>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>测试版本:beta-v1.2</string>
|
||||
<string>测试版本:beta-v1.3</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -149,7 +149,7 @@ QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 11
|
|||
<cursorShape>PointingHandCursor</cursorShape>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>网址</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
|
@ -215,7 +215,7 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
<cursorShape>PointingHandCursor</cursorShape>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>酷安</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
|
@ -281,7 +281,7 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
<cursorShape>PointingHandCursor</cursorShape>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>Github</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
|
@ -438,7 +438,7 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
<cursorShape>PointingHandCursor</cursorShape>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>请我吃可乐(3元)</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
|
|
|
@ -49,6 +49,53 @@ void animationWidget::playLoadAnimation(int h)
|
|||
|
||||
animation->setEasingCurve(QEasingCurve::OutQuart);
|
||||
|
||||
this->show();
|
||||
animation->start();
|
||||
//this->setDisabled(true);
|
||||
emit animationEnd();
|
||||
}
|
||||
|
||||
void animationWidget::playLoadAnimation_sp(int h)
|
||||
{
|
||||
animation->setDuration(500);
|
||||
//animation->setEndValue(QPoint(301,117));
|
||||
qDebug() << "wgtHeight = " << wgtHeight;
|
||||
if(parent->width() <= 600)
|
||||
{
|
||||
animation->setEndValue(QRect(0,0, parent->width(),h));
|
||||
}
|
||||
else
|
||||
{
|
||||
animation->setEndValue(QRect(0,0, parent->width(),h));
|
||||
}
|
||||
//animation->setStartValue(QPoint(301 + 50,117));
|
||||
animation->setStartValue(QRect(0,-10, parent->width(),h));
|
||||
|
||||
animation->setEasingCurve(QEasingCurve::OutQuart);
|
||||
|
||||
this->show();
|
||||
animation->start();
|
||||
emit animationEnd();
|
||||
}
|
||||
|
||||
void animationWidget::playLoadAnimation_bp(int h)
|
||||
{
|
||||
animation->setDuration(500);
|
||||
//animation->setEndValue(QPoint(301,117));
|
||||
qDebug() << "wgtHeight = " << wgtHeight;
|
||||
if(parent->width() <= 600)
|
||||
{
|
||||
animation->setEndValue(QRect(301 - 30, 117 - 6 -11, 600,h));
|
||||
}
|
||||
else
|
||||
{
|
||||
animation->setEndValue(QRect(301 - 30, 117 - 6 - 11, parent->width(),h));
|
||||
}
|
||||
//animation->setStartValue(QPoint(301 + 50,117));
|
||||
animation->setStartValue(QRect(301 - 30, 117 - 6 - 11 + 10, parent->width(),h));
|
||||
|
||||
animation->setEasingCurve(QEasingCurve::OutQuart);
|
||||
|
||||
this->show();
|
||||
animation->start();
|
||||
emit animationEnd();
|
||||
|
@ -56,7 +103,7 @@ void animationWidget::playLoadAnimation(int h)
|
|||
|
||||
void animationWidget::playExitAnimation()
|
||||
{
|
||||
animation->setDuration(750);
|
||||
animation->setDuration(300);
|
||||
//animation->setEndValue(QPoint(301,117));
|
||||
qDebug() << "wgtHeight = " << wgtHeight;
|
||||
if(parent->width() <= 600)
|
||||
|
@ -78,6 +125,29 @@ void animationWidget::playExitAnimation()
|
|||
emit animationEnd();
|
||||
}
|
||||
|
||||
void animationWidget::playExitAnimation_sp()
|
||||
{
|
||||
animation->setDuration(500);
|
||||
//animation->setEndValue(QPoint(301,117));
|
||||
qDebug() << "wgtHeight = " << wgtHeight;
|
||||
if(parent->width() <= 600)
|
||||
{
|
||||
animation->setEndValue(QRect(0,-11, parent->width(),wgtHeight));
|
||||
}
|
||||
else
|
||||
{
|
||||
animation->setEndValue(QRect(0,-11, parent->width(),wgtHeight));
|
||||
}
|
||||
//animation->setStartValue(QPoint(301 + 50,117));
|
||||
animation->setStartValue(QRect(0,0, parent->width(),wgtHeight));
|
||||
|
||||
animation->setEasingCurve(QEasingCurve::OutQuart);
|
||||
|
||||
this->show();
|
||||
animation->start();
|
||||
emit animationEnd();
|
||||
}
|
||||
|
||||
animationWidget::~animationWidget()
|
||||
{
|
||||
playExitAnimation();
|
||||
|
|
|
@ -24,7 +24,10 @@ public:
|
|||
|
||||
void playLoadAnimation();
|
||||
void playLoadAnimation(int h);
|
||||
void playLoadAnimation_sp(int h);
|
||||
void playLoadAnimation_bp(int h);
|
||||
void playExitAnimation();
|
||||
void playExitAnimation_sp();
|
||||
|
||||
bool isBasePage;
|
||||
QWidget *parent;
|
||||
|
|
|
@ -7,6 +7,7 @@ basePage::basePage(QWidget *parent) :
|
|||
{
|
||||
ui->setupUi(this);
|
||||
SPManager = new sonPageManager;
|
||||
animation_listHide = new QPropertyAnimation(ui->listWidget,"geometry");
|
||||
parents = parent;
|
||||
|
||||
lastPage = NULL;
|
||||
|
@ -124,7 +125,7 @@ void basePage::slot_createSonPage(int key)
|
|||
listTimer = new QTimer(this);
|
||||
connect(listTimer, SIGNAL(timeout()), this, SLOT(slot_spgAnimationEnd()));
|
||||
listTimer->setSingleShot(true);
|
||||
listTimer->start(500);
|
||||
listTimer->start(300);
|
||||
emit creatingSonPage();
|
||||
|
||||
ui->listWidget->setCurrentRow(-1);
|
||||
|
@ -136,13 +137,14 @@ void basePage::slot_createSonPage(int key)
|
|||
|
||||
/**/
|
||||
//sonPage->setVisible(false);
|
||||
QPropertyAnimation *animation = new QPropertyAnimation(ui->listWidget,"geometry");
|
||||
|
||||
animation->setDuration(750);
|
||||
animation->setEndValue(QRect(ui->listWidget->geometry().x(),ui->listWidget->geometry().y() + 50, parent->width(),wgtHeight));
|
||||
animation->setStartValue(ui->listWidget->geometry());
|
||||
animation->setEasingCurve(QEasingCurve::OutQuart);
|
||||
animation->start();
|
||||
|
||||
animation_listHide->setDuration(300);
|
||||
animation_listHide->setEndValue(QRect(ui->listWidget->geometry().x(),ui->listWidget->geometry().y() + 50, ui->listWidget->width(),ui->listWidget->height()));
|
||||
animation_listHide->setStartValue(ui->listWidget->geometry());
|
||||
animation_listHide->setEasingCurve(QEasingCurve::OutQuart);
|
||||
animation_listHide->start();
|
||||
//sonPage->playLoadAnimation_sp();
|
||||
//animation->deleteLater();
|
||||
|
||||
/*
|
||||
|
@ -169,6 +171,15 @@ void basePage::slot_createSonPage(int key)
|
|||
ui->listWidget->setCurrentRow(-1);
|
||||
}
|
||||
|
||||
void basePage::spg_return_pushed()
|
||||
{
|
||||
sonPage->playExitAnimation_sp();
|
||||
QTimer *animationTimer = new QTimer(this);
|
||||
animationTimer->setSingleShot(true);
|
||||
animationTimer->start(300);
|
||||
connect(animationTimer, SIGNAL(timeout()), this, SLOT(slot_destroySonPage()));
|
||||
}
|
||||
|
||||
void basePage::slot_destroySonPage()
|
||||
{
|
||||
if(sonPage == NULL)
|
||||
|
@ -176,8 +187,9 @@ void basePage::slot_destroySonPage()
|
|||
|
||||
delete sonPage;
|
||||
sonPage = NULL;
|
||||
|
||||
ui->listWidget->setVisible(true);
|
||||
playLoadAnimation();
|
||||
playLoadAnimation_bp(this->height());
|
||||
}
|
||||
|
||||
QString basePage::whoAmI()
|
||||
|
@ -231,5 +243,6 @@ void basePage::slot_spgAnimationEnd()
|
|||
ui->listWidget->setVisible(false);
|
||||
unlock();
|
||||
ui->mainLayout->addWidget(sonPage);
|
||||
sonPage->playLoadAnimation_sp(this->height());
|
||||
//sonPage->setVisible(true);
|
||||
}
|
||||
|
|
|
@ -29,7 +29,7 @@ public:
|
|||
QWidget *parents;
|
||||
|
||||
basePage *lastPage;
|
||||
QWidget *sonPage;
|
||||
animationWidget *sonPage;
|
||||
QWidget *father;
|
||||
QString myName;
|
||||
sonPageManager *SPManager;
|
||||
|
@ -55,6 +55,7 @@ private:
|
|||
bool isEnable(int k);
|
||||
|
||||
QTimer *listTimer;
|
||||
QPropertyAnimation *animation_listHide;
|
||||
|
||||
//QGraphicsOpacityEffect* exitOpacity;
|
||||
|
||||
|
@ -68,6 +69,7 @@ private slots:
|
|||
void slot_destroySonPage();
|
||||
void unlock();
|
||||
void slot_spgAnimationEnd();
|
||||
void spg_return_pushed();
|
||||
};
|
||||
|
||||
#endif // BASEPAGE_H
|
||||
|
|
|
@ -358,6 +358,7 @@ void MainWindow::initBasePage(int key) //槽:生成basePages
|
|||
/**/
|
||||
|
||||
currentPage = new basePage(this);
|
||||
|
||||
//qDebug() << "height in initBasePage()" << ui->widget_height->height();
|
||||
currentPage->wgtHeight = ui->widget_height->height();
|
||||
//qDebug() << "height2 in initBasePage()" << currentPage->wgtHeight;
|
||||
|
@ -382,7 +383,7 @@ void MainWindow::initBasePage(int key) //槽:生成basePages
|
|||
taiChiTimer = new QTimer(this);
|
||||
connect(taiChiTimer, SIGNAL(timeout()), this, SLOT(slot_taiChi()));
|
||||
taiChiTimer->setSingleShot(true);
|
||||
taiChiTimer->start(750);
|
||||
taiChiTimer->start(700);
|
||||
|
||||
break;
|
||||
}
|
||||
|
@ -683,8 +684,8 @@ void MainWindow::on_WSABtn_clicked() //槽:连接WSA
|
|||
QMessageBox * msgBox = new QMessageBox;
|
||||
msgBox->setWindowIcon(QIcon(":/ico/image/ico/link.svg"));
|
||||
msgBox->setStyleSheet("background-color:rgba(255,255,255,1);border:0px; border-radius:0px;");
|
||||
msgBox->setWindowTitle("无线调试");
|
||||
msgBox->setText("· 已尝试连接,请刷新设备列表并选择WSA");
|
||||
msgBox->setWindowTitle("WSA");
|
||||
msgBox->setText("· 已尝试连接,请刷新设备列表并选择WSA\n· 请谨慎对WSA使用某些功能");
|
||||
msgBox->addButton(" ✓ ", QMessageBox::AcceptRole);
|
||||
msgBox->show();
|
||||
}
|
||||
|
@ -709,6 +710,7 @@ void MainWindow::slot_taiChi()
|
|||
if(ui->comboBox->currentIndex() != -1)
|
||||
{
|
||||
this->unlock();
|
||||
//currentPage->setDisabled(false);
|
||||
}
|
||||
//this->setEnabled(true);
|
||||
}
|
||||
|
|
|
@ -2,14 +2,16 @@
|
|||
#include "ui_sp_activator.h"
|
||||
|
||||
sp_activator::sp_activator(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_activator)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
process = new adbProcess;
|
||||
parents = parent;
|
||||
|
||||
connect(this->ui->back_to_basePage,SIGNAL(clicked()),parent,SLOT(slot_destroySonPage()));
|
||||
//spg_return_pushed()
|
||||
//connect(this->ui->back_to_basePage,SIGNAL(clicked()),parent,SLOT(slot_destroySonPage()));
|
||||
connect(this->ui->back_to_basePage,SIGNAL(clicked()),parent,SLOT(spg_return_pushed()));
|
||||
|
||||
QGraphicsDropShadowEffect *shadowEffect_runBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
|
@ -83,6 +85,7 @@ void sp_activator::on_showOutputBtn_clicked(bool checked)
|
|||
if(checked)
|
||||
{
|
||||
page = new standardOutputPage(NULL,process);
|
||||
page->setWindowTitle("命令行输出");
|
||||
connect(process,SIGNAL(outputGet(QString)),page,SLOT(update(QString)));
|
||||
/*
|
||||
parents->mapToGlobal(parents->pos());
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "adbprocess.h"
|
||||
#include "../sonpagebase.h"
|
||||
#include "../standardoutputpage.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_activator;
|
||||
}
|
||||
|
||||
class sp_activator : public QWidget
|
||||
class sp_activator : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_accounts.h"
|
||||
|
||||
sp_accounts::sp_accounts(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_accounts)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_accounts;
|
||||
}
|
||||
|
||||
class sp_accounts : public QWidget
|
||||
class sp_accounts : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_captive_portal.h"
|
||||
|
||||
sp_captive_portal::sp_captive_portal(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_captive_portal)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_captive_portal;
|
||||
}
|
||||
|
||||
class sp_captive_portal : public QWidget
|
||||
class sp_captive_portal : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_customize_cmd.h"
|
||||
|
||||
sp_customize_cmd::sp_customize_cmd(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_customize_cmd)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -11,16 +11,16 @@ sp_customize_cmd::sp_customize_cmd(QWidget *parent) :
|
|||
connect(this->ui->back_to_basePage,SIGNAL(clicked()),parent,SLOT(slot_destroySonPage()));
|
||||
|
||||
QGraphicsDropShadowEffect *shadowEffect_runBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
//QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_back_to_basePage = new QGraphicsDropShadowEffect(this);
|
||||
|
||||
shadowEffect_runBtn->setOffset(0,0);
|
||||
shadowEffect_runBtn->setColor(Qt::gray);
|
||||
shadowEffect_runBtn->setBlurRadius(5);
|
||||
|
||||
/*
|
||||
shadowEffect_showOutputBtn->setOffset(0,0);
|
||||
shadowEffect_showOutputBtn->setColor(Qt::gray);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);*/
|
||||
|
||||
shadowEffect_back_to_basePage->setOffset(0,0);
|
||||
shadowEffect_back_to_basePage->setColor(Qt::gray);
|
||||
|
@ -28,7 +28,7 @@ sp_customize_cmd::sp_customize_cmd(QWidget *parent) :
|
|||
|
||||
ui->back_to_basePage->setGraphicsEffect(shadowEffect_back_to_basePage);
|
||||
ui->runBtn->setGraphicsEffect(shadowEffect_runBtn);
|
||||
ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
//ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
|
||||
QGraphicsDropShadowEffect *shadowEffect_textBrowser = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_textBrowser->setOffset(0,0);
|
||||
|
|
|
@ -4,12 +4,13 @@
|
|||
#include <QWidget>
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include "../../adbprocess.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_customize_cmd;
|
||||
}
|
||||
|
||||
class sp_customize_cmd : public QWidget
|
||||
class sp_customize_cmd : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -154,7 +154,7 @@ background-color: rgba(255, 255, 255, 0);</string>
|
|||
<string notr="true">background-color:rgba(255,255,255,0.6);border-radius:4px;border:0px;</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string><html><head/><body><p>暂时仅支持 ADB 命令</p><p>不支持管道符“ | ”</p></body></html></string>
|
||||
<string>其实更推荐点击上方的终端按钮,拉起命令行直接执行</string>
|
||||
</property>
|
||||
<property name="alignment">
|
||||
<set>Qt::AlignCenter</set>
|
||||
|
@ -260,40 +260,6 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showOutputBtn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
QPushButton:hover{background-color:rgba(255,255,255,0.7);}
|
||||
QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../ico.qrc">
|
||||
<normaloff>:/ico/image/ico/terminal-box-line.svg</normaloff>:/ico/image/ico/terminal-box-line.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_scales.h"
|
||||
|
||||
sp_scales::sp_scales(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_scales)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
//#include <QRegularExpressionValidator>
|
||||
#include "../../adbprocess.h"
|
||||
#include "../../threads/adbthread.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_scales;
|
||||
}
|
||||
|
||||
class sp_scales : public QWidget
|
||||
class sp_scales : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_status_bar.h"
|
||||
|
||||
sp_status_bar::sp_status_bar(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_status_bar)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -4,12 +4,13 @@
|
|||
#include <QWidget>
|
||||
#include <QGraphicsDropShadowEffect>
|
||||
#include "../../adbprocess.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_status_bar;
|
||||
}
|
||||
|
||||
class sp_status_bar : public QWidget
|
||||
class sp_status_bar : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_features.h"
|
||||
|
||||
sp_features::sp_features(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_features)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include <QFile>
|
||||
//#include <QAbstractItemView>
|
||||
#include "../../threads/adbthread.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_features;
|
||||
}
|
||||
|
||||
class sp_features : public QWidget
|
||||
class sp_features : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_installer.h"
|
||||
|
||||
sp_installer::sp_installer(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_installer)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -17,9 +17,9 @@ sp_installer::sp_installer(QWidget *parent) :
|
|||
connect(this->ui->back_to_basePage,SIGNAL(clicked()),parent,SLOT(slot_destroySonPage()));
|
||||
|
||||
QGraphicsDropShadowEffect *shadowEffect_runBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
//QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_back_to_basePage = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_refreshBtn = new QGraphicsDropShadowEffect(this);
|
||||
//QGraphicsDropShadowEffect *shadowEffect_refreshBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_selectBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_tips = new QGraphicsDropShadowEffect(this);
|
||||
|
||||
|
@ -27,17 +27,19 @@ sp_installer::sp_installer(QWidget *parent) :
|
|||
shadowEffect_runBtn->setColor(Qt::gray);
|
||||
shadowEffect_runBtn->setBlurRadius(5);
|
||||
|
||||
/*
|
||||
shadowEffect_showOutputBtn->setOffset(0,0);
|
||||
shadowEffect_showOutputBtn->setColor(Qt::gray);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);*/
|
||||
|
||||
shadowEffect_back_to_basePage->setOffset(0,0);
|
||||
shadowEffect_back_to_basePage->setColor(Qt::gray);
|
||||
shadowEffect_back_to_basePage->setBlurRadius(5);
|
||||
|
||||
/*
|
||||
shadowEffect_refreshBtn->setOffset(0,0);
|
||||
shadowEffect_refreshBtn->setColor(Qt::gray);
|
||||
shadowEffect_refreshBtn->setBlurRadius(5);
|
||||
shadowEffect_refreshBtn->setBlurRadius(5);*/
|
||||
|
||||
shadowEffect_selectBtn->setOffset(0,0);
|
||||
shadowEffect_selectBtn->setColor(Qt::gray);
|
||||
|
@ -49,8 +51,8 @@ sp_installer::sp_installer(QWidget *parent) :
|
|||
|
||||
ui->back_to_basePage->setGraphicsEffect(shadowEffect_back_to_basePage);
|
||||
ui->runBtn->setGraphicsEffect(shadowEffect_runBtn);
|
||||
ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
ui->refreshBtn->setGraphicsEffect(shadowEffect_refreshBtn);
|
||||
//ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
//ui->refreshBtn->setGraphicsEffect(shadowEffect_refreshBtn);
|
||||
ui->selectBtn->setGraphicsEffect(shadowEffect_selectBtn);
|
||||
ui->tips->setGraphicsEffect(shadowEffect_tips);
|
||||
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_installer;
|
||||
}
|
||||
|
||||
class sp_installer : public QWidget
|
||||
class sp_installer : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -313,74 +313,6 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="refreshBtn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
QPushButton:hover{background-color:rgba(255,255,255,0.7);}
|
||||
QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../ico.qrc">
|
||||
<normaloff>:/ico/image/ico/refresh-line.svg</normaloff>:/ico/image/ico/refresh-line.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showOutputBtn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
QPushButton:hover{background-color:rgba(255,255,255,0.7);}
|
||||
QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../ico.qrc">
|
||||
<normaloff>:/ico/image/ico/terminal-box-line.svg</normaloff>:/ico/image/ico/terminal-box-line.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_libraries.h"
|
||||
|
||||
sp_libraries::sp_libraries(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_libraries)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_libraries;
|
||||
}
|
||||
|
||||
class sp_libraries : public QWidget
|
||||
class sp_libraries : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_packages.h"
|
||||
|
||||
sp_packages::sp_packages(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_packages)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -11,6 +11,8 @@
|
|||
#include "tp_packageprofile.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
/*
|
||||
struct package
|
||||
{
|
||||
|
@ -21,7 +23,7 @@ namespace Ui {
|
|||
class sp_packages;
|
||||
}
|
||||
|
||||
class sp_packages : public QWidget
|
||||
class sp_packages : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_permissiongroups.h"
|
||||
|
||||
sp_permissionGroups::sp_permissionGroups(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_permissionGroups)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_permissionGroups;
|
||||
}
|
||||
|
||||
class sp_permissionGroups : public QWidget
|
||||
class sp_permissionGroups : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_permissions.h"
|
||||
|
||||
sp_permissions::sp_permissions(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_permissions)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -11,12 +11,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_permissions;
|
||||
}
|
||||
|
||||
class sp_permissions : public QWidget
|
||||
class sp_permissions : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_users.h"
|
||||
|
||||
sp_users::sp_users(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_users)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../threads/adbthread.h"
|
||||
#include <QScrollBar>
|
||||
#include <QFile>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_users;
|
||||
}
|
||||
|
||||
class sp_users : public QWidget
|
||||
class sp_users : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_tp_packageprofile.h"
|
||||
|
||||
tp_packageProfile::tp_packageProfile(QWidget *parent ,QString packageName) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::tp_packageProfile)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -8,12 +8,13 @@
|
|||
#include "../../textexplainer.h"
|
||||
#include "../../adbprocess.h"
|
||||
#include "../../threads/adbthread.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class tp_packageProfile;
|
||||
}
|
||||
|
||||
class tp_packageProfile : public QWidget
|
||||
class tp_packageProfile : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_btnemulator.h"
|
||||
|
||||
btnEmulator::btnEmulator(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::btnEmulator)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -5,12 +5,13 @@
|
|||
#include <QGraphicsDropShadowEffect>
|
||||
#include "textexplainer.h"
|
||||
#include "adbprocess.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class btnEmulator;
|
||||
}
|
||||
|
||||
class btnEmulator : public QWidget
|
||||
class btnEmulator : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_devcontrol_power.h"
|
||||
|
||||
sp_devControl_power::sp_devControl_power(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_devControl_power)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
|
|
@ -5,12 +5,13 @@
|
|||
#include <QGraphicsDropShadowEffect>
|
||||
#include "textexplainer.h"
|
||||
#include "adbprocess.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_devControl_power;
|
||||
}
|
||||
|
||||
class sp_devControl_power : public QWidget
|
||||
class sp_devControl_power : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_dpichanger.h"
|
||||
|
||||
sp_dpiChanger::sp_dpiChanger(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_dpiChanger)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -20,12 +20,13 @@ sp_dpiChanger::sp_dpiChanger(QWidget *parent) :
|
|||
ui->runBtn->setStyleSheet("QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}"
|
||||
"QPushButton:hover{background-color:rgba(255,255,255,0.7);}"
|
||||
"QPushButton:pressed{background-color:rgba(255,255,255,0.6);}");
|
||||
/*
|
||||
ui->showOutputBtn->setStyleSheet("QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}"
|
||||
"QPushButton:hover{background-color:rgba(255,255,255,0.7);}"
|
||||
"QPushButton:pressed{background-color:rgba(255,255,255,0.6);}");
|
||||
"QPushButton:pressed{background-color:rgba(255,255,255,0.6);}");*/
|
||||
|
||||
QGraphicsDropShadowEffect *shadowEffect_runBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
//QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_back_to_basePage = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_refreshBtn = new QGraphicsDropShadowEffect(this);
|
||||
|
||||
|
@ -37,9 +38,10 @@ sp_dpiChanger::sp_dpiChanger(QWidget *parent) :
|
|||
shadowEffect_runBtn->setColor(Qt::gray);
|
||||
shadowEffect_runBtn->setBlurRadius(5);
|
||||
|
||||
/*
|
||||
shadowEffect_showOutputBtn->setOffset(0,0);
|
||||
shadowEffect_showOutputBtn->setColor(Qt::gray);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);*/
|
||||
|
||||
shadowEffect_back_to_basePage->setOffset(0,0);
|
||||
shadowEffect_back_to_basePage->setColor(Qt::gray);
|
||||
|
@ -63,7 +65,7 @@ sp_dpiChanger::sp_dpiChanger(QWidget *parent) :
|
|||
|
||||
ui->back_to_basePage->setGraphicsEffect(shadowEffect_back_to_basePage);
|
||||
ui->runBtn->setGraphicsEffect(shadowEffect_runBtn);
|
||||
ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
//ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
ui->refreshBtn->setGraphicsEffect(shadowEffect_refreshBtn);
|
||||
ui->dpiInfo->setGraphicsEffect(shadowEffect_dpiInfo);
|
||||
ui->currentDpi->setGraphicsEffect(shadowEffect_currentDpi);
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
|
||||
#include "adbprocess.h"
|
||||
#include "textexplainer.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_dpiChanger;
|
||||
}
|
||||
|
||||
class sp_dpiChanger : public QWidget
|
||||
class sp_dpiChanger : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -272,7 +272,7 @@ background-color: rgba(255, 255, 255, 0);</string>
|
|||
<font/>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>返回</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
|
@ -367,41 +367,6 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showOutputBtn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../ico.qrc">
|
||||
<normaloff>:/ico/image/ico/terminal-box-line.svg</normaloff>:/ico/image/ico/terminal-box-line.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_wmsize.h"
|
||||
|
||||
sp_wmsize::sp_wmsize(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_wmsize)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -20,12 +20,13 @@ sp_wmsize::sp_wmsize(QWidget *parent) :
|
|||
ui->runBtn->setStyleSheet("QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}"
|
||||
"QPushButton:hover{background-color:rgba(255,255,255,0.7);}"
|
||||
"QPushButton:pressed{background-color:rgba(255,255,255,0.6);}");
|
||||
/*
|
||||
ui->showOutputBtn->setStyleSheet("QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}"
|
||||
"QPushButton:hover{background-color:rgba(255,255,255,0.7);}"
|
||||
"QPushButton:pressed{background-color:rgba(255,255,255,0.6);}");
|
||||
"QPushButton:pressed{background-color:rgba(255,255,255,0.6);}");*/
|
||||
|
||||
QGraphicsDropShadowEffect *shadowEffect_runBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
//QGraphicsDropShadowEffect *shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_back_to_basePage = new QGraphicsDropShadowEffect(this);
|
||||
QGraphicsDropShadowEffect *shadowEffect_refreshBtn = new QGraphicsDropShadowEffect(this);
|
||||
|
||||
|
@ -39,9 +40,10 @@ sp_wmsize::sp_wmsize(QWidget *parent) :
|
|||
shadowEffect_runBtn->setColor(Qt::gray);
|
||||
shadowEffect_runBtn->setBlurRadius(5);
|
||||
|
||||
/*
|
||||
shadowEffect_showOutputBtn->setOffset(0,0);
|
||||
shadowEffect_showOutputBtn->setColor(Qt::gray);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);
|
||||
shadowEffect_showOutputBtn->setBlurRadius(5);*/
|
||||
|
||||
shadowEffect_back_to_basePage->setOffset(0,0);
|
||||
shadowEffect_back_to_basePage->setColor(Qt::gray);
|
||||
|
@ -73,7 +75,7 @@ sp_wmsize::sp_wmsize(QWidget *parent) :
|
|||
|
||||
ui->back_to_basePage->setGraphicsEffect(shadowEffect_back_to_basePage);
|
||||
ui->runBtn->setGraphicsEffect(shadowEffect_runBtn);
|
||||
ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
//ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
ui->refreshBtn->setGraphicsEffect(shadowEffect_refreshBtn);
|
||||
ui->dpiInfo->setGraphicsEffect(shadowEffect_dpiInfo);
|
||||
ui->currentDpi->setGraphicsEffect(shadowEffect_currentDpi);
|
||||
|
|
|
@ -6,12 +6,13 @@
|
|||
|
||||
#include "adbprocess.h"
|
||||
#include "textexplainer.h"
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_wmsize;
|
||||
}
|
||||
|
||||
class sp_wmsize : public QWidget
|
||||
class sp_wmsize : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -369,7 +369,7 @@ background-color: rgba(255, 255, 255, 0);</string>
|
|||
<font/>
|
||||
</property>
|
||||
<property name="toolTip">
|
||||
<string>返回</string>
|
||||
<string/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
|
@ -464,41 +464,6 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showOutputBtn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="font">
|
||||
<font/>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true"/>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../ico.qrc">
|
||||
<normaloff>:/ico/image/ico/terminal-box-line.svg</normaloff>:/ico/image/ico/terminal-box-line.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
|
|
|
@ -44,10 +44,13 @@
|
|||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>759</width>
|
||||
<height>1969</height>
|
||||
<height>1990</height>
|
||||
</rect>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<property name="spacing">
|
||||
<number>14</number>
|
||||
</property>
|
||||
<property name="topMargin">
|
||||
<number>5</number>
|
||||
</property>
|
||||
|
@ -57,7 +60,7 @@
|
|||
<item>
|
||||
<widget class="QWidget" name="widget_11" native="true">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color:rgba(255,255,255,0.8);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
<string notr="true">background-color:rgba(255,255,255,0.9);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_4">
|
||||
<item>
|
||||
|
@ -374,7 +377,7 @@ background-color: rgba(255, 255, 255, 0);</string>
|
|||
<item>
|
||||
<widget class="QWidget" name="widget_12" native="true">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color:rgba(255,255,255,0.8);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
<string notr="true">background-color:rgba(255,255,255,0.9);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_5">
|
||||
<item>
|
||||
|
@ -541,7 +544,7 @@ background-color: rgba(255, 255, 255, 0);</string>
|
|||
<item>
|
||||
<widget class="QWidget" name="widget_14" native="true">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color:rgba(255,255,255,0.8);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
<string notr="true">background-color:rgba(255,255,255,0.9);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_6">
|
||||
<item>
|
||||
|
@ -709,7 +712,7 @@ border-radius:4px;</string>
|
|||
<item>
|
||||
<widget class="QWidget" name="widget_15" native="true">
|
||||
<property name="styleSheet">
|
||||
<string notr="true">background-color:rgba(255,255,255,0.8);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
<string notr="true">background-color:rgba(255,255,255,0.9);border-radius:4px;border:1px solid #BDBDBD;</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout_7">
|
||||
<item>
|
||||
|
|
|
@ -2,7 +2,7 @@
|
|||
#include "ui_sp_recovery.h"
|
||||
|
||||
sp_recovery::sp_recovery(QWidget *parent) :
|
||||
QWidget(parent),
|
||||
animationWidget(parent),
|
||||
ui(new Ui::sp_recovery)
|
||||
{
|
||||
ui->setupUi(this);
|
||||
|
@ -14,7 +14,7 @@ sp_recovery::sp_recovery(QWidget *parent) :
|
|||
shadowEffect_runBtn = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_showOutputBtn = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_back_to_basePage = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_refreshBtn = new QGraphicsDropShadowEffect(this);
|
||||
//shadowEffect_refreshBtn = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_selectBtn = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_output = new QGraphicsDropShadowEffect(this);
|
||||
shadowEffect_tips = new QGraphicsDropShadowEffect(this);
|
||||
|
@ -31,9 +31,10 @@ sp_recovery::sp_recovery(QWidget *parent) :
|
|||
shadowEffect_back_to_basePage->setColor(Qt::gray);
|
||||
shadowEffect_back_to_basePage->setBlurRadius(5);
|
||||
|
||||
/*
|
||||
shadowEffect_refreshBtn->setOffset(0,0);
|
||||
shadowEffect_refreshBtn->setColor(Qt::gray);
|
||||
shadowEffect_refreshBtn->setBlurRadius(5);
|
||||
shadowEffect_refreshBtn->setBlurRadius(5);*/
|
||||
|
||||
shadowEffect_selectBtn->setOffset(0,0);
|
||||
shadowEffect_selectBtn->setColor(Qt::gray);
|
||||
|
@ -50,7 +51,7 @@ sp_recovery::sp_recovery(QWidget *parent) :
|
|||
ui->back_to_basePage->setGraphicsEffect(shadowEffect_back_to_basePage);
|
||||
ui->runBtn->setGraphicsEffect(shadowEffect_runBtn);
|
||||
ui->showOutputBtn->setGraphicsEffect(shadowEffect_showOutputBtn);
|
||||
ui->refreshBtn->setGraphicsEffect(shadowEffect_refreshBtn);
|
||||
//ui->refreshBtn->setGraphicsEffect(shadowEffect_refreshBtn);
|
||||
ui->selectBtn->setGraphicsEffect(shadowEffect_selectBtn);
|
||||
ui->output->setGraphicsEffect(shadowEffect_output);
|
||||
ui->tips->setGraphicsEffect(shadowEffect_tips);
|
||||
|
@ -132,6 +133,7 @@ void sp_recovery::on_showOutputBtn_clicked(bool checked)
|
|||
if(checked)
|
||||
{
|
||||
page = new standardOutputPage(NULL,process);
|
||||
page->setWindowTitle("命令行输出");
|
||||
qDebug() << "1";
|
||||
connect(process,SIGNAL(outputGet(QString)),page,SLOT(update(QString)));
|
||||
/*
|
||||
|
|
|
@ -7,12 +7,13 @@
|
|||
#include "../standardoutputpage.h"
|
||||
#include "../../threads/adbthread.h"
|
||||
#include <QFileDialog>
|
||||
#include "../../animationwidget.h"
|
||||
|
||||
namespace Ui {
|
||||
class sp_recovery;
|
||||
}
|
||||
|
||||
class sp_recovery : public QWidget
|
||||
class sp_recovery : public animationWidget
|
||||
{
|
||||
Q_OBJECT
|
||||
|
||||
|
|
|
@ -342,40 +342,6 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
|||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="refreshBtn">
|
||||
<property name="minimumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="maximumSize">
|
||||
<size>
|
||||
<width>30</width>
|
||||
<height>30</height>
|
||||
</size>
|
||||
</property>
|
||||
<property name="styleSheet">
|
||||
<string notr="true">QPushButton{background-color:rgba(255,255,255,0.9);border-radius:4px;border:0px;}
|
||||
QPushButton:hover{background-color:rgba(255,255,255,0.7);}
|
||||
QPushButton:pressed{background-color:rgba(255,255,255,0.6);}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string/>
|
||||
</property>
|
||||
<property name="icon">
|
||||
<iconset resource="../../ico.qrc">
|
||||
<normaloff>:/ico/image/ico/refresh-line.svg</normaloff>:/ico/image/ico/refresh-line.svg</iconset>
|
||||
</property>
|
||||
<property name="iconSize">
|
||||
<size>
|
||||
<width>18</width>
|
||||
<height>18</height>
|
||||
</size>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="showOutputBtn">
|
||||
<property name="minimumSize">
|
||||
|
|
|
@ -12,7 +12,7 @@ sonPageManager::~sonPageManager()
|
|||
//delete explainer;
|
||||
}
|
||||
|
||||
QWidget* sonPageManager::selector(QWidget *parent , QString parentName, int key, device dev)
|
||||
animationWidget* sonPageManager::selector(QWidget *parent , QString parentName, int key, device dev)
|
||||
{
|
||||
if(parentName == "devInfo")
|
||||
{
|
||||
|
@ -45,7 +45,7 @@ QWidget* sonPageManager::selector(QWidget *parent , QString parentName, int key,
|
|||
return NULL;
|
||||
}
|
||||
|
||||
QWidget* sonPageManager::createSonPageFor_devInfo(QWidget *parent, int key, device dev)
|
||||
animationWidget* sonPageManager::createSonPageFor_devInfo(QWidget *parent, int key, device dev)
|
||||
{
|
||||
switch(key +1)
|
||||
{
|
||||
|
@ -67,7 +67,7 @@ QWidget* sonPageManager::createSonPageFor_devInfo(QWidget *parent, int key, devi
|
|||
return NULL;
|
||||
}
|
||||
|
||||
sp_activator* sonPageManager::createSonPageFor_activator(QWidget *parent, int key, device dev)
|
||||
animationWidget* sonPageManager::createSonPageFor_activator(QWidget *parent, int key, device dev)
|
||||
{
|
||||
//sp_activator *page = new sp_activator(parent);
|
||||
//return page;
|
||||
|
@ -319,7 +319,7 @@ sp_activator* sonPageManager::createSonPageFor_activator(QWidget *parent, int ke
|
|||
return NULL;
|
||||
}
|
||||
|
||||
QWidget* sonPageManager::createSonPageFor_apps(QWidget *parent, int key, device dev)
|
||||
animationWidget* sonPageManager::createSonPageFor_apps(QWidget *parent, int key, device dev)
|
||||
{
|
||||
switch(key +1)
|
||||
{
|
||||
|
@ -371,7 +371,7 @@ QWidget* sonPageManager::createSonPageFor_apps(QWidget *parent, int key, device
|
|||
return NULL;
|
||||
}
|
||||
|
||||
QWidget* sonPageManager::createSonPageFor_devControl(QWidget *parent, int key, device dev)
|
||||
animationWidget* sonPageManager::createSonPageFor_devControl(QWidget *parent, int key, device dev)
|
||||
{
|
||||
switch(key +1)
|
||||
{
|
||||
|
@ -392,7 +392,7 @@ QWidget* sonPageManager::createSonPageFor_devControl(QWidget *parent, int key, d
|
|||
return NULL;
|
||||
}
|
||||
|
||||
QWidget* sonPageManager::createSonPageFor_recovery(QWidget *parent, int key, device dev)
|
||||
animationWidget* sonPageManager::createSonPageFor_recovery(QWidget *parent, int key, device dev)
|
||||
{
|
||||
switch(key +1)
|
||||
{
|
||||
|
@ -407,7 +407,7 @@ QWidget* sonPageManager::createSonPageFor_recovery(QWidget *parent, int key, dev
|
|||
return NULL;
|
||||
}
|
||||
|
||||
QWidget* sonPageManager::createSonPageFor_advanced(QWidget *parent, int key, device dev)
|
||||
animationWidget* sonPageManager::createSonPageFor_advanced(QWidget *parent, int key, device dev)
|
||||
{
|
||||
switch(key +1)
|
||||
{
|
||||
|
|
|
@ -34,16 +34,16 @@ public:
|
|||
textExplainer *explainer;
|
||||
|
||||
|
||||
QWidget *selector(QWidget *parent, QString parentName, int key , device dev);
|
||||
animationWidget *selector(QWidget *parent, QString parentName, int key , device dev);
|
||||
|
||||
private:
|
||||
|
||||
QWidget* createSonPageFor_devInfo(QWidget *parent, int key, device dev);
|
||||
sp_activator* createSonPageFor_activator(QWidget *parent, int key, device dev);
|
||||
QWidget* createSonPageFor_apps(QWidget *parent, int key, device dev);
|
||||
QWidget* createSonPageFor_devControl(QWidget *parent, int key, device dev);
|
||||
QWidget* createSonPageFor_recovery(QWidget *parent, int key, device dev);
|
||||
QWidget* createSonPageFor_advanced(QWidget *parent, int key, device dev);
|
||||
animationWidget* createSonPageFor_devInfo(QWidget *parent, int key, device dev);
|
||||
animationWidget* createSonPageFor_activator(QWidget *parent, int key, device dev);
|
||||
animationWidget* createSonPageFor_apps(QWidget *parent, int key, device dev);
|
||||
animationWidget* createSonPageFor_devControl(QWidget *parent, int key, device dev);
|
||||
animationWidget* createSonPageFor_recovery(QWidget *parent, int key, device dev);
|
||||
animationWidget* createSonPageFor_advanced(QWidget *parent, int key, device dev);
|
||||
};
|
||||
|
||||
#endif // SONPAGEMANAGER_H
|
||||
|
|
|
@ -33,7 +33,7 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}
|
|||
QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 117, 117, 0.9);font-family: MiSans Medium; font-size:12px;border-radius:4px;}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>refresh</string>
|
||||
<string>刷新</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -46,7 +46,7 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}
|
|||
QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 117, 117, 0.9);font-family: MiSans Medium; font-size:12px;border-radius:4px;}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>clear</string>
|
||||
<string>清除</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -59,7 +59,7 @@ QPushButton:pressed{background-color:rgba(255,255,255,0.6);}
|
|||
QToolTip{border:1px solid #BDBDBD; background-color: #ffffff; color:rgba(117, 117, 117, 0.9);font-family: MiSans Medium; font-size:12px;border-radius:4px;}</string>
|
||||
</property>
|
||||
<property name="text">
|
||||
<string>copy</string>
|
||||
<string>复制</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
|
|
|
@ -131,7 +131,7 @@ Android 系统的可玩性在 adb 的加成下变得更加丰富,由此涌现
|
|||
|
||||
- ~~完整的软件包管理器~~
|
||||
- 跨平台
|
||||
- 完善网站
|
||||
- ~~完善网站~~
|
||||
- 文件管理(~~都连上电脑了,为什么不直接用电脑的文件管理~~)
|
||||
- ~~设备插拔检测~~
|
||||
- 集成scrcpy
|
||||
|
@ -229,8 +229,8 @@ Android 系统的可玩性在 adb 的加成下变得更加丰富,由此涌现
|
|||
|
||||
### 字体
|
||||
|
||||
- [Misans](https://web.vip.miui.com/page/info/mio/mio/detail?postId=33935854)
|
||||
- *没有应用上 Misans 的地方一定是 bug,请进行反馈。*
|
||||
- [Misans](https://web.vip.miui.com/page/info/mio/mio/detail?postId=33935854)(好像哪里都没有应用上,应该是bug)
|
||||
- ~~*没有应用上 Misans 的地方一定是 bug,请进行反馈。*~~
|
||||
|
||||
|
||||
|
||||
|
|
|
@ -1 +0,0 @@
|
|||
git push https://github.com/LapplandSP/QtAdb.git
|
Loading…
Reference in New Issue
Block a user