mirror of
https://github.com/Qv2ray/Qv2ray.git
synced 2025-05-20 19:00:22 +08:00
[Add] Added UI For NetSpeed Bar
Signed-off-by: Leroy.H.Y <lhy20010403@hotmail.com>
This commit is contained in:
parent
38880a58ca
commit
159b0b4066
@ -1,11 +1,9 @@
|
||||
#ifndef V2CONFIG_H
|
||||
#define V2CONFIG_H
|
||||
#include <list>
|
||||
#include <string>
|
||||
|
||||
#include <x2struct/x2struct.hpp>
|
||||
|
||||
#ifndef V2CONFIG_H
|
||||
#define V2CONFIG_H
|
||||
|
||||
using namespace x2struct;
|
||||
using namespace std;
|
||||
|
||||
|
@ -54,6 +54,18 @@ namespace Qv2ray
|
||||
X::loadjson(str.toStdString(), v, false);
|
||||
return v;
|
||||
}
|
||||
//
|
||||
|
||||
|
||||
template <typename T>
|
||||
void RemoveItem(std::vector<T> &vec, size_t pos)
|
||||
{
|
||||
auto it = vec.begin();
|
||||
std::advance(it, pos);
|
||||
vec.erase(it);
|
||||
}
|
||||
|
||||
|
||||
QString FormatBytes(long long bytes, char *str);
|
||||
}
|
||||
}
|
||||
|
@ -28,26 +28,27 @@ namespace Qv2ray
|
||||
emit mainWindow->DisConnect();
|
||||
} else if (pchRequest == "RESTART") {
|
||||
emit mainWindow->ReConnect();
|
||||
} else {
|
||||
//config.speedBarConfig;
|
||||
auto conf = QvNetSpeedBarConfig();
|
||||
QvBarLine line;
|
||||
line.Family = "宋体";
|
||||
line.Italic = true;
|
||||
line.Message = "中文!!!yingwen!!!" + QDateTime().toString(Qt::TextDate).toStdString();
|
||||
QvBarLine line2;
|
||||
line2.Color = 0x00FF00FF;
|
||||
line2.Family = "Consolas";
|
||||
line2.Message = "中文!!!yingwen!!!" + QDateTime().toString(Qt::TextDate).toStdString();
|
||||
QvBarPage page;
|
||||
page.Lines.push_back(line);
|
||||
page.Lines.push_back(line2);
|
||||
page.OffsetYpx = 0;
|
||||
conf.Pages.push_back(page);
|
||||
reply = StructToJsonString(conf);
|
||||
//
|
||||
}
|
||||
|
||||
//config.speedBarConfig;
|
||||
auto conf = QvNetSpeedBarConfig();
|
||||
QvBarLine line;
|
||||
line.Family = "宋体";
|
||||
line.Italic = true;
|
||||
line.Message = "中文!!!yingwen!!!" + QDateTime().toString(Qt::TextDate).toStdString();
|
||||
QvBarLine line2;
|
||||
line2.ColorA = 0;
|
||||
line2.ColorB = 224;
|
||||
line2.ColorG = 10;
|
||||
line2.ColorR = 255;
|
||||
line2.Family = "Consolas";
|
||||
line2.Message = "中文!!!yingwen!!!" + QDateTime().toString(Qt::TextDate).toStdString();
|
||||
QvBarPage page;
|
||||
page.Lines.push_back(line);
|
||||
page.Lines.push_back(line2);
|
||||
page.OffsetYpx = 0;
|
||||
conf.Pages.push_back(page);
|
||||
reply = StructToJsonString(conf);
|
||||
return reply;
|
||||
}
|
||||
}
|
||||
|
@ -108,9 +108,9 @@ void InboundEditor::LoadUIData()
|
||||
ui->dokoTCPCB->setChecked(dokoSettings["network"].toString().contains("tcp"));
|
||||
ui->dokoUDPCB->setChecked(dokoSettings["network"].toString().contains("udp"));
|
||||
// MTProto
|
||||
ui->mtEMailTxt->setText(mtSettings["users"].toArray().first()["email"].toString());
|
||||
ui->mtUserLevelSB->setValue(mtSettings["users"].toArray().first()["level"].toInt());
|
||||
ui->mtSecretTxt->setText(mtSettings["users"].toArray().first()["secret"].toString());
|
||||
ui->mtEMailTxt->setText(mtSettings["users"].toArray().first().toObject()["email"].toString());
|
||||
ui->mtUserLevelSB->setValue(mtSettings["users"].toArray().first().toObject()["level"].toInt());
|
||||
ui->mtSecretTxt->setText(mtSettings["users"].toArray().first().toObject()["secret"].toString());
|
||||
isLoading = false;
|
||||
}
|
||||
|
||||
|
@ -5,6 +5,7 @@
|
||||
|
||||
#include <iostream>
|
||||
|
||||
#define LOADINGCHECK if(!finishedLoading) return;
|
||||
#define NEEDRESTART if(finishedLoading) IsConnectionPropertyChanged = true;
|
||||
|
||||
PrefrencesWindow::PrefrencesWindow(QWidget *parent) : QDialog(parent),
|
||||
@ -368,3 +369,123 @@ void PrefrencesWindow::on_socksUDPIP_textEdited(const QString &arg1)
|
||||
NEEDRESTART
|
||||
CurrentConfig.inBoundSettings.socksLocalIP = arg1.toStdString();
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarPageAddBTN_clicked()
|
||||
{
|
||||
QvBarPage page;
|
||||
CurrentConfig.speedBarConfig.Pages.push_back(page);
|
||||
CurrentBarPage = &page;
|
||||
ShowLineParameters(*CurrentBarLine);
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarPageDelBTN_clicked()
|
||||
{
|
||||
for (size_t i = 0; i < CurrentConfig.speedBarConfig.Pages.size(); i++) {
|
||||
if (CurrentBarPage == &CurrentConfig.speedBarConfig.Pages[i]) {
|
||||
RemoveItem(CurrentConfig.speedBarConfig.Pages, i);
|
||||
}
|
||||
}
|
||||
|
||||
ui->nsBarPagesList->removeItemWidget(ui->nsBarPagesList->currentItem());
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarPageYOffset_valueChanged(int arg1)
|
||||
{
|
||||
CurrentBarPage->OffsetYpx = arg1;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarLineAddBTN_clicked()
|
||||
{
|
||||
// WARNING Is it really just this simple?
|
||||
QvBarLine line;
|
||||
CurrentBarPage->Lines.push_back(line);
|
||||
CurrentBarLine = &line;
|
||||
ShowLineParameters(*CurrentBarLine);
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarLineDelBTN_clicked()
|
||||
{
|
||||
for (size_t i = 0; i < CurrentBarPage->Lines.size(); i++) {
|
||||
if (CurrentBarLine == &CurrentBarPage->Lines[i]) {
|
||||
RemoveItem(CurrentBarPage->Lines, i);
|
||||
}
|
||||
}
|
||||
|
||||
ui->nsBarLinesList->removeItemWidget(ui->nsBarLinesList->currentItem());
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarPagesList_currentRowChanged(int currentRow)
|
||||
{
|
||||
// Change page.
|
||||
// We reload the lines
|
||||
// Set all parameters item to the property of the first line.
|
||||
CurrentBarPage = &CurrentConfig.speedBarConfig.Pages[ static_cast<unsigned long long>(currentRow)];
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarLinesList_currentRowChanged(int currentRow)
|
||||
{
|
||||
CurrentBarLine = &CurrentBarPage->Lines[static_cast<unsigned long long>(currentRow)];
|
||||
ShowLineParameters(*CurrentBarLine);
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_fontComboBox_currentFontChanged(const QFont &f)
|
||||
{
|
||||
CurrentBarLine->Family = f.family().toStdString();
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarContentCombo_currentIndexChanged(int index)
|
||||
{
|
||||
CurrentBarLine->ContentType = index;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBatFontBoldCB_stateChanged(int arg1)
|
||||
{
|
||||
CurrentBarLine->Bold = arg1 == Qt::Checked;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBatFontItalicCB_stateChanged(int arg1)
|
||||
{
|
||||
CurrentBarLine->Italic = arg1 == Qt::Checked;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarFontASB_valueChanged(int arg1)
|
||||
{
|
||||
CurrentBarLine->ColorA = arg1;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarFontRSB_valueChanged(int arg1)
|
||||
{
|
||||
CurrentBarLine->ColorR = arg1;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarFontGSB_valueChanged(int arg1)
|
||||
{
|
||||
CurrentBarLine->ColorG = arg1;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarFontBSB_valueChanged(int arg1)
|
||||
{
|
||||
CurrentBarLine->ColorB = arg1;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::on_nsBarFontSizeSB_valueChanged(double arg1)
|
||||
{
|
||||
CurrentBarLine->Size = arg1;
|
||||
}
|
||||
|
||||
void PrefrencesWindow::ShowLineParameters(QvBarLine &line)
|
||||
{
|
||||
finishedLoading = true;
|
||||
ui->fontComboBox->setCurrentFont(QFont(QSTRING(line.Family)));
|
||||
// Colors
|
||||
ui->nsBarFontASB->setValue(line.ColorA);
|
||||
ui->nsBarFontBSB->setValue(line.ColorB);
|
||||
ui->nsBarFontGSB->setValue(line.ColorG);
|
||||
ui->nsBarFontRSB->setValue(line.ColorR);
|
||||
//
|
||||
ui->nsBarFontSizeSB->setValue(line.Size);
|
||||
ui->nsBarFontBoldCB->setChecked(line.Bold);
|
||||
ui->nsBarFontItalicCB->setChecked(line.Italic);
|
||||
ui->nsBarContentCombo->setCurrentIndex(line.ContentType);
|
||||
finishedLoading = false;
|
||||
}
|
||||
|
@ -77,7 +77,45 @@ class PrefrencesWindow : public QDialog
|
||||
|
||||
void on_socksUDPIP_textEdited(const QString &arg1);
|
||||
|
||||
void on_nsBarPageAddBTN_clicked();
|
||||
|
||||
void on_nsBarPageDelBTN_clicked();
|
||||
|
||||
void on_nsBarPageYOffset_valueChanged(int arg1);
|
||||
|
||||
void on_nsBarLineAddBTN_clicked();
|
||||
|
||||
void on_nsBarLineDelBTN_clicked();
|
||||
|
||||
void on_nsBarPagesList_currentRowChanged(int currentRow);
|
||||
|
||||
void on_nsBarLinesList_currentRowChanged(int currentRow);
|
||||
|
||||
void on_fontComboBox_currentFontChanged(const QFont &f);
|
||||
|
||||
void on_nsBarContentCombo_currentIndexChanged(int index);
|
||||
|
||||
void on_nsBatFontBoldCB_stateChanged(int arg1);
|
||||
|
||||
void on_nsBatFontItalicCB_stateChanged(int arg1);
|
||||
|
||||
void on_nsBarFontASB_valueChanged(int arg1);
|
||||
|
||||
void on_nsBarFontRSB_valueChanged(int arg1);
|
||||
|
||||
void on_nsBarFontGSB_valueChanged(int arg1);
|
||||
|
||||
void on_nsBarFontBSB_valueChanged(int arg1);
|
||||
|
||||
void on_nsBarFontSizeSB_valueChanged(double arg1);
|
||||
|
||||
private:
|
||||
// Set ui parameters for a line;
|
||||
void ShowLineParameters(QvBarLine &line);
|
||||
//
|
||||
QvBarLine *CurrentBarLine;
|
||||
QvBarPage *CurrentBarPage;
|
||||
//
|
||||
bool IsConnectionPropertyChanged = false;
|
||||
bool finishedLoading = false;
|
||||
Qv2ray::QvConfigModels::Qv2rayConfig CurrentConfig;
|
||||
|
@ -544,7 +544,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="1" column="1">
|
||||
<widget class="QCheckBox" name="nsBatFontBoldCB">
|
||||
<widget class="QCheckBox" name="nsBarFontBoldCB">
|
||||
<property name="text">
|
||||
<string>Enabled</string>
|
||||
</property>
|
||||
@ -558,7 +558,7 @@
|
||||
</widget>
|
||||
</item>
|
||||
<item row="2" column="1">
|
||||
<widget class="QCheckBox" name="nsBatFontItalicCB">
|
||||
<widget class="QCheckBox" name="nsBarFontItalicCB">
|
||||
<property name="text">
|
||||
<string>Enabled</string>
|
||||
</property>
|
||||
@ -723,9 +723,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="4" column="1" rowspan="3" colspan="2">
|
||||
<widget class="QListView" name="nsBarLinesList"/>
|
||||
</item>
|
||||
<item row="2" column="3" rowspan="2">
|
||||
<spacer name="verticalSpacer_4">
|
||||
<property name="orientation">
|
||||
@ -761,9 +758,6 @@
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item row="0" column="1" rowspan="3" colspan="2">
|
||||
<widget class="QListView" name="nsBarPagesList"/>
|
||||
</item>
|
||||
<item row="6" column="3">
|
||||
<spacer name="verticalSpacer_3">
|
||||
<property name="orientation">
|
||||
@ -777,6 +771,12 @@
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item row="0" column="1" rowspan="3" colspan="2">
|
||||
<widget class="QListWidget" name="nsBarPagesList"/>
|
||||
</item>
|
||||
<item row="4" column="1" rowspan="3" colspan="2">
|
||||
<widget class="QListWidget" name="nsBarLinesList"/>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
</item>
|
||||
|
@ -24,36 +24,36 @@ namespace Qv2ray
|
||||
#endif
|
||||
|
||||
struct QvBarLine {
|
||||
std::string Family;
|
||||
bool Bold;
|
||||
bool Italic;
|
||||
// This idiot should be DWORD
|
||||
// --> Which is unsigned long
|
||||
// ----> Which x2struct does not support.
|
||||
long long Color;
|
||||
double Size;
|
||||
std::string Message;
|
||||
std::string Family;
|
||||
bool Bold;
|
||||
bool Italic;
|
||||
int ColorA;
|
||||
int ColorR;
|
||||
int ColorG;
|
||||
int ColorB;
|
||||
int ContentType;
|
||||
double Size;
|
||||
std::string Message;
|
||||
QvBarLine()
|
||||
: Family(u8"微软雅黑")
|
||||
: Family("微软雅黑")
|
||||
, Bold(true)
|
||||
, Italic(false)
|
||||
, Color(0x00FFFFFF)
|
||||
, ColorA(0), ColorR(0), ColorG(0), ColorB(0)
|
||||
, Size(8.5),
|
||||
Message() { }
|
||||
XTOSTRUCT(O(Bold, Italic, Color, Size, Family, Message))
|
||||
XTOSTRUCT(O(Bold, Italic, ColorA, ColorR, ColorG, ColorB, Size, Family, Message))
|
||||
};
|
||||
|
||||
struct QvBarPage {
|
||||
int OffsetYpx;
|
||||
int OffsetYpx;
|
||||
std::vector<QvBarLine> Lines;
|
||||
QvBarPage() : OffsetYpx(0) { }
|
||||
XTOSTRUCT(O(OffsetYpx, Lines))
|
||||
QvBarPage() : OffsetYpx(0) { }
|
||||
};
|
||||
|
||||
struct QvNetSpeedBarConfig {
|
||||
std::vector<QvBarPage> Pages;
|
||||
XTOSTRUCT(O(Pages))
|
||||
QvNetSpeedBarConfig() { }
|
||||
};
|
||||
|
||||
QString GetAnswerToRequest(QString pchRequest);
|
||||
|
@ -365,26 +365,26 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="175"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="280"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="179"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="231"/>
|
||||
<source>Removing a user</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="175"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="280"/>
|
||||
<source>You haven't selected a user yet,</source>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="179"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="231"/>
|
||||
<source>You haven't selected a user yet.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="191"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="296"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="195"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="247"/>
|
||||
<source>Add a user</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="191"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="296"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="195"/>
|
||||
<location filename="../src/ui/w_InboundEditor.cpp" line="247"/>
|
||||
<source>This user exists already.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -471,38 +471,26 @@
|
||||
<source>Instant</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="254"/>
|
||||
<source>0.00 KB/s
|
||||
0.00 KB/s</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="291"/>
|
||||
<source>Total</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="328"/>
|
||||
<source>0.00 KB
|
||||
0.00 KB</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="513"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="45"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="42"/>
|
||||
<source>Connect</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="523"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="47"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="44"/>
|
||||
<source>Disconnect</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="530"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="46"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="43"/>
|
||||
<source>Reconnect</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -561,6 +549,18 @@
|
||||
<source>Json</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="254"/>
|
||||
<source>0.00 B/s
|
||||
0.00 B/s</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="328"/>
|
||||
<source>0.00 B
|
||||
0.00 B</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.ui" line="423"/>
|
||||
<source>#AddConnection</source>
|
||||
@ -638,28 +638,28 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="43"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="40"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="318"/>
|
||||
<source>Hide</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="44"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="41"/>
|
||||
<source>Quit</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="49"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="46"/>
|
||||
<source>Rename</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="50"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="47"/>
|
||||
<source>Connect to this</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="51"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="48"/>
|
||||
<source>Edit as Json</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -692,12 +692,12 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="52"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="49"/>
|
||||
<source>Share as vmess://</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="53"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="50"/>
|
||||
<source>Share as QRCore</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -710,7 +710,7 @@
|
||||
<message>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="231"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="232"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="674"/>
|
||||
<location filename="../src/ui/w_MainWindow.cpp" line="675"/>
|
||||
<source>Connected To Server: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1042,10 +1042,10 @@
|
||||
<name>PrefrencesWindow</name>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="20"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="107"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="312"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="322"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="334"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="112"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="305"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="315"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="327"/>
|
||||
<source>Prefrences</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1112,13 +1112,16 @@
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="140"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="175"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="231"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="262"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="301"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="332"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="393"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="414"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="421"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="235"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="266"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="315"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="341"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="372"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="441"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="462"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="469"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="549"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="563"/>
|
||||
<source>Enabled</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1133,12 +1136,12 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="225"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="229"/>
|
||||
<source>SOCKS Inbound Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="292"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="332"/>
|
||||
<source>HTTP Inbound Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1163,137 +1166,251 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="238"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="308"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="242"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="348"/>
|
||||
<source>Port</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="255"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="325"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="259"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="365"/>
|
||||
<source>Authentication</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="269"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="339"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="273"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="379"/>
|
||||
<source>Username</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="279"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="349"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="287"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="393"/>
|
||||
<source>Password</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="378"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="301"/>
|
||||
<source>SOCKS UDP</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="308"/>
|
||||
<source>Local IP</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="426"/>
|
||||
<source>Route Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="386"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="434"/>
|
||||
<source>Enable Proxy</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="400"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="448"/>
|
||||
<source>Bypass Chinese Mainland</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="407"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="455"/>
|
||||
<source>Use Local DNS</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="433"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="481"/>
|
||||
<source>DNS List</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="447"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="495"/>
|
||||
<source>NetSpeed Bar Settings</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="501"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="507"/>
|
||||
<source>Content</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="513"/>
|
||||
<source>Text</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="526"/>
|
||||
<source>Text Style</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="532"/>
|
||||
<source>Font</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="542"/>
|
||||
<source>Bold</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="556"/>
|
||||
<source>Italic</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="570"/>
|
||||
<source>Color</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="579"/>
|
||||
<source>A:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="593"/>
|
||||
<source>R:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="607"/>
|
||||
<source>G:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="621"/>
|
||||
<source>B:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="637"/>
|
||||
<source>Size</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="666"/>
|
||||
<source>You can config how the network speed toolbar looks like in this panel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="673"/>
|
||||
<source>Items</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="679"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="690"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="742"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="753"/>
|
||||
<source>...</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="701"/>
|
||||
<source>Page Y Offset</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="708"/>
|
||||
<source>Pages</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="715"/>
|
||||
<source>Lines</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="787"/>
|
||||
<source>About</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="495"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="835"/>
|
||||
<source>Qv2ray</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="517"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="857"/>
|
||||
<source>Version:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="550"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="890"/>
|
||||
<source>Official Repo:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="568"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="908"/>
|
||||
<source><html><head/><body><p><a href="https://github.com/lhy0403/Qv2ray"><span style=" text-decoration: underline; color:#2980b9;">https://github.com/lhy0403/Qv2ray</span></a></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="601"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="941"/>
|
||||
<source>License:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="619"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="959"/>
|
||||
<source><html><head/><body><p><a href="https://www.gnu.org/licenses/gpl-3.0.txt"><span style=" text-decoration: underline; color:#2980b9;">GPLv3 (https://www.gnu.org/licenses/gpl-3.0.txt)</span></a></p></body></html></source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="656"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="996"/>
|
||||
<source>About Qt</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="691"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="1031"/>
|
||||
<source>Ingore Next Version</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="698"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="1038"/>
|
||||
<source>Cancel</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="107"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.ui" line="1069"/>
|
||||
<source>Built Time</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="112"/>
|
||||
<source>Port numbers cannot be the same</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="301"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="294"/>
|
||||
<source>Enable tProxy Support</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="301"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="294"/>
|
||||
<source>This will append capabilities to the v2ray executable.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="302"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="295"/>
|
||||
<source>If anything goes wrong after enabling this, please refer to issue #57 or the link below:</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="312"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="322"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="305"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="315"/>
|
||||
<source>Failed to setcap onto v2ray executable. You may need to run `setcap` manually.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="334"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="327"/>
|
||||
<source>tProxy is not supported on macOS and Windows</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="243"/>
|
||||
<location filename="../src/ui/w_PrefrencesWindow.cpp" line="236"/>
|
||||
<source>Open v2ray assets folder</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
@ -1321,42 +1438,42 @@
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="150"/>
|
||||
<location filename="../src/main.cpp" line="151"/>
|
||||
<source>DependencyMissing</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="151"/>
|
||||
<location filename="../src/main.cpp" line="152"/>
|
||||
<source>Cannot find openssl libs</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="152"/>
|
||||
<location filename="../src/main.cpp" line="153"/>
|
||||
<source>This could be caused by a missing of `openssl` package in your system. Or an AppImage issue.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="153"/>
|
||||
<location filename="../src/main.cpp" line="154"/>
|
||||
<source>If you are using AppImage, please report a bug.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="154"/>
|
||||
<location filename="../src/main.cpp" line="155"/>
|
||||
<source>Please refer to Github Issue #65 to check for solutions.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="155"/>
|
||||
<location filename="../src/main.cpp" line="156"/>
|
||||
<source>Github Issue Link: </source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="156"/>
|
||||
<location filename="../src/main.cpp" line="157"/>
|
||||
<source>Technical Details</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
<message>
|
||||
<location filename="../src/main.cpp" line="164"/>
|
||||
<location filename="../src/main.cpp" line="165"/>
|
||||
<source>Another instance of Qv2ray is already running.</source>
|
||||
<translation type="unfinished"></translation>
|
||||
</message>
|
||||
|
Loading…
Reference in New Issue
Block a user