summaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r--ui/qt/main_window.h24
1 files changed, 22 insertions, 2 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index ac5ddcf4..2f78a261 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -19,18 +19,23 @@
#include "filter_action.h"
+#include "io_graph_action.h"
#include <QMainWindow>
#include <QSplitter>
+class QMenu;
class QSplitter;
class QStackedWidget;
+
class ByteViewTab;
class DisplayFilterCombo;
class FieldInformation;
+class FunnelAction;
class MainStatusBar;
class PacketDiagram;
class PacketList;
+class ProfileSwitcher;
class ProtoTree;
class WelcomePage;
@@ -45,7 +50,7 @@ public:
bool hasSelection();
bool hasUniqueSelection();
QList<int> selectedRows(bool useFrameNum = false);
- void insertColumn(QString name, QString abbrev, gint pos = -1);
+ void insertColumn(QString name, QString abbrev, int pos = -1);
void gotoFrame(int packet_num);
frame_data* frameDataForRow(int) const;
@@ -53,7 +58,7 @@ public:
MainStatusBar *statusBar();
// Used for managing custom packet menus
- void appendPacketMenu(QAction* funnel_action);
+ void appendPacketMenu(FunnelAction *funnel_action);
QList<QAction*> getPacketMenuActions();
void clearAddedPacketMenus();
bool addPacketMenus(QMenu * ctx_menu, GPtrArray *finfo_array);
@@ -62,6 +67,7 @@ public slots:
void setDisplayFilter(QString filter, FilterAction::Action action, FilterAction::ActionType filterType);
virtual void filterPackets(QString, bool) = 0;
virtual void showPreferencesDialog(QString module_name) = 0;
+ virtual void showIOGraphDialog(io_graph_item_unit_t, QString) = 0;
void layoutPanes();
void applyRecentPaneGeometry();
@@ -96,6 +102,20 @@ protected:
PacketDiagram *packet_diagram_;
DisplayFilterCombo *df_combo_box_;
MainStatusBar *main_status_bar_;
+ ProfileSwitcher *profile_switcher_;
+
+protected slots:
+ void addDisplayFilterTranslationActions(QMenu *copy_menu);
+ void updateDisplayFilterTranslationActions(const QString &df_text);
+
+private:
+ QVector<QAction *> df_translate_actions_;
+
+ static const char *translator_;
+ static const char *translated_filter_;
+
+private slots:
+ void copyDisplayFilterTranslation(void);
signals:
void setCaptureFile(capture_file *cf);