Changeset 142 for Evidence/Edd/Edd.h
- Timestamp:
- 01/13/10 12:47:33 (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Evidence/Edd/Edd.h
r139 r142 15 15 #include <qwt_legend.h> 16 16 #include <qwt_legend_item.h> 17 #include <qwt_symbol.h> 17 18 18 19 #include <limits.h> … … 22 23 #include "Evidence.h" 23 24 24 #define NO_LINK "__&DIM&NOLINK&__" // for checking if DIMserver is alive25 25 #define SVN_REVISION "$Revision$" 26 26 27 27 // General indicator for DIM service 28 class Edd_Indicator: public QLineEdit, public DimClient , public DimBrowser{28 class Edd_Indicator: public QLineEdit, public DimClient { 29 29 Q_OBJECT 30 31 char *ServiceName;32 DimStampedInfo *Data;33 30 34 31 QMenu *Menu; 35 32 QPoint dragStart; 36 33 QwtPlot *LastPlot; 37 38 void infoHandler(); 34 35 DimStampedInfo *Data; 36 39 37 void mousePressEvent(QMouseEvent *); 40 38 void mouseReleaseEvent(QMouseEvent *); … … 45 43 ~Edd_Indicator(); 46 44 45 bool ShowAsTime; 46 47 47 private slots: 48 void Update(DimInfo *, int, QString, QByteArray, QString); 48 49 void contextMenuEvent(QContextMenuEvent *); 50 void MenuOpenHistory(); 49 51 void MenuCopyService(); 50 51 signals:52 void YEP(QString);53 52 }; 54 53 … … 72 71 QMutex Mutex; 73 72 73 QString StatusTip; 74 74 75 QMenu *Menu; 75 76 QAction *YLogAction; … … 82 83 QwtLegend *Legend; 83 84 84 void infoHandler();85 85 void dragEnterEvent(QDragEnterEvent *); 86 86 void dropEvent(QDropEvent *); … … 93 93 private slots: 94 94 void UpdatePlot(); 95 void Update(DimInfo* Info, int, QString, QByteArray, QString); 96 95 97 void HandleZoom(const QwtDoubleRect &); 96 98 void contextMenuEvent(QContextMenuEvent *); … … 101 103 void MenuPrint(); 102 104 void MenuPasteService(); 103 104 signals: 105 void YEP(); 105 }; 106 106 107 // Textout indicator for DIM service 108 class Edd_Textout: public QTextEdit, public DimClient { 109 Q_OBJECT 110 111 DimStampedInfo *Data; 112 113 public: 114 Edd_Textout(QString, QWidget * = NULL); 115 ~Edd_Textout(); 116 117 bool Accumulate; 118 119 private slots: 120 void Update(DimInfo* Info, int, QString, QByteArray, QString); 107 121 }; 108 122 109 123 // Main window class 110 class GUI: public QMainWindow, public DimBrowser {124 class GUI: public QMainWindow, public DimBrowser, public DimInfo { 111 125 Q_OBJECT 112 126 … … 118 132 QTabWidget *TabWidget; 119 133 120 void closeEvent(QCloseEvent *); 121 134 void closeEvent(QCloseEvent *); 135 void infoHandler(); 136 122 137 public: 123 138 GUI(); … … 127 142 void MenuAbout(); 128 143 void MenuNewHistory(); 144 145 signals: 146 void YEP(DimInfo *, int, QString = QString(), QByteArray = QByteArray(), QString = QString()); 129 147 }; 130 148
Note:
See TracChangeset
for help on using the changeset viewer.