ソースを参照

change view_ivchart and fix some problem

yuchuli 4 年 前
コミット
899bae6ef9

+ 3 - 0
src/common/ivchart/ivchart.pro

@@ -7,6 +7,8 @@ DEFINES += IVCHART_LIBRARY
 
 
 CONFIG += c++11
 CONFIG += c++11
 
 
+CONFIG += plugin
+
 # The following define makes your compiler emit warnings if you use
 # The following define makes your compiler emit warnings if you use
 # any Qt feature that has been marked deprecated (the exact warnings
 # any Qt feature that has been marked deprecated (the exact warnings
 # depend on your compiler). Please consult the documentation of the
 # depend on your compiler). Please consult the documentation of the
@@ -34,6 +36,7 @@ unix {
 }
 }
 !isEmpty(target.path): INSTALLS += target
 !isEmpty(target.path): INSTALLS += target
 
 
+
 INCLUDEPATH += $$PWD/../../include/msgtype
 INCLUDEPATH += $$PWD/../../include/msgtype
 
 
 unix: LIBS += -lprotobuf
 unix: LIBS += -lprotobuf

+ 1 - 0
src/tool/view_ivchart/Readme

@@ -0,0 +1 @@
+If AGX,  sudo apt-get install libqt5charts5-dev

+ 1 - 1
src/tool/view_ivchart/dialogivctocsv.cpp

@@ -138,7 +138,7 @@ void Dialogivctocsv::on_pushButton_Convert_clicked()
     char strtem[1000];
     char strtem[1000];
     double fDiv = 1;
     double fDiv = 1;
     if(ntimemode == 1)fDiv = 1000.0;
     if(ntimemode == 1)fDiv = 1000.0;
-    snprintf(strout,10000,"Time ; AbsTime ; RealTime");
+    snprintf(strout,10000,"Time ; AbsTime ; RelTime");
     unsigned int i;
     unsigned int i;
     double * xvectorlastvalue = new double[xvectorivcdata.size()];
     double * xvectorlastvalue = new double[xvectorivcdata.size()];
 
 

+ 1 - 1
src/tool/view_ivchart/mainwindow.h

@@ -59,7 +59,7 @@ private:
     double AXIS_X_SEL[6] = {1,5,10,30,60,300};
     double AXIS_X_SEL[6] = {1,5,10,30,60,300};
     int mnDefAxisXIndex = 2;
     int mnDefAxisXIndex = 2;
 
 
-    std::string mstrTitle = "ADC IV Char View ";
+    std::string mstrTitle = "ADC IV Chart View ";
     int mnTitleMode = 0;
     int mnTitleMode = 0;
 
 
   private:
   private: