summaryrefslogtreecommitdiff
path: root/ui/qt/io_graph_dialog.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-12-29 11:42:01 -0800
committerGerald Combs <gerald@wireshark.org>2014-12-30 03:34:03 +0000
commit4556498f337d1a9cc4284167526280efa00810b5 (patch)
tree393ba6e17a82f8973de06738cc644cc4fdc02b2b /ui/qt/io_graph_dialog.h
parentb6ff338e81d4e1f42f2ec8cb90409dc17422f6c6 (diff)
downloadwireshark-4556498f337d1a9cc4284167526280efa00810b5.tar.gz
Qt: Convert more dialogs to WiresharkDialog.
Make the Sequence, IO Graph, Statistics Tree, and VoIP Calls dialogs subclasses of WiresharkDialog. Remove "Stats Tree" from Statistics Tree dialog titles. Don't complain if the user opens more than one instance of the dialog. Use the applicationName property in WiresharkApplication instead of a separate variable. Add a preexisting item to the IO Graph bug list (hovering when the file is closed clears the graph). Change-Id: I8411a25305d00b16e0d4a82fa50a9bad5c85b239 Reviewed-on: https://code.wireshark.org/review/6125 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/io_graph_dialog.h')
-rw-r--r--ui/qt/io_graph_dialog.h9
1 files changed, 4 insertions, 5 deletions
diff --git a/ui/qt/io_graph_dialog.h b/ui/qt/io_graph_dialog.h
index 9363a0df50..21d21aeb5a 100644
--- a/ui/qt/io_graph_dialog.h
+++ b/ui/qt/io_graph_dialog.h
@@ -34,9 +34,9 @@
#include "ui/io_graph_item.h"
#include "syntax_line_edit.h"
+#include "wireshark_dialog.h"
#include <QComboBox>
-#include <QDialog>
#include <QIcon>
#include <QLineEdit>
#include <QMenu>
@@ -127,12 +127,12 @@ namespace Ui {
class IOGraphDialog;
}
-class IOGraphDialog : public QDialog
+class IOGraphDialog : public WiresharkDialog
{
Q_OBJECT
public:
- explicit IOGraphDialog(QWidget *parent = 0, capture_file *cf = NULL);
+ explicit IOGraphDialog(QWidget &parent, CaptureFile &cf);
~IOGraphDialog();
void addGraph(bool checked, QString name, QString dfilter, int color_idx, IOGraph::PlotStyles style,
@@ -142,7 +142,6 @@ public:
void syncGraphSettings(QTreeWidgetItem *item);
public slots:
- void setCaptureFile(capture_file *cf);
void scheduleReplot(bool now = false);
void scheduleRecalc(bool now = false);
void scheduleRetap(bool now = false);
@@ -159,7 +158,6 @@ signals:
private:
Ui::IOGraphDialog *ui;
- capture_file *cap_file_;
QLineEdit *name_line_edit_;
SyntaxLineEdit *dfilter_line_edit_;
SyntaxLineEdit *yfield_line_edit_;
@@ -194,6 +192,7 @@ private:
void loadProfileGraphs();
private slots:
+ void updateWidgets();
void graphClicked(QMouseEvent *event);
void mouseMoved(QMouseEvent *event);
void mouseReleased(QMouseEvent *event);