|
| bool | openCaptureFile (QString cf_path, QString display_filter, unsigned int type, bool is_tempfile=false) |
| | Open a capture file.
|
| |
| bool | openCaptureFile (QString cf_path=QString(), QString display_filter=QString()) |
| | Convenience overload that auto-detects file type.
|
| |
| void | filterPackets (QString new_filter=QString(), bool force=false) override |
| | Applies a new display filter to the open capture file.
|
| |
|
void | updateForUnsavedChanges () |
| | Updates title bar, menus, and status bar to reflect unsaved changes.
|
| |
|
void | layoutToolbars () |
| | Repositions and resizes toolbars according to current layout settings.
|
| |
|
void | updatePreferenceActions () |
| | Refreshes menu items that reflect preference values.
|
| |
|
void | updateRecentActions () |
| | Rebuilds the File → Open Recent submenu from the recent-files list.
|
| |
|
void | setTitlebarForCaptureFile () |
| | Updates the window title bar to reflect the current capture file name and state.
|
| |
|
void | showCaptureOptionsDialog () |
| | Opens the capture options dialog (interface selection, filters, etc.).
|
| |
|
void | captureFileOpened () |
| | Updates UI state when a capture file is first opened.
|
| |
|
void | captureFileReadFinished () |
| | Updates UI state after a capture file has been fully read.
|
| |
|
void | captureFileClosing () |
| | Updates UI state while a capture file is being closed.
|
| |
|
void | captureFileClosed () |
| | Resets UI state after a capture file has been fully closed.
|
| |
Public Slots inherited from MainWindow |
| void | setDisplayFilter (QString filter, FilterAction::Action action, FilterAction::ActionType filterType) |
| | Sets the display filter and performs an action.
|
| |
| virtual void | filterPackets (QString new_filter, bool force)=0 |
| | Filters the packets.
|
| |
| virtual void | showPreferencesDialog (QString module_name)=0 |
| | Shows the preferences dialog for a specific module.
|
| |
| virtual void | showIOGraphDialog (io_graph_item_unit_t value_units, QString yfield)=0 |
| | Shows the IO graph dialog.
|
| |
| virtual void | showPlotDialog (const QString &y_field, bool filtered)=0 |
| | Shows a plot dialog.
|
| |
|
void | layoutPanes () |
| | Recalculates and lays out the panes.
|
| |
|
void | applyRecentPaneGeometry () |
| | Applies the most recent pane geometry settings.
|
| |
|
void | updateForUnsavedChanges () |
| | Updates the UI to reflect unsaved changes.
|
| |
| void | cyclePane (bool reverse=false) |
| | Cycles the focus through the available panes.
|
| |
|
| | StratosharkMainWindow (QWidget *parent=nullptr) |
| | Constructs the Stratoshark main window and initialises all menus, toolbars, and UI components.
|
| |
|
| ~StratosharkMainWindow () |
| | Destroys the main window and releases all associated resources.
|
| |
| QMenu * | createPopupMenu () override |
| | Creates and returns the window's right-click popup menu.
|
| |
| CaptureFile * | captureFile () |
| | Returns a pointer to the current capture file object.
|
| |
|
void | setFunnelMenus (void) |
| | Rebuilds the Lua funnel statistics menus from registered funnel entries.
|
| |
| void | removeAdditionalToolbar (QString toolbarName) |
| | Removes an additional (plugin/interface) toolbar by name.
|
| |
| void | addInterfaceToolbar (const iface_toolbar *toolbar_entry) |
| | Adds an interface toolbar for the given toolbar descriptor.
|
| |
| void | removeInterfaceToolbar (const char *menu_title) |
| | Removes the interface toolbar with the given menu title.
|
| |
| QString | getMwFileName () |
| | Returns the file path currently shown in the main window title bar.
|
| |
| void | setMwFileName (QString fileName) |
| | Sets the file path shown in the main window title bar.
|
| |
Public Member Functions inherited from MainWindow |
| | MainWindow (QWidget *parent=nullptr) |
| | Constructs a new MainWindow.
|
| |
|
| ~MainWindow () |
| | Destroys the MainWindow.
|
| |
| void | setMainWindowTitle (QString title=QString()) |
| | Sets the title of the main window.
|
| |
| bool | hasSelection () |
| | Checks if there is a current selection.
|
| |
| bool | hasUniqueSelection () |
| | Checks if the current selection is unique.
|
| |
| QList< int > | selectedRows (bool useFrameNum=false) |
| | Retrieves the selected rows.
|
| |
| void | insertColumn (QString name, QString abbrev, int pos=-1) |
| | Inserts a column into the view.
|
| |
| void | gotoFrame (int packet_num) |
| | Navigates to a specific frame number.
|
| |
| frame_data * | frameDataForRow (int row) const |
| | Retrieves frame data for a specific row.
|
| |
| QString | getFilter () |
| | Retrieves the current display filter.
|
| |
| MainStatusBar * | statusBar () |
| | Retrieves the main status bar.
|
| |
| void | appendPacketMenu (FunnelAction *funnel_action) |
| | Appends a custom packet menu action.
|
| |
| QList< QAction * > | getPacketMenuActions () |
| | Retrieves the list of custom packet menu actions.
|
| |
|
void | clearAddedPacketMenus () |
| | Clears the recently added custom packet menus.
|
| |
| bool | addPacketMenus (QMenu *ctx_menu, GPtrArray *finfo_array) |
| | Adds packet menus to the given context menu.
|
| |
|
| bool | eventFilter (QObject *obj, QEvent *event) override |
| | Filters events on watched objects (e.g. focus changes on child widgets).
|
| |
| bool | event (QEvent *event) override |
| | Handles window-level events such as activation changes.
|
| |
| void | keyPressEvent (QKeyEvent *event) override |
| | Handles key press events for global keyboard shortcuts.
|
| |
| void | closeEvent (QCloseEvent *event) override |
| | Prompts the user to save unsaved changes before closing the window.
|
| |
| void | dragEnterEvent (QDragEnterEvent *event) override |
| | Accepts drag-enter events for capture files dragged onto the window.
|
| |
| void | dropEvent (QDropEvent *event) override |
| | Opens a capture file dropped onto the window.
|
| |
| void | changeEvent (QEvent *event) override |
| | Responds to locale or palette changes by retranslating the UI.
|
| |
| void | openRecentCaptureFile (const QString &filename) override |
| | Opens the given recent capture file, handling any necessary prompts.
|
| |
| bool | tryClosingCaptureFile (QString before_what, FileCloseContext context=Default) override |
| | Attempts to close the current capture file, prompting the user to save if there are unsaved changes.
|
| |
Protected Member Functions inherited from MainWindow |
|
void | showWelcome () |
| | Displays the welcome screen.
|
| |
|
void | showCapture () |
| | Displays the main capture view.
|
| |
|
void | setTitlebarForCaptureInProgress () |
| | Sets the title bar text for when a capture is in progress.
|
| |
| void | setIconForCaptureInProgress (bool capture_in_progress) |
| | Sets the window icon to indicate if a capture is in progress.
|
| |
| QWidget * | getLayoutWidget (layout_pane_content_e type) |
| | Retrieves the widget corresponding to a layout pane content type.
|
| |
| void | populateRecentCapturesMenu () |
| | Populate the recent captures menu. Calls openRecentCaptureFile() for each menu item action.
|
| |
| void | retranslateUiElements () |
| | Handle retranslation of UI elements in MainWindow.
|
| |
|
Protected Types inherited from MainWindow |
| enum | CopySelected {
CopyAllVisibleItems
, CopyAllVisibleSelectedTreeItems
, CopySelectedDescription
, CopySelectedFieldName
,
CopySelectedValue
, CopyListAsText
, CopyListAsCSV
, CopyListAsYAML
,
CopyListAsHTML
} |
| | Enumeration for determining what to copy when items are selected. More...
|
| |
| enum | FileCloseContext {
Default
, Quit
, Restart
, Reload
,
Update
, Export
} |
| | Context under which a capture file is being closed. More...
|
| |
Protected Slots inherited from MainWindow |
| void | addDisplayFilterTranslationActions (QMenu *copy_menu) |
| | Adds translation actions for the display filter to a menu.
|
| |
| void | updateDisplayFilterTranslationActions (const QString &df_text) |
| | Updates the available translation actions based on filter text.
|
| |
|
void | updateTitlebar () |
| | Updates the main title bar text.
|
| |
Protected Attributes inherited from MainWindow |
| CaptureFile | capture_file_ |
| |
| QList< register_stat_group_t > | menu_groups_ |
| |
| QStackedWidget * | main_stack_ |
| |
| WelcomePage * | welcome_page_ |
| |
| QSplitter | master_split_ |
| |
| QSplitter | extra_split_ |
| |
| QWidget | empty_pane_ |
| |
| QVector< unsigned > | cur_layout_ |
| |
| PacketList * | packet_list_ |
| |
| ProtoTree * | proto_tree_ |
| |
| QWidget * | proto_container_ |
| |
| DataSourceTab * | data_source_tab_ |
| |
| PacketDiagram * | packet_diagram_ |
| |
| DisplayFilterCombo * | df_combo_box_ |
| |
| MainStatusBar * | main_status_bar_ |
| |
| ProfileSwitcher * | profile_switcher_ |
| |
| bool | use_capturing_title_ |
| |
| QMap< QString, QTextCodec * > | text_codec_map_ |
| |
| QMenu * | recent_captures_menu_ |
| |
| QAction * | no_recent_files_action_ |
| |
Stratoshark main application window, extending MainWindow with Stratoshark-specific menus, toolbars, capture session management, and event-driven UI updates.