103 info_data_t *captureInfoData() {
return &info_data_; }
106 virtual QMenu *createPopupMenu();
108 CaptureFile *captureFile() {
return &capture_file_; }
110 void removeAdditionalToolbar(QString toolbarName);
112 void addInterfaceToolbar(
const iface_toolbar *toolbar_entry);
113 void removeInterfaceToolbar(
const char *menu_title);
115 QString getMwFileName();
116 void setMwFileName(QString fileName);
119 virtual bool eventFilter(QObject *obj, QEvent *event);
120 virtual bool event(QEvent *event);
121 virtual void keyPressEvent(QKeyEvent *event);
122 virtual void closeEvent(QCloseEvent *event);
123 virtual void dragEnterEvent(QDragEnterEvent *event);
124 virtual void dropEvent(QDropEvent *event);
125 virtual void changeEvent(QEvent* event);
130 MatchSelectedReplace,
138 enum FileCloseContext {
146 Ui::StratosharkMainWindow *main_ui_;
148 QMap<QString, QTextCodec *> text_codec_map_;
149 QWidget *previous_focus_;
151 QActionGroup *show_hide_actions_;
152 QActionGroup *time_display_actions_;
153 QActionGroup *time_precision_actions_;
155 QList<QPair<QAction *, bool> > freeze_actions_;
156 QPointer<QWidget> freeze_focus_;
157 QMap<QAction *, ts_type> td_actions;
158 QMap<QAction *, ts_precision> tp_actions;
165 bool capture_stopping_;
166 bool capture_filter_valid_;
169 CaptureOptionsDialog *capture_options_dialog_;
177#ifdef HAVE_SOFTWARE_UPDATE
178 QAction *update_action_;
181 QPoint dragStartPosition;
186 void mergeCaptureFile();
187 void importCaptureFile();
188 bool saveCaptureFile(
capture_file *cf,
bool dont_reopen);
189 bool saveAsCaptureFile(
capture_file *cf,
bool must_support_comments =
false,
bool dont_reopen =
false);
190 void exportSelectedPackets();
191 void exportDissections(export_type_e export_type);
194 void fileAddExtension(QString &file_name,
int file_type, wtap_compression_type compression_type);
196 bool testCaptureFileClose(QString before_what, FileCloseContext context = Default);
199 void findTextCodecs();
201 void initMainToolbarIcons();
202 void initShowHideMainWidgets();
203 void initTimeDisplayFormatMenu();
204 void initTimePrecisionFormatMenu();
205 void initFreezeActions();
207 void setMenusForCaptureFile(
bool force_disable =
false);
208 void setMenusForCaptureInProgress(
bool capture_in_progress =
false);
209 void setMenusForCaptureStopping();
210 void setForCapturedPackets(
bool have_captured_packets);
211 void setMenusForFileSet(
bool enable_list_files);
212 void setWindowIcon(
const QIcon &icon);
213 void updateStyleSheet();
215 void externalMenuHelper(
ext_menu_t * menu, QMenu * subMenu,
int depth);
217 void setForCaptureInProgress(
bool capture_in_progress =
false,
bool handle_toolbars =
false, GArray *ifaces = NULL);
218 QMenu* findOrAddMenu(QMenu *parent_menu,
const QStringList& menu_parts);
220 void captureFileReadStarted(
const QString &action);
222 void addMenuActions(QList<QAction *> &actions,
int menu_group);
223 void removeMenuActions(QList<QAction *> &actions,
int menu_group);
224 void goToConversationFrame(
bool go_next,
bool start_current =
true);
225 void colorizeWithFilter(QByteArray filter,
int color_number = -1);
229 void closePacketDialogs();
232 void fieldFilterChanged(
const QByteArray field_filter);
235 void showExtcapOptions(QString &device_name,
bool startCaptureOnClose);
257 bool openCaptureFile(QString cf_path, QString display_filter,
unsigned int type,
bool is_tempfile =
false);
258 bool openCaptureFile(QString cf_path = QString(), QString display_filter = QString()) {
return openCaptureFile(cf_path, display_filter, WTAP_TYPE_AUTO); }
259 void filterPackets(QString new_filter = QString(),
bool force =
false);
260 void updateForUnsavedChanges();
261 void layoutToolbars();
262 void updatePreferenceActions();
263 void updateRecentActions();
265 void setTitlebarForCaptureFile();
267 void showCaptureOptionsDialog();
277 void captureFileOpened();
278 void captureFileReadFinished();
279 void captureFileClosing();
280 void captureFileClosed();
286 void initViewColorizeMenu();
287 void initConversationMenus();
288 static bool addFollowStreamMenuItem(
const void *key,
void *value,
void *userdata);
289 void initFollowStreamMenus();
297 void startCapture(QStringList);
299 void pushLiveCaptureInProgress();
300 void popLiveCaptureInProgress();
303 void loadWindowGeometry();
304 void saveWindowGeometry();
305 void mainStackChanged(
int);
306 void updateRecentCaptures();
307 void recentActionTriggered();
308 void addPacketComment();
309 void editPacketComment();
310 void deletePacketComment();
311 void deleteCommentsFromPackets();
312 QString commentToMenuText(QString text,
int max_len = 40);
313 void setEditCommentsMenu();
314 void setMenusForSelectedPacket();
316 void interfaceSelectionChanged();
317 void captureFilterSyntaxChanged(
bool valid);
318 void redissectPackets();
319 void checkDisplayFilter();
320 void fieldsChanged();
321 void reloadLuaPlugins();
322 void showAccordionFrame(
AccordionFrame *show_frame,
bool toggle =
false);
323 void showColumnEditor(
int column);
324 void showPreferenceEditor();
325 void addStatsPluginsToMenu();
326 void addDynamicMenus();
327 void reloadDynamicMenus();
328 void addPluginIFStructures();
329 QMenu * searchSubMenu(QString objectName);
330 void activatePluginIFToolbar(
bool);
332 void startInterfaceCapture(
bool valid,
const QString capture_filter);
334 void applyGlobalCommandLineOptions();
335 void setFeaturesEnabled(
bool enabled =
true);
337 void on_actionNewDisplayFilterExpression_triggered();
338 void onFilterSelected(QString,
bool);
339 void onFilterPreferences();
340 void onFilterEdit(
int uatIndex);
343 void queuedFilterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
350 void openStatCommandDialog(
const QString &menu_path,
const char *arg,
void *userdata);
357 void openTapParameterDialog(
const QString cfg_str,
const QString arg,
void *userdata);
358 void openTapParameterDialog();
360#if defined(HAVE_SOFTWARE_UPDATE) && defined(Q_OS_WIN)
361 void softwareUpdateRequested();
364 void connectFileMenuActions();
367 void connectEditMenuActions();
368 void copySelectedItems(StratosharkMainWindow::CopySelected selection_type);
370 void editTimeShift();
371 void editConfigurationProfiles();
372 void editTimeShiftFinished(
int);
374 void editPacketCommentFinished(
PacketCommentDialog* pc_dialog,
int result,
unsigned nComment);
375 void deleteAllPacketComments();
376 void deleteAllPacketCommentsFinished(
int result);
377 void showPreferencesDialog(QString module_name);
379 void connectViewMenuActions();
380 void showHideMainWidgets(QAction *action);
381 void setTimestampFormat(QAction *action);
382 void setTimestampPrecision(QAction *action);
383 void setTimeDisplaySecondsWithHoursAndMinutes(
bool checked);
384 void editResolvedName();
385 void setNameResolution();
387 void showColoringRulesDialog();
388 void colorizeConversation(
bool create_rule =
false);
389 void colorizeActionTriggered();
390 void openPacketDialog(
bool from_reference =
false);
391 void reloadCaptureFileAsFormatOrCapture();
392 void reloadCaptureFile();
394 void connectGoMenuActions();
396 void setPreviousFocus();
397 void resetPreviousFocus();
399 void connectCaptureMenuActions();
400 void startCaptureTriggered();
402 void connectAnalyzeMenuActions();
404 void matchFieldFilter(FilterAction::Action action, FilterAction::ActionType filter_type);
405 void applyFieldAsColumn();
407 void filterMenuAboutToShow();
409 void applyConversationFilter();
411 void openFollowStreamDialog(
int proto_id,
unsigned stream_num,
unsigned sub_stream_num,
bool use_stream_index =
true);
412 void openFollowStreamDialog(
int proto_id);
414 void statCommandExpertInfo(
const char *,
void *);
416 void connectToolsMenuActions();
418 void connectHelpMenuActions();
420#ifdef HAVE_SOFTWARE_UPDATE
421 void checkForUpdates();
424 void goToCancelClicked();
425 void goToGoClicked();
426 void goToLineEditReturnPressed();
428 void connectStatisticsMenuActions();
430 void showResolvedAddressesDialog();
431 void showConversationsDialog();
432 void showEndpointsDialog();
434 void openStatisticsTreeDialog(
const char *abbr);
435 void statCommandIOGraph(
const char *,
void *);
436 void showIOGraphDialog(io_graph_item_unit_t, QString);
438 void externalMenuItemTriggered();
440 void on_actionContextWikiProtocolPage_triggered();
441 void on_actionContextFilterFieldReference_triggered();
443 void extcap_options_finished(
int result);
444 void showExtcapOptionsDialog(QString & device_name,
bool startCaptureOnClose);
bool openCaptureFile(QString cf_path, QString display_filter, unsigned int type, bool is_tempfile=false)
Definition stratoshark_main_window_slots.cpp:158