mirror of
https://github.com/barry-ran/QtScrcpy.git
synced 2025-08-02 21:58:42 +00:00
feat: add framess window
This commit is contained in:
parent
9bcfed92db
commit
748603a587
14 changed files with 151 additions and 101 deletions
|
@ -35,7 +35,7 @@ Device::Device(DeviceParams params, QObject *parent)
|
||||||
m_decoder = new Decoder(m_vb, this);
|
m_decoder = new Decoder(m_vb, this);
|
||||||
m_fileHandler = new FileHandler(this);
|
m_fileHandler = new FileHandler(this);
|
||||||
m_controller = new Controller(params.gameScript, this);
|
m_controller = new Controller(params.gameScript, this);
|
||||||
m_videoForm = new VideoForm(Config::getInstance().getSkin());
|
m_videoForm = new VideoForm(Config::getInstance().getFramelessWindow(), Config::getInstance().getSkin());
|
||||||
m_videoForm->setDevice(this);
|
m_videoForm->setDevice(this);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -25,7 +25,7 @@ extern "C"
|
||||||
#include "libavutil/frame.h"
|
#include "libavutil/frame.h"
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoForm::VideoForm(bool skin, QWidget *parent)
|
VideoForm::VideoForm(bool framelessWindow, bool skin, QWidget *parent)
|
||||||
: QWidget(parent)
|
: QWidget(parent)
|
||||||
, ui(new Ui::videoForm)
|
, ui(new Ui::videoForm)
|
||||||
, m_skin(skin)
|
, m_skin(skin)
|
||||||
|
@ -38,6 +38,9 @@ VideoForm::VideoForm(bool skin, QWidget *parent)
|
||||||
if (m_skin) {
|
if (m_skin) {
|
||||||
updateStyleSheet(vertical);
|
updateStyleSheet(vertical);
|
||||||
}
|
}
|
||||||
|
if (framelessWindow) {
|
||||||
|
setWindowFlags(windowFlags() | Qt::FramelessWindowHint);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
VideoForm::~VideoForm()
|
VideoForm::~VideoForm()
|
||||||
|
|
|
@ -17,7 +17,7 @@ class VideoForm : public QWidget
|
||||||
{
|
{
|
||||||
Q_OBJECT
|
Q_OBJECT
|
||||||
public:
|
public:
|
||||||
explicit VideoForm(bool skin = true, QWidget *parent = 0);
|
explicit VideoForm(bool framelessWindow = false, bool skin = true, QWidget *parent = 0);
|
||||||
~VideoForm();
|
~VideoForm();
|
||||||
|
|
||||||
void staysOnTop(bool top = true);
|
void staysOnTop(bool top = true);
|
||||||
|
|
|
@ -98,6 +98,7 @@ void Dialog::initUI()
|
||||||
ui->formatBox->setCurrentIndex(Config::getInstance().getRecordFormatIndex());
|
ui->formatBox->setCurrentIndex(Config::getInstance().getRecordFormatIndex());
|
||||||
|
|
||||||
ui->recordPathEdt->setText(Config::getInstance().getRecordPath());
|
ui->recordPathEdt->setText(Config::getInstance().getRecordPath());
|
||||||
|
ui->framelessCheck->setChecked(Config::getInstance().getFramelessWindow());
|
||||||
|
|
||||||
#ifdef Q_OS_OSX
|
#ifdef Q_OS_OSX
|
||||||
// mac need more width
|
// mac need more width
|
||||||
|
@ -384,3 +385,9 @@ void Dialog::on_formatBox_activated(int index)
|
||||||
{
|
{
|
||||||
Config::getInstance().setRecordFormatIndex(index);
|
Config::getInstance().setRecordFormatIndex(index);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Dialog::on_framelessCheck_stateChanged(int arg1)
|
||||||
|
{
|
||||||
|
Q_UNUSED(arg1)
|
||||||
|
Config::getInstance().setFramelessWindow(ui->framelessCheck->isChecked());
|
||||||
|
}
|
||||||
|
|
|
@ -62,6 +62,8 @@ private slots:
|
||||||
|
|
||||||
void on_formatBox_activated(int index);
|
void on_formatBox_activated(int index);
|
||||||
|
|
||||||
|
void on_framelessCheck_stateChanged(int arg1);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
bool checkAdbRun();
|
bool checkAdbRun();
|
||||||
void initUI();
|
void initUI();
|
||||||
|
|
|
@ -215,6 +215,22 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="0">
|
||||||
|
<widget class="QCheckBox" name="alwaysTopCheck">
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>always on top</string>
|
||||||
|
</property>
|
||||||
|
<property name="checked">
|
||||||
|
<bool>false</bool>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
<item row="1" column="1">
|
<item row="1" column="1">
|
||||||
<widget class="QCheckBox" name="closeScreenCheck">
|
<widget class="QCheckBox" name="closeScreenCheck">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -228,22 +244,6 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="0" column="1">
|
|
||||||
<widget class="QCheckBox" name="notDisplayCheck">
|
|
||||||
<property name="sizePolicy">
|
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
|
||||||
<horstretch>0</horstretch>
|
|
||||||
<verstretch>0</verstretch>
|
|
||||||
</sizepolicy>
|
|
||||||
</property>
|
|
||||||
<property name="text">
|
|
||||||
<string>background record</string>
|
|
||||||
</property>
|
|
||||||
<property name="checkable">
|
|
||||||
<bool>false</bool>
|
|
||||||
</property>
|
|
||||||
</widget>
|
|
||||||
</item>
|
|
||||||
<item row="0" column="3">
|
<item row="0" column="3">
|
||||||
<widget class="QCheckBox" name="useReverseCheck">
|
<widget class="QCheckBox" name="useReverseCheck">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
|
@ -260,8 +260,8 @@
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
<item row="1" column="0">
|
<item row="0" column="1">
|
||||||
<widget class="QCheckBox" name="alwaysTopCheck">
|
<widget class="QCheckBox" name="notDisplayCheck">
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
<sizepolicy hsizetype="Expanding" vsizetype="Fixed">
|
||||||
<horstretch>0</horstretch>
|
<horstretch>0</horstretch>
|
||||||
|
@ -269,13 +269,20 @@
|
||||||
</sizepolicy>
|
</sizepolicy>
|
||||||
</property>
|
</property>
|
||||||
<property name="text">
|
<property name="text">
|
||||||
<string>always on top</string>
|
<string>background record</string>
|
||||||
</property>
|
</property>
|
||||||
<property name="checked">
|
<property name="checkable">
|
||||||
<bool>false</bool>
|
<bool>false</bool>
|
||||||
</property>
|
</property>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
<item row="1" column="3">
|
||||||
|
<widget class="QCheckBox" name="framelessCheck">
|
||||||
|
<property name="text">
|
||||||
|
<string>frameless</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</item>
|
||||||
</layout>
|
</layout>
|
||||||
</widget>
|
</widget>
|
||||||
</item>
|
</item>
|
||||||
|
|
Binary file not shown.
|
@ -16,22 +16,22 @@
|
||||||
<translation type="vanished">file transfer failed</translation>
|
<translation type="vanished">file transfer failed</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="134"/>
|
<location filename="../../device/device.cpp" line="183"/>
|
||||||
<source>install apk</source>
|
<source>install apk</source>
|
||||||
<translation>install apk</translation>
|
<translation>install apk</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="136"/>
|
<location filename="../../device/device.cpp" line="185"/>
|
||||||
<source>file transfer</source>
|
<source>file transfer</source>
|
||||||
<translation>file transfer</translation>
|
<translation>file transfer</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="139"/>
|
<location filename="../../device/device.cpp" line="189"/>
|
||||||
<source>wait current %1 to complete</source>
|
<source>wait current %1 to complete</source>
|
||||||
<translation>wait current %1 to complete</translation>
|
<translation>wait current %1 to complete</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="142"/>
|
<location filename="../../device/device.cpp" line="192"/>
|
||||||
<source>%1 complete, save in %2</source>
|
<source>%1 complete, save in %2</source>
|
||||||
<translation>%1 complete, save in %2</translation>
|
<translation>%1 complete, save in %2</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
<translation type="vanished">%1 complete\n save in %2</translation>
|
<translation type="vanished">%1 complete\n save in %2</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="145"/>
|
<location filename="../../device/device.cpp" line="195"/>
|
||||||
<source>%1 failed</source>
|
<source>%1 failed</source>
|
||||||
<translation>%1 failed</translation>
|
<translation>%1 failed</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -49,17 +49,17 @@
|
||||||
<context>
|
<context>
|
||||||
<name>Dialog</name>
|
<name>Dialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="415"/>
|
<location filename="../../dialog.ui" line="422"/>
|
||||||
<source>Wireless</source>
|
<source>Wireless</source>
|
||||||
<translation>Wireless</translation>
|
<translation>Wireless</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="499"/>
|
<location filename="../../dialog.ui" line="506"/>
|
||||||
<source>wireless connect</source>
|
<source>wireless connect</source>
|
||||||
<translation>wireless connect</translation>
|
<translation>wireless connect</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="515"/>
|
<location filename="../../dialog.ui" line="522"/>
|
||||||
<source>wireless disconnect</source>
|
<source>wireless disconnect</source>
|
||||||
<translation>wireless disconnect</translation>
|
<translation>wireless disconnect</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="144"/>
|
<location filename="../../dialog.ui" line="144"/>
|
||||||
<location filename="../../dialog.cpp" line="294"/>
|
<location filename="../../dialog.cpp" line="305"/>
|
||||||
<source>select path</source>
|
<source>select path</source>
|
||||||
<translation>select path</translation>
|
<translation>select path</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -90,27 +90,32 @@
|
||||||
<translation>record screen</translation>
|
<translation>record screen</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="372"/>
|
<location filename="../../dialog.ui" line="282"/>
|
||||||
|
<source>frameless</source>
|
||||||
|
<translation>frameless</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../dialog.ui" line="379"/>
|
||||||
<source>stop all server</source>
|
<source>stop all server</source>
|
||||||
<translation>stop all server</translation>
|
<translation>stop all server</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="549"/>
|
<location filename="../../dialog.ui" line="556"/>
|
||||||
<source>adb command:</source>
|
<source>adb command:</source>
|
||||||
<translation>adb command:</translation>
|
<translation>adb command:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="585"/>
|
<location filename="../../dialog.ui" line="592"/>
|
||||||
<source>terminate</source>
|
<source>terminate</source>
|
||||||
<translation>terminate</translation>
|
<translation>terminate</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="572"/>
|
<location filename="../../dialog.ui" line="579"/>
|
||||||
<source>execute</source>
|
<source>execute</source>
|
||||||
<translation>execute</translation>
|
<translation>execute</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="598"/>
|
<location filename="../../dialog.ui" line="605"/>
|
||||||
<source>clear</source>
|
<source>clear</source>
|
||||||
<translation>clear</translation>
|
<translation>clear</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -124,12 +129,12 @@
|
||||||
<translation type="vanished">auto enable</translation>
|
<translation type="vanished">auto enable</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="240"/>
|
<location filename="../../dialog.ui" line="272"/>
|
||||||
<source>background record</source>
|
<source>background record</source>
|
||||||
<translation>background record</translation>
|
<translation>background record</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="227"/>
|
<location filename="../../dialog.ui" line="243"/>
|
||||||
<source>screen-off</source>
|
<source>screen-off</source>
|
||||||
<translation>screen-off</translation>
|
<translation>screen-off</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -144,7 +149,7 @@
|
||||||
<translation>max size:</translation>
|
<translation>max size:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="272"/>
|
<location filename="../../dialog.ui" line="227"/>
|
||||||
<source>always on top</source>
|
<source>always on top</source>
|
||||||
<translation>always on top</translation>
|
<translation>always on top</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -154,27 +159,27 @@
|
||||||
<translation>refresh script</translation>
|
<translation>refresh script</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="389"/>
|
<location filename="../../dialog.ui" line="396"/>
|
||||||
<source>get device IP</source>
|
<source>get device IP</source>
|
||||||
<translation>get device IP</translation>
|
<translation>get device IP</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="288"/>
|
<location filename="../../dialog.ui" line="295"/>
|
||||||
<source>USB line</source>
|
<source>USB line</source>
|
||||||
<translation>USB line</translation>
|
<translation>USB line</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="344"/>
|
<location filename="../../dialog.ui" line="351"/>
|
||||||
<source>stop server</source>
|
<source>stop server</source>
|
||||||
<translation>stop server</translation>
|
<translation>stop server</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="334"/>
|
<location filename="../../dialog.ui" line="341"/>
|
||||||
<source>start server</source>
|
<source>start server</source>
|
||||||
<translation>start server</translation>
|
<translation>start server</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="324"/>
|
<location filename="../../dialog.ui" line="331"/>
|
||||||
<source>device serial:</source>
|
<source>device serial:</source>
|
||||||
<translation>device serial:</translation>
|
<translation>device serial:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -188,12 +193,12 @@
|
||||||
<translation>bit rate:</translation>
|
<translation>bit rate:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="399"/>
|
<location filename="../../dialog.ui" line="406"/>
|
||||||
<source>start adbd</source>
|
<source>start adbd</source>
|
||||||
<translation>start adbd</translation>
|
<translation>start adbd</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="379"/>
|
<location filename="../../dialog.ui" line="386"/>
|
||||||
<source>refresh devices</source>
|
<source>refresh devices</source>
|
||||||
<translation>refresh devices</translation>
|
<translation>refresh devices</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -206,7 +211,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../main.cpp" line="80"/>
|
<location filename="../../main.cpp" line="101"/>
|
||||||
<source>This software is completely open source and free, you can download it at the following address:</source>
|
<source>This software is completely open source and free, you can download it at the following address:</source>
|
||||||
<translation>This software is completely open source and free, you can download it at the following address:</translation>
|
<translation>This software is completely open source and free, you can download it at the following address:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -219,12 +224,12 @@
|
||||||
<translation>Tool</translation>
|
<translation>Tool</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="26"/>
|
<location filename="../../device/ui/toolform.ui" line="33"/>
|
||||||
<source>full screen</source>
|
<source>full screen</source>
|
||||||
<translation>full screen</translation>
|
<translation>full screen</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="49"/>
|
<location filename="../../device/ui/toolform.ui" line="56"/>
|
||||||
<source>expand notify</source>
|
<source>expand notify</source>
|
||||||
<translation>expand notify</translation>
|
<translation>expand notify</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -237,52 +242,52 @@
|
||||||
<translation type="vanished">turn on</translation>
|
<translation type="vanished">turn on</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="59"/>
|
<location filename="../../device/ui/toolform.ui" line="66"/>
|
||||||
<source>touch switch</source>
|
<source>touch switch</source>
|
||||||
<translation>touch switch</translation>
|
<translation>touch switch</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="69"/>
|
<location filename="../../device/ui/toolform.ui" line="76"/>
|
||||||
<source>close screen</source>
|
<source>close screen</source>
|
||||||
<translation>close screen</translation>
|
<translation>close screen</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="79"/>
|
<location filename="../../device/ui/toolform.ui" line="86"/>
|
||||||
<source>power</source>
|
<source>power</source>
|
||||||
<translation>power</translation>
|
<translation>power</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="89"/>
|
<location filename="../../device/ui/toolform.ui" line="96"/>
|
||||||
<source>volume up</source>
|
<source>volume up</source>
|
||||||
<translation>volume up</translation>
|
<translation>volume up</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="99"/>
|
<location filename="../../device/ui/toolform.ui" line="106"/>
|
||||||
<source>volume down</source>
|
<source>volume down</source>
|
||||||
<translation>volume down</translation>
|
<translation>volume down</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="109"/>
|
<location filename="../../device/ui/toolform.ui" line="116"/>
|
||||||
<source>app switch</source>
|
<source>app switch</source>
|
||||||
<translation>app switch</translation>
|
<translation>app switch</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="119"/>
|
<location filename="../../device/ui/toolform.ui" line="126"/>
|
||||||
<source>menu</source>
|
<source>menu</source>
|
||||||
<translation>menu</translation>
|
<translation>menu</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="129"/>
|
<location filename="../../device/ui/toolform.ui" line="136"/>
|
||||||
<source>home</source>
|
<source>home</source>
|
||||||
<translation>home</translation>
|
<translation>home</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="139"/>
|
<location filename="../../device/ui/toolform.ui" line="146"/>
|
||||||
<source>return</source>
|
<source>return</source>
|
||||||
<translation>return</translation>
|
<translation>return</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="149"/>
|
<location filename="../../device/ui/toolform.ui" line="156"/>
|
||||||
<source>screen shot</source>
|
<source>screen shot</source>
|
||||||
<translation>screen shot</translation>
|
<translation>screen shot</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -302,7 +307,7 @@
|
||||||
<translation type="vanished">file transfer failed</translation>
|
<translation type="vanished">file transfer failed</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/videoform.cpp" line="415"/>
|
<location filename="../../device/ui/videoform.cpp" line="657"/>
|
||||||
<source>file does not exist</source>
|
<source>file does not exist</source>
|
||||||
<translation>file does not exist</translation>
|
<translation>file does not exist</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Binary file not shown.
|
@ -16,22 +16,22 @@
|
||||||
<translation type="vanished">文件传输失败</translation>
|
<translation type="vanished">文件传输失败</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="134"/>
|
<location filename="../../device/device.cpp" line="183"/>
|
||||||
<source>install apk</source>
|
<source>install apk</source>
|
||||||
<translation>安装apk</translation>
|
<translation>安装apk</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="136"/>
|
<location filename="../../device/device.cpp" line="185"/>
|
||||||
<source>file transfer</source>
|
<source>file transfer</source>
|
||||||
<translation>文件传输</translation>
|
<translation>文件传输</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="139"/>
|
<location filename="../../device/device.cpp" line="189"/>
|
||||||
<source>wait current %1 to complete</source>
|
<source>wait current %1 to complete</source>
|
||||||
<translation>等待当前%1完成</translation>
|
<translation>等待当前%1完成</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="142"/>
|
<location filename="../../device/device.cpp" line="192"/>
|
||||||
<source>%1 complete, save in %2</source>
|
<source>%1 complete, save in %2</source>
|
||||||
<translation>%1完成,保存在%2</translation>
|
<translation>%1完成,保存在%2</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -41,7 +41,7 @@
|
||||||
<translation type="vanished">%1完成\n 保存在 %2</translation>
|
<translation type="vanished">%1完成\n 保存在 %2</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/device.cpp" line="145"/>
|
<location filename="../../device/device.cpp" line="195"/>
|
||||||
<source>%1 failed</source>
|
<source>%1 failed</source>
|
||||||
<translation>%1 失败</translation>
|
<translation>%1 失败</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -49,17 +49,17 @@
|
||||||
<context>
|
<context>
|
||||||
<name>Dialog</name>
|
<name>Dialog</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="415"/>
|
<location filename="../../dialog.ui" line="422"/>
|
||||||
<source>Wireless</source>
|
<source>Wireless</source>
|
||||||
<translation>无线</translation>
|
<translation>无线</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="499"/>
|
<location filename="../../dialog.ui" line="506"/>
|
||||||
<source>wireless connect</source>
|
<source>wireless connect</source>
|
||||||
<translation>无线连接</translation>
|
<translation>无线连接</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="515"/>
|
<location filename="../../dialog.ui" line="522"/>
|
||||||
<source>wireless disconnect</source>
|
<source>wireless disconnect</source>
|
||||||
<translation>无线断开</translation>
|
<translation>无线断开</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -75,7 +75,7 @@
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="144"/>
|
<location filename="../../dialog.ui" line="144"/>
|
||||||
<location filename="../../dialog.cpp" line="294"/>
|
<location filename="../../dialog.cpp" line="305"/>
|
||||||
<source>select path</source>
|
<source>select path</source>
|
||||||
<translation>选择路径</translation>
|
<translation>选择路径</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -90,27 +90,32 @@
|
||||||
<translation>录制屏幕</translation>
|
<translation>录制屏幕</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="372"/>
|
<location filename="../../dialog.ui" line="282"/>
|
||||||
|
<source>frameless</source>
|
||||||
|
<translation>无边框</translation>
|
||||||
|
</message>
|
||||||
|
<message>
|
||||||
|
<location filename="../../dialog.ui" line="379"/>
|
||||||
<source>stop all server</source>
|
<source>stop all server</source>
|
||||||
<translation>停止所有服务</translation>
|
<translation>停止所有服务</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="549"/>
|
<location filename="../../dialog.ui" line="556"/>
|
||||||
<source>adb command:</source>
|
<source>adb command:</source>
|
||||||
<translation>adb命令:</translation>
|
<translation>adb命令:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="585"/>
|
<location filename="../../dialog.ui" line="592"/>
|
||||||
<source>terminate</source>
|
<source>terminate</source>
|
||||||
<translation>终止</translation>
|
<translation>终止</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="572"/>
|
<location filename="../../dialog.ui" line="579"/>
|
||||||
<source>execute</source>
|
<source>execute</source>
|
||||||
<translation>执行</translation>
|
<translation>执行</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="598"/>
|
<location filename="../../dialog.ui" line="605"/>
|
||||||
<source>clear</source>
|
<source>clear</source>
|
||||||
<translation>清理</translation>
|
<translation>清理</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -124,12 +129,12 @@
|
||||||
<translation type="vanished">自动启用脚本</translation>
|
<translation type="vanished">自动启用脚本</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="240"/>
|
<location filename="../../dialog.ui" line="272"/>
|
||||||
<source>background record</source>
|
<source>background record</source>
|
||||||
<translation>后台录制</translation>
|
<translation>后台录制</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="227"/>
|
<location filename="../../dialog.ui" line="243"/>
|
||||||
<source>screen-off</source>
|
<source>screen-off</source>
|
||||||
<translation>自动息屏</translation>
|
<translation>自动息屏</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -144,7 +149,7 @@
|
||||||
<translation>最大尺寸:</translation>
|
<translation>最大尺寸:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="272"/>
|
<location filename="../../dialog.ui" line="227"/>
|
||||||
<source>always on top</source>
|
<source>always on top</source>
|
||||||
<translation>窗口置顶</translation>
|
<translation>窗口置顶</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -154,27 +159,27 @@
|
||||||
<translation>刷新脚本</translation>
|
<translation>刷新脚本</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="389"/>
|
<location filename="../../dialog.ui" line="396"/>
|
||||||
<source>get device IP</source>
|
<source>get device IP</source>
|
||||||
<translation>获取设备IP</translation>
|
<translation>获取设备IP</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="288"/>
|
<location filename="../../dialog.ui" line="295"/>
|
||||||
<source>USB line</source>
|
<source>USB line</source>
|
||||||
<translation>USB线</translation>
|
<translation>USB线</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="344"/>
|
<location filename="../../dialog.ui" line="351"/>
|
||||||
<source>stop server</source>
|
<source>stop server</source>
|
||||||
<translation>停止服务</translation>
|
<translation>停止服务</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="334"/>
|
<location filename="../../dialog.ui" line="341"/>
|
||||||
<source>start server</source>
|
<source>start server</source>
|
||||||
<translation>启动服务</translation>
|
<translation>启动服务</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="324"/>
|
<location filename="../../dialog.ui" line="331"/>
|
||||||
<source>device serial:</source>
|
<source>device serial:</source>
|
||||||
<translation>设备序列号:</translation>
|
<translation>设备序列号:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -188,12 +193,12 @@
|
||||||
<translation>比特率:</translation>
|
<translation>比特率:</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="399"/>
|
<location filename="../../dialog.ui" line="406"/>
|
||||||
<source>start adbd</source>
|
<source>start adbd</source>
|
||||||
<translation>启动adbd</translation>
|
<translation>启动adbd</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../dialog.ui" line="379"/>
|
<location filename="../../dialog.ui" line="386"/>
|
||||||
<source>refresh devices</source>
|
<source>refresh devices</source>
|
||||||
<translation>刷新设备列表</translation>
|
<translation>刷新设备列表</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -206,7 +211,7 @@
|
||||||
<context>
|
<context>
|
||||||
<name>QObject</name>
|
<name>QObject</name>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../main.cpp" line="80"/>
|
<location filename="../../main.cpp" line="101"/>
|
||||||
<source>This software is completely open source and free, you can download it at the following address:</source>
|
<source>This software is completely open source and free, you can download it at the following address:</source>
|
||||||
<translation>本软件完全开源免费,你可以在下面的地址下载:</translation>
|
<translation>本软件完全开源免费,你可以在下面的地址下载:</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -219,12 +224,12 @@
|
||||||
<translation>工具</translation>
|
<translation>工具</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="26"/>
|
<location filename="../../device/ui/toolform.ui" line="33"/>
|
||||||
<source>full screen</source>
|
<source>full screen</source>
|
||||||
<translation>全屏</translation>
|
<translation>全屏</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="49"/>
|
<location filename="../../device/ui/toolform.ui" line="56"/>
|
||||||
<source>expand notify</source>
|
<source>expand notify</source>
|
||||||
<translation>下拉通知</translation>
|
<translation>下拉通知</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -237,52 +242,52 @@
|
||||||
<translation type="vanished">解锁</translation>
|
<translation type="vanished">解锁</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="59"/>
|
<location filename="../../device/ui/toolform.ui" line="66"/>
|
||||||
<source>touch switch</source>
|
<source>touch switch</source>
|
||||||
<translation>触摸显示开关</translation>
|
<translation>触摸显示开关</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="69"/>
|
<location filename="../../device/ui/toolform.ui" line="76"/>
|
||||||
<source>close screen</source>
|
<source>close screen</source>
|
||||||
<translation>关闭屏幕</translation>
|
<translation>关闭屏幕</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="79"/>
|
<location filename="../../device/ui/toolform.ui" line="86"/>
|
||||||
<source>power</source>
|
<source>power</source>
|
||||||
<translation>电源</translation>
|
<translation>电源</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="89"/>
|
<location filename="../../device/ui/toolform.ui" line="96"/>
|
||||||
<source>volume up</source>
|
<source>volume up</source>
|
||||||
<translation>音量加</translation>
|
<translation>音量加</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="99"/>
|
<location filename="../../device/ui/toolform.ui" line="106"/>
|
||||||
<source>volume down</source>
|
<source>volume down</source>
|
||||||
<translation>音量减</translation>
|
<translation>音量减</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="109"/>
|
<location filename="../../device/ui/toolform.ui" line="116"/>
|
||||||
<source>app switch</source>
|
<source>app switch</source>
|
||||||
<translation>切换应用</translation>
|
<translation>切换应用</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="119"/>
|
<location filename="../../device/ui/toolform.ui" line="126"/>
|
||||||
<source>menu</source>
|
<source>menu</source>
|
||||||
<translation>菜单</translation>
|
<translation>菜单</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="129"/>
|
<location filename="../../device/ui/toolform.ui" line="136"/>
|
||||||
<source>home</source>
|
<source>home</source>
|
||||||
<translation>主界面</translation>
|
<translation>主界面</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="139"/>
|
<location filename="../../device/ui/toolform.ui" line="146"/>
|
||||||
<source>return</source>
|
<source>return</source>
|
||||||
<translation>返回</translation>
|
<translation>返回</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/toolform.ui" line="149"/>
|
<location filename="../../device/ui/toolform.ui" line="156"/>
|
||||||
<source>screen shot</source>
|
<source>screen shot</source>
|
||||||
<translation>截图</translation>
|
<translation>截图</translation>
|
||||||
</message>
|
</message>
|
||||||
|
@ -302,7 +307,7 @@
|
||||||
<translation type="vanished">文件传输失败</translation>
|
<translation type="vanished">文件传输失败</translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../../device/ui/videoform.cpp" line="415"/>
|
<location filename="../../device/ui/videoform.cpp" line="657"/>
|
||||||
<source>file does not exist</source>
|
<source>file does not exist</source>
|
||||||
<translation>文件不存在</translation>
|
<translation>文件不存在</translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -50,6 +50,9 @@
|
||||||
#define SERIAL_WINDOW_RECT_KEY_H "WindowRectH"
|
#define SERIAL_WINDOW_RECT_KEY_H "WindowRectH"
|
||||||
#define SERIAL_WINDOW_RECT_KEY_DEF -1
|
#define SERIAL_WINDOW_RECT_KEY_DEF -1
|
||||||
|
|
||||||
|
#define COMMON_FRAMELESS_WINDOW_KEY "FramelessWindow"
|
||||||
|
#define COMMON_FRAMELESS_WINDOW_DEF false
|
||||||
|
|
||||||
// 最大尺寸 录制格式
|
// 最大尺寸 录制格式
|
||||||
|
|
||||||
QString Config::s_configPath = "";
|
QString Config::s_configPath = "";
|
||||||
|
@ -169,6 +172,22 @@ QRect Config::getRect(const QString &serial)
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void Config::setFramelessWindow(bool frameless)
|
||||||
|
{
|
||||||
|
m_userData->beginGroup(GROUP_COMMON);
|
||||||
|
m_userData->setValue(COMMON_FRAMELESS_WINDOW_KEY, frameless);
|
||||||
|
m_userData->endGroup();
|
||||||
|
}
|
||||||
|
|
||||||
|
bool Config::getFramelessWindow()
|
||||||
|
{
|
||||||
|
bool framelessWindow = false;
|
||||||
|
m_userData->beginGroup(GROUP_COMMON);
|
||||||
|
framelessWindow = m_userData->value(COMMON_FRAMELESS_WINDOW_KEY, COMMON_FRAMELESS_WINDOW_DEF).toBool();
|
||||||
|
m_userData->endGroup();
|
||||||
|
return framelessWindow;
|
||||||
|
}
|
||||||
|
|
||||||
QString Config::getServerVersion()
|
QString Config::getServerVersion()
|
||||||
{
|
{
|
||||||
QString server;
|
QString server;
|
||||||
|
|
|
@ -32,6 +32,8 @@ public:
|
||||||
void setRecordFormatIndex(int recordFormatIndex);
|
void setRecordFormatIndex(int recordFormatIndex);
|
||||||
void setRect(const QString &serial, const QRect &rc);
|
void setRect(const QString &serial, const QRect &rc);
|
||||||
QRect getRect(const QString &serial);
|
QRect getRect(const QString &serial);
|
||||||
|
bool getFramelessWindow();
|
||||||
|
void setFramelessWindow(bool frameless);
|
||||||
|
|
||||||
private:
|
private:
|
||||||
explicit Config(QObject *parent = nullptr);
|
explicit Config(QObject *parent = nullptr);
|
||||||
|
|
|
@ -226,7 +226,7 @@ There are several reasons listed as below according to importance (high to low).
|
||||||
All the dependencies are provided and it is easy to compile.
|
All the dependencies are provided and it is easy to compile.
|
||||||
|
|
||||||
### PC client
|
### PC client
|
||||||
1. Set up the Qt development environment on the target platform (Qt >= 5.9.7, vs >= 2015 (mingw not supported))
|
1. Set up the Qt development environment on the target platform (Qt >= 5.12.0, vs >= 2017 (mingw not supported))
|
||||||
2. Clone the project
|
2. Clone the project
|
||||||
3. Open the project root directory all.pro with QtCreator
|
3. Open the project root directory all.pro with QtCreator
|
||||||
4. Compile and run
|
4. Compile and run
|
||||||
|
|
|
@ -226,7 +226,7 @@ Mac OS平台,你可以直接使用我编译好的可执行程序:
|
||||||
尽量提供了所有依赖资源,方便傻瓜式编译。
|
尽量提供了所有依赖资源,方便傻瓜式编译。
|
||||||
|
|
||||||
### PC端
|
### PC端
|
||||||
1. 目标平台上搭建Qt开发环境(Qt >= 5.9.7, vs >= 2015 (**不支持mingw**))
|
1. 目标平台上搭建Qt开发环境(Qt >= 5.12.0, vs >= 2017 (**不支持mingw**))
|
||||||
2. 克隆该项目
|
2. 克隆该项目
|
||||||
3. 使用QtCreator打开项目根目录all.pro
|
3. 使用QtCreator打开项目根目录all.pro
|
||||||
4. 编译,运行即可
|
4. 编译,运行即可
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue