104 info_data_t *captureInfoData() {
return &info_data_; }
107 virtual QMenu *createPopupMenu();
109 CaptureFile *captureFile() {
return &capture_file_; }
111 void removeAdditionalToolbar(QString toolbarName);
113 void addInterfaceToolbar(
const iface_toolbar *toolbar_entry);
114 void removeInterfaceToolbar(
const char *menu_title);
116 QString getMwFileName();
117 void setMwFileName(QString fileName);
120 virtual bool eventFilter(QObject *obj, QEvent *event);
121 virtual bool event(QEvent *event);
122 virtual void keyPressEvent(QKeyEvent *event);
123 virtual void closeEvent(QCloseEvent *event);
124 virtual void dragEnterEvent(QDragEnterEvent *event);
125 virtual void dropEvent(QDropEvent *event);
126 virtual void changeEvent(QEvent* event);
131 MatchSelectedReplace,
139 enum FileCloseContext {
147 Ui::StratosharkMainWindow *main_ui_;
150 QMap<QString, QTextCodec *> text_codec_map_;
151 QWidget *previous_focus_;
153 QActionGroup *show_hide_actions_;
154 QActionGroup *time_display_actions_;
155 QActionGroup *time_precision_actions_;
157 QList<QPair<QAction *, bool> > freeze_actions_;
158 QPointer<QWidget> freeze_focus_;
159 QMap<QAction *, ts_type> td_actions;
160 QMap<QAction *, ts_precision> tp_actions;
167 bool capture_stopping_;
168 bool capture_filter_valid_;
169 bool use_capturing_title_;
172 CaptureOptionsDialog *capture_options_dialog_;
180#ifdef HAVE_SOFTWARE_UPDATE
181 QAction *update_action_;
184 QPoint dragStartPosition;
189 void mergeCaptureFile();
190 void importCaptureFile();
191 bool saveCaptureFile(
capture_file *cf,
bool dont_reopen);
192 bool saveAsCaptureFile(
capture_file *cf,
bool must_support_comments =
false,
bool dont_reopen =
false);
193 void exportSelectedPackets();
194 void exportDissections(export_type_e export_type);
197 void fileAddExtension(QString &file_name,
int file_type, wtap_compression_type compression_type);
199 bool testCaptureFileClose(QString before_what, FileCloseContext context = Default);
202 void findTextCodecs();
204 void initMainToolbarIcons();
205 void initShowHideMainWidgets();
206 void initTimeDisplayFormatMenu();
207 void initTimePrecisionFormatMenu();
208 void initFreezeActions();
210 void setMenusForCaptureFile(
bool force_disable =
false);
211 void setMenusForCaptureInProgress(
bool capture_in_progress =
false);
212 void setMenusForCaptureStopping();
213 void setForCapturedPackets(
bool have_captured_packets);
214 void setMenusForFileSet(
bool enable_list_files);
215 void setWindowIcon(
const QIcon &icon);
216 void updateStyleSheet();
218 void externalMenuHelper(
ext_menu_t * menu, QMenu * subMenu,
int depth);
220 void setForCaptureInProgress(
bool capture_in_progress =
false,
bool handle_toolbars =
false, GArray *ifaces = NULL);
221 QMenu* findOrAddMenu(QMenu *parent_menu,
const QStringList& menu_parts);
223 void captureFileReadStarted(
const QString &action);
225 void addMenuActions(QList<QAction *> &actions,
int menu_group);
226 void removeMenuActions(QList<QAction *> &actions,
int menu_group);
227 void goToConversationFrame(
bool go_next,
bool start_current =
true);
228 void colorizeWithFilter(QByteArray filter,
int color_number = -1);
232 void closePacketDialogs();
235 void fieldFilterChanged(
const QByteArray field_filter);
238 void showExtcapOptions(QString &device_name,
bool startCaptureOnClose);
260 bool openCaptureFile(QString cf_path, QString display_filter,
unsigned int type,
bool is_tempfile =
false);
261 bool openCaptureFile(QString cf_path = QString(), QString display_filter = QString()) {
return openCaptureFile(cf_path, display_filter, WTAP_TYPE_AUTO); }
262 void filterPackets(QString new_filter = QString(),
bool force =
false);
263 void updateForUnsavedChanges();
264 void layoutToolbars();
265 void updatePreferenceActions();
266 void updateRecentActions();
268 void setTitlebarForCaptureFile();
270 void showCaptureOptionsDialog();
280 void captureFileOpened();
281 void captureFileReadFinished();
282 void captureFileClosing();
283 void captureFileClosed();
289 void initViewColorizeMenu();
290 void initConversationMenus();
291 static bool addFollowStreamMenuItem(
const void *key,
void *value,
void *userdata);
292 void initFollowStreamMenus();
300 void startCapture(QStringList);
302 void pushLiveCaptureInProgress();
303 void popLiveCaptureInProgress();
306 void loadWindowGeometry();
307 void saveWindowGeometry();
308 void mainStackChanged(
int);
309 void updateRecentCaptures();
310 void recentActionTriggered();
311 void addPacketComment();
312 void editPacketComment();
313 void deletePacketComment();
314 void deleteCommentsFromPackets();
315 QString commentToMenuText(QString text,
int max_len = 40);
316 void setEditCommentsMenu();
317 void setMenusForSelectedPacket();
319 void interfaceSelectionChanged();
320 void captureFilterSyntaxChanged(
bool valid);
321 void redissectPackets();
322 void checkDisplayFilter();
323 void fieldsChanged();
324 void reloadLuaPlugins();
325 void showAccordionFrame(
AccordionFrame *show_frame,
bool toggle =
false);
326 void showColumnEditor(
int column);
327 void showPreferenceEditor();
328 void addStatsPluginsToMenu();
329 void addDynamicMenus();
330 void reloadDynamicMenus();
331 void addPluginIFStructures();
332 QMenu * searchSubMenu(QString objectName);
333 void activatePluginIFToolbar(
bool);
335 void startInterfaceCapture(
bool valid,
const QString capture_filter);
337 void applyGlobalCommandLineOptions();
338 void setFeaturesEnabled(
bool enabled =
true);
340 void on_actionNewDisplayFilterExpression_triggered();
341 void onFilterSelected(QString,
bool);
342 void onFilterPreferences();
343 void onFilterEdit(
int uatIndex);
346 void queuedFilterAction(QString filter, FilterAction::Action action, FilterAction::ActionType type);
353 void openStatCommandDialog(
const QString &menu_path,
const char *arg,
void *userdata);
360 void openTapParameterDialog(
const QString cfg_str,
const QString arg,
void *userdata);
361 void openTapParameterDialog();
363#if defined(HAVE_SOFTWARE_UPDATE) && defined(Q_OS_WIN)
364 void softwareUpdateRequested();
367 void connectFileMenuActions();
370 void connectEditMenuActions();
371 void copySelectedItems(StratosharkMainWindow::CopySelected selection_type);
373 void editTimeShift();
374 void editConfigurationProfiles();
375 void editTimeShiftFinished(
int);
377 void editPacketCommentFinished(
PacketCommentDialog* pc_dialog,
int result,
unsigned nComment);
378 void deleteAllPacketComments();
379 void deleteAllPacketCommentsFinished(
int result);
380 void showPreferencesDialog(QString module_name);
382 void connectViewMenuActions();
383 void showHideMainWidgets(QAction *action);
384 void setTimestampFormat(QAction *action);
385 void setTimestampPrecision(QAction *action);
386 void setTimeDisplaySecondsWithHoursAndMinutes(
bool checked);
387 void editResolvedName();
388 void setNameResolution();
390 void showColoringRulesDialog();
391 void colorizeConversation(
bool create_rule =
false);
392 void colorizeActionTriggered();
393 void openPacketDialog(
bool from_reference =
false);
394 void reloadCaptureFileAsFormatOrCapture();
395 void reloadCaptureFile();
397 void connectGoMenuActions();
399 void setPreviousFocus();
400 void resetPreviousFocus();
402 void connectCaptureMenuActions();
403 void startCaptureTriggered();
405 void connectAnalyzeMenuActions();
407 void matchFieldFilter(FilterAction::Action action, FilterAction::ActionType filter_type);
408 void applyFieldAsColumn();
410 void filterMenuAboutToShow();
412 void applyConversationFilter();
414 void openFollowStreamDialog(
int proto_id,
unsigned stream_num,
unsigned sub_stream_num,
bool use_stream_index =
true);
415 void openFollowStreamDialog(
int proto_id);
417 void statCommandExpertInfo(
const char *,
void *);
419 void connectToolsMenuActions();
421 void connectHelpMenuActions();
423#ifdef HAVE_SOFTWARE_UPDATE
424 void checkForUpdates();
427 void goToCancelClicked();
428 void goToGoClicked();
429 void goToLineEditReturnPressed();
431 void connectStatisticsMenuActions();
433 void showResolvedAddressesDialog();
434 void showConversationsDialog();
435 void showEndpointsDialog();
437 void openStatisticsTreeDialog(
const char *abbr);
438 void statCommandIOGraph(
const char *,
void *);
439 void showIOGraphDialog(io_graph_item_unit_t, QString);
441 void externalMenuItemTriggered();
443 void on_actionContextWikiProtocolPage_triggered();
444 void on_actionContextFilterFieldReference_triggered();
446 void extcap_options_finished(
int result);
447 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