compare: basic ui.
This commit is contained in:
@@ -6,13 +6,126 @@
|
||||
<rect>
|
||||
<x>0</x>
|
||||
<y>0</y>
|
||||
<width>400</width>
|
||||
<height>300</height>
|
||||
<width>636</width>
|
||||
<height>277</height>
|
||||
</rect>
|
||||
</property>
|
||||
<property name="windowTitle">
|
||||
<string>Form</string>
|
||||
</property>
|
||||
<layout class="QVBoxLayout" name="verticalLayout">
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout">
|
||||
<item>
|
||||
<widget class="QComboBox" name="comboBox"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnLoad">
|
||||
<property name="text">
|
||||
<string>Load</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnSave">
|
||||
<property name="text">
|
||||
<string>Save</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_2">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="edPre"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="edAfter"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnReplace">
|
||||
<property name="text">
|
||||
<string>Replace</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QTableWidget" name="tableWidget"/>
|
||||
</item>
|
||||
<item>
|
||||
<layout class="QHBoxLayout" name="horizontalLayout_2">
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnLeft">
|
||||
<property name="text">
|
||||
<string>ToLeft</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QLineEdit" name="edSearch"/>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton">
|
||||
<property name="text">
|
||||
<string>Search</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="pushButton_2">
|
||||
<property name="text">
|
||||
<string>Reset</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
<item>
|
||||
<spacer name="horizontalSpacer_3">
|
||||
<property name="orientation">
|
||||
<enum>Qt::Orientation::Horizontal</enum>
|
||||
</property>
|
||||
<property name="sizeHint" stdset="0">
|
||||
<size>
|
||||
<width>40</width>
|
||||
<height>20</height>
|
||||
</size>
|
||||
</property>
|
||||
</spacer>
|
||||
</item>
|
||||
<item>
|
||||
<widget class="QPushButton" name="btnRight">
|
||||
<property name="text">
|
||||
<string>ToRight</string>
|
||||
</property>
|
||||
</widget>
|
||||
</item>
|
||||
</layout>
|
||||
</item>
|
||||
</layout>
|
||||
</widget>
|
||||
<resources/>
|
||||
<connections/>
|
||||
|
||||
@@ -73,7 +73,10 @@ void FileManager::InitControl()
|
||||
void FileManager::InitMenu(bool remote)
|
||||
{
|
||||
if (remote) {
|
||||
auto acDown = new QAction(tr("Download"));
|
||||
//auto acDown = new QAction(tr("Download"));
|
||||
}
|
||||
else {
|
||||
//auto acUp = new QAction(tr("Upload"));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -38,8 +38,7 @@ private:
|
||||
private:
|
||||
Ui::FileManager* ui;
|
||||
QString curRoot_;
|
||||
QMenu* localMenu_;
|
||||
QMenu* remoteMenu_;
|
||||
QMenu* menu_;
|
||||
FileTrans* fileTrans_;
|
||||
std::shared_ptr<DirFileHelper> fileHelper_;
|
||||
};
|
||||
|
||||
@@ -34,6 +34,8 @@ void frelayGUI::InitControl()
|
||||
logPrint = new LogPrint(this);
|
||||
clientCore_ = new ClientCore();
|
||||
|
||||
compare_ = new Compare(this);
|
||||
|
||||
connecter_ = new Connecter(this);
|
||||
connecter_->SetClientCore(clientCore_);
|
||||
connecter_->SetRemoteCall([this](const QString& id) { clientCore_->SetRemoteID(id); });
|
||||
@@ -65,6 +67,7 @@ void frelayGUI::ControlLayout()
|
||||
sTop->addWidget(tabWidget_);
|
||||
sTop->addWidget(connecter_);
|
||||
tabWidget_->addTab(logPrint, tr("Log"));
|
||||
tabWidget_->addTab(compare_, tr("Compare"));
|
||||
|
||||
sFile->addWidget(localFile_);
|
||||
sFile->addWidget(remoteFile_);
|
||||
|
||||
@@ -10,6 +10,7 @@
|
||||
#include "Control/ConnectControl.h"
|
||||
#include "Control/FileControl.h"
|
||||
#include "Control/LogControl.h"
|
||||
#include "Control/CompareControl.h"
|
||||
|
||||
QT_BEGIN_NAMESPACE
|
||||
namespace Ui {
|
||||
@@ -43,5 +44,6 @@ private:
|
||||
FileManager* localFile_;
|
||||
FileManager* remoteFile_;
|
||||
ClientCore* clientCore_;
|
||||
Compare* compare_;
|
||||
};
|
||||
#endif // FRELAYGUI_H
|
||||
|
||||
Reference in New Issue
Block a user