diff --git a/product/src/gui/GraphTool/GraphTool.pro b/product/src/gui/GraphTool/GraphTool.pro index ffa729f5..3272d705 100644 --- a/product/src/gui/GraphTool/GraphTool.pro +++ b/product/src/gui/GraphTool/GraphTool.pro @@ -1,3 +1,7 @@ TEMPLATE=subdirs CONFIG += ordered -SUBDIRS+= fileSync NavigationApi NavigationTool IconActTool +SUBDIRS+= \ +# fileSync \ + NavigationApi \ + NavigationTool \ + IconActTool diff --git a/product/src/gui/GraphTool/IconActTool/CFileOpt.cpp b/product/src/gui/GraphTool/IconActTool/CFileOpt.cpp index 1addb11f..b9374de3 100644 --- a/product/src/gui/GraphTool/IconActTool/CFileOpt.cpp +++ b/product/src/gui/GraphTool/IconActTool/CFileOpt.cpp @@ -1,4 +1,4 @@ -#include "CFileOpt.h" +#include "CFileOpt.h" #include "public/pub_logger_api/logger.h" #include "public/pub_utility_api/FileUtil.h" #include @@ -11,7 +11,7 @@ CFileOpt::CFileOpt() { - std::string currentPath = kbd_public::CFileUtil::getCurModuleDir(); + std::string currentPath = iot_public::CFileUtil::getCurModuleDir(); readColorCofig(QString::fromStdString(currentPath) + "/../../data/model/colorConfig.xml", m_strategyMap); readIconDefaultStrategy(QString::fromStdString(currentPath) + "/../../data/model/toolbox.xml", m_iconDefaultStrategyMap); } diff --git a/product/src/gui/GraphTool/IconActTool/CFileOpt.h b/product/src/gui/GraphTool/IconActTool/CFileOpt.h index f542d223..51b02e69 100644 --- a/product/src/gui/GraphTool/IconActTool/CFileOpt.h +++ b/product/src/gui/GraphTool/IconActTool/CFileOpt.h @@ -1,4 +1,4 @@ -#ifndef CFILEOPT_H +#ifndef CFILEOPT_H #define CFILEOPT_H #include diff --git a/product/src/gui/GraphTool/IconActTool/CIconActDialog.cpp b/product/src/gui/GraphTool/IconActTool/CIconActDialog.cpp index dbe72bec..240617e4 100644 --- a/product/src/gui/GraphTool/IconActTool/CIconActDialog.cpp +++ b/product/src/gui/GraphTool/IconActTool/CIconActDialog.cpp @@ -1,4 +1,4 @@ -#include "CIconActDialog.h" +#include "CIconActDialog.h" #include "ui_CIconActDialog.h" #include "public/pub_utility_api/FileUtil.h" #include "CTableModel.h" @@ -11,14 +11,18 @@ #include CIconActDialog::CIconActDialog(QWidget *parent) : - QDialog(parent), + CustomUiDialog(parent), ui(new Ui::CIconActDialog), m_pTableModel(Q_NULLPTR), m_pFileOpt(Q_NULLPTR) { + setWindowTitle(tr("图元动作")); + ui->setupUi(this); initialize(); + + CustomUiDialog::setAutoLayout(true); } CIconActDialog::~CIconActDialog() @@ -159,7 +163,7 @@ void CIconActDialog::initialize() m_actMap.insert(ACT_LEFT_DOUCLICK, tr("左键双击")); m_simMap.insert(SIM_FORBID, tr("禁止")); m_simMap.insert(SIM_ALLOW, tr("允许")); - std::string currentPath = kbd_public::CFileUtil::getCurModuleDir(); + std::string currentPath = iot_public::CFileUtil::getCurModuleDir(); CTableDelegate * iconDelegate = new CTableDelegate(this, CTableDelegate::IconFile); iconDelegate->setFilePath(QString::fromStdString(currentPath) + "/../../data/icon/"); CTableDelegate * actnDelegate = new CTableDelegate(this, CTableDelegate::ComboBox); diff --git a/product/src/gui/GraphTool/IconActTool/CIconActDialog.h b/product/src/gui/GraphTool/IconActTool/CIconActDialog.h index 38d52867..23a27a51 100644 --- a/product/src/gui/GraphTool/IconActTool/CIconActDialog.h +++ b/product/src/gui/GraphTool/IconActTool/CIconActDialog.h @@ -1,8 +1,8 @@ -#ifndef CICONACTDIALOG_H +#ifndef CICONACTDIALOG_H #define CICONACTDIALOG_H -#include #include +#include "pub_widget/CustomDialog.h" namespace Ui { class CIconActDialog; @@ -10,7 +10,7 @@ class CIconActDialog; class CTableModel; class CFileOpt; -class CIconActDialog : public QDialog +class CIconActDialog : public CustomUiDialog { Q_OBJECT diff --git a/product/src/gui/GraphTool/IconActTool/CIconActDialog.ui b/product/src/gui/GraphTool/IconActTool/CIconActDialog.ui index e6691260..16ce7546 100644 --- a/product/src/gui/GraphTool/IconActTool/CIconActDialog.ui +++ b/product/src/gui/GraphTool/IconActTool/CIconActDialog.ui @@ -46,19 +46,6 @@ - - - - Qt::Horizontal - - - - 40 - 20 - - - - @@ -109,6 +96,19 @@ + + + + Qt::Horizontal + + + + 40 + 20 + + + + diff --git a/product/src/gui/GraphTool/IconActTool/CIconActPublic.h b/product/src/gui/GraphTool/IconActTool/CIconActPublic.h index 277dfd99..8eca3890 100644 --- a/product/src/gui/GraphTool/IconActTool/CIconActPublic.h +++ b/product/src/gui/GraphTool/IconActTool/CIconActPublic.h @@ -1,4 +1,4 @@ -#ifndef CICONACTPUBLIC_H +#ifndef CICONACTPUBLIC_H #define CICONACTPUBLIC_H #include diff --git a/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.cpp b/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.cpp index c1f713df..77d85a6f 100644 --- a/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.cpp +++ b/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.cpp @@ -1,4 +1,4 @@ -#include "CLineEditWithBt.h" +#include "CLineEditWithBt.h" #include #include #include diff --git a/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.h b/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.h index c8d2b380..05e5b4c1 100644 --- a/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.h +++ b/product/src/gui/GraphTool/IconActTool/CLineEditWithBt.h @@ -1,4 +1,4 @@ -#ifndef CLINEEDITWITHBT_H +#ifndef CLINEEDITWITHBT_H #define CLINEEDITWITHBT_H #include diff --git a/product/src/gui/GraphTool/IconActTool/CTableDelegate.cpp b/product/src/gui/GraphTool/IconActTool/CTableDelegate.cpp index 97c73650..3b913eb3 100644 --- a/product/src/gui/GraphTool/IconActTool/CTableDelegate.cpp +++ b/product/src/gui/GraphTool/IconActTool/CTableDelegate.cpp @@ -1,4 +1,4 @@ -#include "CTableDelegate.h" +#include "CTableDelegate.h" #include "CLineEditWithBt.h" #include #include diff --git a/product/src/gui/GraphTool/IconActTool/CTableDelegate.h b/product/src/gui/GraphTool/IconActTool/CTableDelegate.h index e511bbcb..d10c7b2e 100644 --- a/product/src/gui/GraphTool/IconActTool/CTableDelegate.h +++ b/product/src/gui/GraphTool/IconActTool/CTableDelegate.h @@ -1,4 +1,4 @@ -#ifndef CTREEITEMDELEGATE_H +#ifndef CTREEITEMDELEGATE_H #define CTREEITEMDELEGATE_H #include diff --git a/product/src/gui/GraphTool/IconActTool/CTableModel.cpp b/product/src/gui/GraphTool/IconActTool/CTableModel.cpp index 80fa13d5..b3945b1b 100644 --- a/product/src/gui/GraphTool/IconActTool/CTableModel.cpp +++ b/product/src/gui/GraphTool/IconActTool/CTableModel.cpp @@ -1,4 +1,4 @@ -#include "CTableModel.h" +#include "CTableModel.h" #include "CIconActDialog.h" CTableModel::CTableModel(QObject *parent) diff --git a/product/src/gui/GraphTool/IconActTool/CTableModel.h b/product/src/gui/GraphTool/IconActTool/CTableModel.h index cb2f2417..a7386d65 100644 --- a/product/src/gui/GraphTool/IconActTool/CTableModel.h +++ b/product/src/gui/GraphTool/IconActTool/CTableModel.h @@ -1,4 +1,4 @@ -#ifndef CTABLEMODEL_H +#ifndef CTABLEMODEL_H #define CTABLEMODEL_H #include diff --git a/product/src/gui/GraphTool/IconActTool/IconActTool.pro b/product/src/gui/GraphTool/IconActTool/IconActTool.pro index e72679c1..1e11abad 100644 --- a/product/src/gui/GraphTool/IconActTool/IconActTool.pro +++ b/product/src/gui/GraphTool/IconActTool/IconActTool.pro @@ -45,7 +45,8 @@ FORMS += \ LIBS += \ -lpub_utility_api \ -llog4cplus \ - -lpub_logger_api + -lpub_logger_api \ + -lpub_widget COMMON_PRI=$$PWD/../../../common.pri exists($$COMMON_PRI) { diff --git a/product/src/gui/GraphTool/IconActTool/main.cpp b/product/src/gui/GraphTool/IconActTool/main.cpp index 2a4c14be..eb3ce3ec 100644 --- a/product/src/gui/GraphTool/IconActTool/main.cpp +++ b/product/src/gui/GraphTool/IconActTool/main.cpp @@ -1,17 +1,46 @@ - + #include #include #include "common/QtAppGlobalSet.h" #include "CIconActDialog.h" +#include "pub_utility_api/FileStyle.h" int main(int argc, char *argv[]) { - kbd_common::doQtAppGlobalSet(); + iot_common::doQtAppGlobalSet(); QTextCodec *codec = QTextCodec::codecForName("UTF-8"); QTextCodec::setCodecForLocale(codec); QApplication a(argc, argv); + + QString qss = QString(); + std::string strFullPath = iot_public::CFileStyle::getPathOfStyleFile("public.qss","zh","light"); + + QFile qssfile1(QString::fromStdString(strFullPath)); + qssfile1.open(QFile::ReadOnly); + if (qssfile1.isOpen()) + { + qss += QLatin1String(qssfile1.readAll()); + qssfile1.close(); + } + + strFullPath = iot_public::CFileStyle::getPathOfStyleFile("IconActTool.qss","zh","light"); + QFile qssfile2(QString::fromStdString(strFullPath)); + qssfile2.open(QFile::ReadOnly); + if (qssfile2.isOpen()) + { + qss += QLatin1String(qssfile2.readAll()); + qssfile2.close(); + } + + if (!qss.isEmpty()) + { + qApp->setStyleSheet(qss); + } + +// qApp->setFont(QFont("Microsoft YaHei",10)); + CIconActDialog w; w.show(); diff --git a/product/src/gui/GraphTool/NavigationApi/CJsonOpt.cpp b/product/src/gui/GraphTool/NavigationApi/CJsonOpt.cpp index 460c8d51..ddfa8c74 100644 --- a/product/src/gui/GraphTool/NavigationApi/CJsonOpt.cpp +++ b/product/src/gui/GraphTool/NavigationApi/CJsonOpt.cpp @@ -1,4 +1,4 @@ -#include "gui/GraphTool/NavigationApi/CJsonOpt.h" +#include "gui/GraphTool/NavigationApi/CJsonOpt.h" #include "public/pub_utility_api/FileUtil.h" #include "public/pub_logger_api/logger.h" #include @@ -10,7 +10,7 @@ CJsonOpt::CJsonOpt() { - std::string currentPath = kbd_public::CFileUtil::getCurModuleDir(); + std::string currentPath = iot_public::CFileUtil::getCurModuleDir(); QDir dir(QString::fromStdString(currentPath)); dir.cdUp(); dir.cdUp(); diff --git a/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.cpp b/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.cpp index e3f10b92..d7308e40 100644 --- a/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.cpp +++ b/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.cpp @@ -1,4 +1,4 @@ -#include "CLineEditWithBt.h" +#include "CLineEditWithBt.h" #include #include #include diff --git a/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.h b/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.h index c8d2b380..05e5b4c1 100644 --- a/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.h +++ b/product/src/gui/GraphTool/NavigationTool/CLineEditWithBt.h @@ -1,4 +1,4 @@ -#ifndef CLINEEDITWITHBT_H +#ifndef CLINEEDITWITHBT_H #define CLINEEDITWITHBT_H #include diff --git a/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.cpp b/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.cpp index 836e4e67..e2b595ea 100644 --- a/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.cpp +++ b/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.cpp @@ -1,4 +1,4 @@ -#include "CNavigationDialog.h" +#include "CNavigationDialog.h" #include "ui_CNavigationDialog.h" #include "CTreeItemDelegate.h" #include "public/pub_utility_api/FileUtil.h" @@ -13,10 +13,13 @@ const int Item_Role = Qt::UserRole + 1; CNavigationDialog::CNavigationDialog(QWidget *parent) : - QDialog(parent), + CustomUiMainWindow(parent), ui(new Ui::CNavigationDialog), m_itemIndex(0) { + setWindowTitle(tr("导航栏配置工具")); + CustomUiMainWindow::setAutoLayout(true); + ui->setupUi(this); initialize(); @@ -71,7 +74,7 @@ void CNavigationDialog::initialize() CTreeItemDelegate *boxDelegate2 = new CTreeItemDelegate(this, CTreeItemDelegate::ComboBox); boxDelegate2->setComboMap(m_mapType); - std::string currentPath = kbd_public::CFileUtil::getCurModuleDir(); + std::string currentPath = iot_public::CFileUtil::getCurModuleDir(); QDir dir(QString::fromStdString(currentPath)); dir.cdUp(); dir.cdUp(); @@ -568,12 +571,12 @@ void CNavigationDialog::onConfirmClicked() QMessageBox::information(this, tr("提示"), tr("保存失败!"), QMessageBox::Ok); return; } - accept(); + } void CNavigationDialog::onCancelClicked() { - reject(); + } void CNavigationDialog::onExport() @@ -783,7 +786,7 @@ QMap CNavigationDialog::makePathMap() { QMap fileMap; QDir picDir(m_strFileHomePath + "pic" + QDir::separator()); - std::string exePath = kbd_public::CFileUtil::getCurModuleDir(); + std::string exePath = iot_public::CFileUtil::getCurModuleDir(); fileMap.insert(SWITCH_GRAPH, picDir.path()); fileMap.insert(LOAD_WEBURL, picDir.path()); fileMap.insert(EXTERN_PRO, QString::fromStdString(exePath)); diff --git a/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.h b/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.h index 5d623445..4844e7ea 100644 --- a/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.h +++ b/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.h @@ -1,9 +1,9 @@ -#ifndef CNAVIGATIONDIALOG_H +#ifndef CNAVIGATIONDIALOG_H #define CNAVIGATIONDIALOG_H -#include #include "gui/GraphTool/NavigationApi/CJsonOpt.h" #include "model_excel/xlsx/xlsxdocument.h" +#include "pub_widget/CustomMainWindow.h" namespace Ui { class CNavigationDialog; @@ -12,7 +12,7 @@ class CNavigationDialog; extern const int Item_Role; //< 节点数-仅导入使用 class QTreeWidgetItem; -class CNavigationDialog : public QDialog +class CNavigationDialog : public CustomUiMainWindow { Q_OBJECT diff --git a/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.ui b/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.ui index 78529a16..382d8ee8 100644 --- a/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.ui +++ b/product/src/gui/GraphTool/NavigationTool/CNavigationDialog.ui @@ -1,279 +1,269 @@ CNavigationDialog - + 0 0 - 1087 - 673 + 800 + 600 - 导航栏配置工具 + MainWindow - - - 0 - - - 0 - - - 0 - - - 0 - - - 0 - - - - - QFrame::StyledPanel - - - QFrame::Plain - - - - 6 + + + + + + QFrame::NoFrame - - 6 + + QFrame::Plain - - 6 + + 1 - - 6 - - - - - - - - 21 - 21 - - - - - 21 - 21 - - - - 添加节点 - - - + - - - - - - - - 21 - 21 - - - - - 21 - 21 - - - - 添加子节点 - - - - - - - - - - - 21 - 21 - - - - - 21 - 21 - - - - 删除节点 - - - - - - - - - - - - 21 - 21 - - - - - 21 - 21 - - - - 清空节点 - - - × - - - - - - - - 21 - 21 - - - - - 21 - 21 - - - - 上移节点 - - - - - - - - - - - 21 - 21 - - - - - 21 - 21 - - - - 下移节点 - - - - - - - - - - - - Qt::Horizontal - - - - 484 - 17 - - - - - - - - - - 导入 - - - - - - - 导出 - - - - - - - - - - 1 + + + 6 + + + 6 + + + 6 + + + 6 + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + 添加节点 + + + + + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + 添加子节点 + + + + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + 删除节点 + + + - + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + 清空节点 + + + × + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + 上移节点 + + + + + + + + + + + 21 + 21 + + + + + 21 + 21 + + + + 下移节点 + + + + + + + + + + + + Qt::Horizontal - - - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - + + + 484 + 17 + + + + + + + + + + 导入 + + + + + + + 导出 + + + + + + + + - 确认 + 1 - - - - - - 取消 - - - - - - - Qt::Horizontal - - - - 40 - 20 - - - - - - - - - - + + + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + 确认 + + + + + + + 取消 + + + + + + + Qt::Horizontal + + + + 40 + 20 + + + + + + + + + + + diff --git a/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.cpp b/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.cpp index f5a447d4..33f60740 100644 --- a/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.cpp +++ b/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.cpp @@ -1,4 +1,4 @@ -#include "CTreeItemDelegate.h" +#include "CTreeItemDelegate.h" #include "CLineEditWithBt.h" #include "gui/GraphTool/NavigationApi/CJsonOpt.h" #include diff --git a/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.h b/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.h index 8a849137..02e293a7 100644 --- a/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.h +++ b/product/src/gui/GraphTool/NavigationTool/CTreeItemDelegate.h @@ -1,4 +1,4 @@ -#ifndef CTREEITEMDELEGATE_H +#ifndef CTREEITEMDELEGATE_H #define CTREEITEMDELEGATE_H #include diff --git a/product/src/gui/GraphTool/NavigationTool/CTreeWidget.cpp b/product/src/gui/GraphTool/NavigationTool/CTreeWidget.cpp index 69863577..d35daca3 100644 --- a/product/src/gui/GraphTool/NavigationTool/CTreeWidget.cpp +++ b/product/src/gui/GraphTool/NavigationTool/CTreeWidget.cpp @@ -1,4 +1,4 @@ -#include "CTreeWidget.h" +#include "CTreeWidget.h" #include CTreeWidget::CTreeWidget(QWidget *parent) diff --git a/product/src/gui/GraphTool/NavigationTool/CTreeWidget.h b/product/src/gui/GraphTool/NavigationTool/CTreeWidget.h index eb77cf55..ffe2668a 100644 --- a/product/src/gui/GraphTool/NavigationTool/CTreeWidget.h +++ b/product/src/gui/GraphTool/NavigationTool/CTreeWidget.h @@ -1,4 +1,4 @@ -#ifndef CTREEWIDGET_H +#ifndef CTREEWIDGET_H #define CTREEWIDGET_H #include diff --git a/product/src/gui/GraphTool/NavigationTool/NavigationTool.pro b/product/src/gui/GraphTool/NavigationTool/NavigationTool.pro index 738a18b6..6b2f9efd 100644 --- a/product/src/gui/GraphTool/NavigationTool/NavigationTool.pro +++ b/product/src/gui/GraphTool/NavigationTool/NavigationTool.pro @@ -45,7 +45,8 @@ LIBS += \ -lpub_logger_api \ -lpub_utility_api \ -lmodel_excel \ - -lNavigationApi + -lNavigationApi \ + -lpub_widget COMMON_PRI=$$PWD/../../../common.pri exists($$COMMON_PRI) { diff --git a/product/src/gui/GraphTool/NavigationTool/main.cpp b/product/src/gui/GraphTool/NavigationTool/main.cpp index 67009be8..9fefa9b9 100644 --- a/product/src/gui/GraphTool/NavigationTool/main.cpp +++ b/product/src/gui/GraphTool/NavigationTool/main.cpp @@ -1,13 +1,41 @@ - + #include #include "common/QtAppGlobalSet.h" #include "CNavigationDialog.h" +#include "pub_utility_api/FileStyle.h" int main(int argc, char *argv[]) { - kbd_common::doQtAppGlobalSet(); + iot_common::doQtAppGlobalSet(); QApplication a(argc, argv); + QString qss = QString(); + std::string strFullPath = iot_public::CFileStyle::getPathOfStyleFile("public.qss","zh","light"); + + QFile qssfile1(QString::fromStdString(strFullPath)); + qssfile1.open(QFile::ReadOnly); + if (qssfile1.isOpen()) + { + qss += QLatin1String(qssfile1.readAll()); + qssfile1.close(); + } + + strFullPath = iot_public::CFileStyle::getPathOfStyleFile("NavigationTool.qss","zh","light"); + QFile qssfile2(QString::fromStdString(strFullPath)); + qssfile2.open(QFile::ReadOnly); + if (qssfile2.isOpen()) + { + qss += QLatin1String(qssfile2.readAll()); + qssfile2.close(); + } + + if (!qss.isEmpty()) + { + qApp->setStyleSheet(qss); + } + +// qApp->setFont(QFont("Microsoft YaHei",10)); + CNavigationDialog w; w.show(); diff --git a/product/src/gui/GraphTool/fileSync/CConfirmDialog.cpp b/product/src/gui/GraphTool/fileSync/CConfirmDialog.cpp index b564d43c..30ba9dbd 100644 --- a/product/src/gui/GraphTool/fileSync/CConfirmDialog.cpp +++ b/product/src/gui/GraphTool/fileSync/CConfirmDialog.cpp @@ -1,4 +1,4 @@ -#include "CConfirmDialog.h" +#include "CConfirmDialog.h" #include "ui_CConfirmDialog.h" CConfirmDialog::CConfirmDialog(QWidget *parent) : diff --git a/product/src/gui/GraphTool/fileSync/CConfirmDialog.h b/product/src/gui/GraphTool/fileSync/CConfirmDialog.h index fa3537ab..bf11defd 100644 --- a/product/src/gui/GraphTool/fileSync/CConfirmDialog.h +++ b/product/src/gui/GraphTool/fileSync/CConfirmDialog.h @@ -1,4 +1,4 @@ -#ifndef CCONFIRMDIALOG_H +#ifndef CCONFIRMDIALOG_H #define CCONFIRMDIALOG_H #include @@ -9,7 +9,7 @@ namespace Ui { class CConfirmDialog; } -using namespace kbd_sys; +using namespace iot_sys; class CConfirmDialog : public QDialog { Q_OBJECT diff --git a/product/src/gui/GraphTool/fileSync/CFileSyncDialog.cpp b/product/src/gui/GraphTool/fileSync/CFileSyncDialog.cpp index a3be281c..146dc163 100644 --- a/product/src/gui/GraphTool/fileSync/CFileSyncDialog.cpp +++ b/product/src/gui/GraphTool/fileSync/CFileSyncDialog.cpp @@ -1,4 +1,4 @@ -#include "CFileSyncDialog.h" +#include "CFileSyncDialog.h" #include "ui_CFileSyncDialog.h" #include "CConfirmDialog.h" #include "../include/public/pub_utility_api/I18N.h" @@ -18,7 +18,7 @@ CFileSyncDialog::CFileSyncDialog(QDialog *parent) : { QTextCodec::setCodecForLocale(QTextCodec::codecForName("utf8")); - if(kbd_public::getCurLanguage() == "en") + if(iot_public::getCurLanguage() == "en") { QTranslator * sysTranslator = new QTranslator(this); sysTranslator->load(":/fileSync_en.qm"); @@ -289,7 +289,7 @@ void CFileSyncDialog::getFileInfos(const QString &path, QFileInfoList &list) void CFileSyncDialog::getSvnFile(const QString &path, QMap &name, QString& error) { - QVector vecFileStatus; + QVector vecFileStatus; QStringList list; list.append(path); diff --git a/product/src/gui/GraphTool/fileSync/CFileSyncDialog.h b/product/src/gui/GraphTool/fileSync/CFileSyncDialog.h index 026f762c..66f9ed58 100644 --- a/product/src/gui/GraphTool/fileSync/CFileSyncDialog.h +++ b/product/src/gui/GraphTool/fileSync/CFileSyncDialog.h @@ -1,4 +1,4 @@ -#ifndef CFILESYNCDIALOG_H +#ifndef CFILESYNCDIALOG_H #define CFILESYNCDIALOG_H #include "../../include/sys/sys_svn_file_sync_api/CSysFileSyncApi.h" @@ -26,7 +26,7 @@ struct stSelectedPath QStringList path; }; -using namespace kbd_sys; +using namespace iot_sys; class CFileSyncDialog : public QDialog { Q_OBJECT diff --git a/product/src/gui/GraphTool/fileSync/main.cpp b/product/src/gui/GraphTool/fileSync/main.cpp index aec7b826..e9cd44bc 100644 --- a/product/src/gui/GraphTool/fileSync/main.cpp +++ b/product/src/gui/GraphTool/fileSync/main.cpp @@ -1,11 +1,11 @@ - + #include #include "common/QtAppGlobalSet.h" #include "CFileSyncDialog.h" int main(int argc, char *argv[]) { - kbd_common::doQtAppGlobalSet(); + iot_common::doQtAppGlobalSet(); QApplication a(argc, argv); CFileSyncDialog w;