aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/main_window.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2014-09-23 13:35:10 -0700
committerGerald Combs <gerald@wireshark.org>2014-09-23 22:32:53 +0000
commit31e86998fbaaa4e82e0c502249671025c587ef50 (patch)
tree632b25070763766d51bbc2d291b3022f8ec47352 /ui/qt/main_window.h
parent3a85a5eb96aff95b1711961708b863a556d461f1 (diff)
Qt: Add zoom and column resize actions.
Plumb signals and slots for changing the text size in the main window. Remove the bold font code from WiresharkApplication. It was only used in ByteViewText. Adjust the icons a bit. Bug: When we change the font preferences the packet list stops drawing cached strings. I haven't been able to track down the cause. Change-Id: I609d740c9f26265628fa4b7de1b75b0e56651387 Reviewed-on: https://code.wireshark.org/review/4269 Reviewed-by: Gerald Combs <gerald@wireshark.org>
Diffstat (limited to 'ui/qt/main_window.h')
-rw-r--r--ui/qt/main_window.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/ui/qt/main_window.h b/ui/qt/main_window.h
index 66d0259021..b46ca24e43 100644
--- a/ui/qt/main_window.h
+++ b/ui/qt/main_window.h
@@ -106,6 +106,7 @@ private:
MainWelcome *main_welcome_;
DisplayFilterCombo *df_combo_box_;
capture_file *cap_file_;
+ QFont mono_font_;
// XXX - packet_list_, proto_tree_, and byte_view_tab_ should
// probably be full-on values instead of pointers.
PacketList *packet_list_;
@@ -163,6 +164,7 @@ signals:
void setCaptureFile(capture_file *cf);
void setDissectedCaptureFile(capture_file *cf);
void displayFilterSuccess(bool success);
+ void monospaceFontChanged(const QFont &mono_font);
public slots:
// in main_window_slots.cpp
@@ -277,7 +279,12 @@ private slots:
void on_actionEditConfigurationProfiles_triggered();
void on_actionEditPreferences_triggered();
+ void zoomText();
+ void on_actionViewZoomIn_triggered();
+ void on_actionViewZoomOut_triggered();
+ void on_actionViewNormalSize_triggered();
void on_actionViewColorizePacketList_triggered(bool checked);
+ void on_actionViewResizeColumns_triggered();
void on_actionViewReload_triggered();
void on_actionViewToolbarMainToolbar_triggered();
void on_actionViewToolbarDisplayFilter_triggered();