Wireshark 5.1.0
The Wireshark network protocol analyzer
Loading...
Searching...
No Matches
ThemeDesignerDialog Class Reference

#include <theme_designer_dialog.h>

Inheritance diagram for ThemeDesignerDialog:
GeometryStateDialog

Public Types

enum class  Context { Standalone , Preferences }

Public Slots

void reject () override

Signals

void themeSaved (const QString &internalName)
void themeRemoved (const QString &internalName)

Public Member Functions

 ThemeDesignerDialog (QWidget *parent, Context context=Context::Standalone, const QString &initialTheme=QString())
Public Member Functions inherited from GeometryStateDialog
 GeometryStateDialog (QWidget *parent, Qt::WindowFlags f=Qt::Window)
 Constructs a new GeometryStateDialog with the specified parent and window flags.
 ~GeometryStateDialog ()
 Save the geometry and splitter state and then destroy the GeometryStateDialog.
void setWindowModality (Qt::WindowModality windowModality)
 Sets the window modality for the dialog. On non-macOS platforms, this also sets the parent to ensure modal dialogs are always on top of their parent.

Protected Member Functions

bool event (QEvent *event) override
void keyPressEvent (QKeyEvent *event) override
bool eventFilter (QObject *watched, QEvent *event) override
Protected Member Functions inherited from GeometryStateDialog
bool loadGeometry (int width=0, int height=0, const QString &dialog_name=QString())
 Loads the geometry and splitter state for the dialog.
void loadSplitterState (QSplitter *splitter=nullptr)
 Loads the state of a splitter for the dialog.

Detailed Description

Creates, copies, edits, imports and exports personal themes.

The dialog edits a draft of the selected theme and previews it on a compact Welcome Page, a fake packet list window and, with Lua, a Lua Debugger script editor. Nothing it shows touches the live theme; bundled themes are never written.

Member Enumeration Documentation

◆ Context

enum class ThemeDesignerDialog::Context
strong

Where the dialog was opened from; decides how a theme is activated.

Enumerator
Standalone 

View > Internals: "Use Theme" activates directly.

Preferences 

Preferences page: activation happens on OK/Apply.

Constructor & Destructor Documentation

◆ ThemeDesignerDialog()

ThemeDesignerDialog::ThemeDesignerDialog ( QWidget * parent,
Context context = Context::Standalone,
const QString & initialTheme = QString() )
explicit
Parameters
parentparent widget.
contextwhere the dialog was opened from.
initialThemeinternal name of the theme to select first; the active theme when empty.

Member Function Documentation

◆ themeRemoved

void ThemeDesignerDialog::themeRemoved ( const QString & internalName)
signal

The personal theme file internalName was removed.

◆ themeSaved

void ThemeDesignerDialog::themeSaved ( const QString & internalName)
signal

A personal theme file was written under internalName.


The documentation for this class was generated from the following files: