libyui  3.4.2
YDialogSpy Class Reference

An interactive dialog debugger: Show the structure and content of a dialog and its widgets. More...

#include <YDialogSpy.h>

Public Member Functions

void showProperties ()
 Show the "Properties" sub-window.
 
void hideProperties ()
 Hide the "Properties" sub-window.
 
bool propertiesShown () const
 Return 'true' if the "Properties" sub-window is currently shown, 'false' if not.
 

Static Public Member Functions

static void showDialogSpy (YDialog *dialog=0)
 Show a YDialogSpy for the specified dialog. More...
 

Protected Member Functions

 YDialogSpy (YDialog *dialog=0)
 Constructor: Create a YDialogSpy for the specified dialog. More...
 
virtual ~YDialogSpy ()
 Destructor.
 
void exec ()
 Execute the event loop. More...
 
void showProperties (YWidget *widget)
 Show the properties of the specified widget if the "Properties" sub-window is currently shown.
 

Detailed Description

An interactive dialog debugger: Show the structure and content of a dialog and its widgets.

This can be invoked by special key combinations: Ctrl-Alt-Shift-Y in the Qt UI

Definition at line 43 of file YDialogSpy.h.

Constructor & Destructor Documentation

◆ YDialogSpy()

YDialogSpy::YDialogSpy ( YDialog dialog = 0)
protected

Constructor: Create a YDialogSpy for the specified dialog.

Constructor - create the main spy dialog.

0 means "use the topmost dialog".

In most cases it is more useful to use the static showDialogSpy() method rather than create this dialog directly.

Definition at line 206 of file YDialogSpy.cc.

Member Function Documentation

◆ exec()

void YDialogSpy::exec ( )
protected

Execute the event loop.

The main loop of the spy dialog.

This will only return when the user closes the YDialogSpy dialog.

Definition at line 491 of file YDialogSpy.cc.

◆ showDialogSpy()

void YDialogSpy::showDialogSpy ( YDialog dialog = 0)
static

Show a YDialogSpy for the specified dialog.

Run the spy dialog for selected UI dialog.

0 means "use the topmost dialog". This will return only when the user closes the YDialogSpy dialog.

Parameters
dialogUI dialog to examine

Definition at line 538 of file YDialogSpy.cc.


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