Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Gtk4MethodDialog Class Reference

Specialized dialog to enter arguments for method exection.

Definition at line 22 of file Gtk4MethodDialog.h.

Public Member Functions

 Gtk4MethodDialog (unsigned width=400, unsigned height=200)
 Create method dialog.
 
void addArg (const char *argname, const char *value, const char *type)
 Add method argument.
 
Gtk::ColorDialogButton * addColorInput (const char *title, int colindx)
 add line with color button
 
void addLine (const char *txt, Gtk::Widget *widget)
 Add single dialog line.
 
Gtk::Button * addOkCancelButtons ()
 Add Ok and Cancel buttons.
 
void clearAllElements ()
 clear all elements inside dialog main box
 
void methodDialog (TContextMenu *menu, TObject *object, TFunction *func)
 Show method dialog.
 

Protected Member Functions

void on_ok_button_clicked ()
 

Protected Attributes

std::vector< Gtk::Entry * > fArgs
 
TFunction * fFunc = nullptr
 
TContextMenu * fMenu = nullptr
 
TObject * fObject = nullptr
 
Gtk::Box * m_main_box = nullptr
 

#include </github/home/ROOT-CI/src/gui/gtk4canvas/src/Gtk4MethodDialog.h>

Inheritance diagram for Gtk4MethodDialog:
[legend]

Constructor & Destructor Documentation

◆ Gtk4MethodDialog()

Gtk4MethodDialog::Gtk4MethodDialog ( unsigned width = 400,
unsigned height = 200 )

Create method dialog.

Definition at line 35 of file Gtk4MethodDialog.cxx.

Member Function Documentation

◆ addArg()

void Gtk4MethodDialog::addArg ( const char * argname,
const char * value,
const char * type )

Add method argument.

Definition at line 110 of file Gtk4MethodDialog.cxx.

◆ addColorInput()

Gtk::ColorDialogButton * Gtk4MethodDialog::addColorInput ( const char * title,
int colindx )

add line with color button

Definition at line 57 of file Gtk4MethodDialog.cxx.

◆ addLine()

void Gtk4MethodDialog::addLine ( const char * txt,
Gtk::Widget * widget )

Add single dialog line.

Definition at line 85 of file Gtk4MethodDialog.cxx.

◆ addOkCancelButtons()

Gtk::Button * Gtk4MethodDialog::addOkCancelButtons ( )

Add Ok and Cancel buttons.

Definition at line 122 of file Gtk4MethodDialog.cxx.

◆ clearAllElements()

void Gtk4MethodDialog::clearAllElements ( )

clear all elements inside dialog main box

Definition at line 48 of file Gtk4MethodDialog.cxx.

◆ methodDialog()

void Gtk4MethodDialog::methodDialog ( TContextMenu * menu,
TObject * object,
TFunction * func )

Show method dialog.

Definition at line 143 of file Gtk4MethodDialog.cxx.

◆ on_ok_button_clicked()

void Gtk4MethodDialog::on_ok_button_clicked ( )
protected

Definition at line 236 of file Gtk4MethodDialog.cxx.

Member Data Documentation

◆ fArgs

std::vector<Gtk::Entry *> Gtk4MethodDialog::fArgs
protected

Definition at line 45 of file Gtk4MethodDialog.h.

◆ fFunc

TFunction* Gtk4MethodDialog::fFunc = nullptr
protected

Definition at line 48 of file Gtk4MethodDialog.h.

◆ fMenu

TContextMenu* Gtk4MethodDialog::fMenu = nullptr
protected

Definition at line 46 of file Gtk4MethodDialog.h.

◆ fObject

TObject* Gtk4MethodDialog::fObject = nullptr
protected

Definition at line 47 of file Gtk4MethodDialog.h.

◆ m_main_box

Gtk::Box* Gtk4MethodDialog::m_main_box = nullptr
protected

Definition at line 43 of file Gtk4MethodDialog.h.

  • gui/gtk4canvas/src/Gtk4MethodDialog.h
  • gui/gtk4canvas/src/Gtk4MethodDialog.cxx