aboutsummaryrefslogtreecommitdiffstats
path: root/ui/qt/follow_stream_dialog.h
diff options
context:
space:
mode:
authorGerald Combs <gerald@wireshark.org>2013-10-14 21:17:38 +0000
committerGerald Combs <gerald@wireshark.org>2013-10-14 21:17:38 +0000
commit0efe942aab7e985c825422e3f7a0d2e5aee9a5b9 (patch)
treeac35d507b15f6d5596801f880c7beb29adc527c8 /ui/qt/follow_stream_dialog.h
parent2e405d7261ee7a1ebfddbed468537de741b81571 (diff)
Let Qt lay out and size elements in FollowStreamDialog. Make it
resizable. Get rid of the group box -- the OS X and Windows HIGs discourage its use and I'm not sure if it fits the GNOME HIG in this case either. Make the stream contents monospace. Set the cursor to the beginning of the text when we follow a stream. Continue the War On Unnecessary Dialogs. Move "Find"ing from a pop-up window to the main Follow dialog. Wrap back to the beginning as needed. Add a "Cancel" button. Make sure it and the escape key work as expected. svn path=/trunk/; revision=52607
Diffstat (limited to 'ui/qt/follow_stream_dialog.h')
-rw-r--r--ui/qt/follow_stream_dialog.h13
1 files changed, 10 insertions, 3 deletions
diff --git a/ui/qt/follow_stream_dialog.h b/ui/qt/follow_stream_dialog.h
index fdd943134a..5f8ec74714 100644
--- a/ui/qt/follow_stream_dialog.h
+++ b/ui/qt/follow_stream_dialog.h
@@ -93,16 +93,23 @@ public:
void add_text(char *buffer, size_t nchars, gboolean is_from_server);
+protected:
+ bool eventFilter(QObject *obj, QEvent *event);
+ void keyPressEvent(QKeyEvent *event);
+ void closeEvent (QCloseEvent *event);
+
private slots:
void on_cbCharset_currentIndexChanged(int index);
void on_cbDirections_currentIndexChanged(int index);
+ void on_bFind_clicked();
+ void on_leFind_returnPressed();
+ void on_buttonBox_rejected();
+
void HelpButton();
void FilterOut();
- void FindText();
+ void FindText(bool go_back = true);
void SaveAs();
void Print();
-// void on_bNext_clicked();
-// void on_bPrevious_clicked();
signals:
void updateFilter(QString &filter, bool force);