Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
Gtk4MethodDialog.h
Go to the documentation of this file.
1// Author: Sergey Linev, GSI 14/08/2026
2
3/*************************************************************************
4 * Copyright (C) 1995-2026, Rene Brun and Fons Rademakers. *
5 * All rights reserved. *
6 * *
7 * For the licensing terms see $ROOTSYS/LICENSE. *
8 * For the list of contributors see $ROOTSYS/README/CREDITS. *
9 *************************************************************************/
10
11
12#ifndef ROOT_Gtk4MethodDialog
13#define ROOT_Gtk4MethodDialog
14
15#include <gtkmm.h>
16#include <vector>
17
18class TContextMenu;
19class TObject;
20class TFunction;
21
22class Gtk4MethodDialog: public Gtk::Window {
23
24 public:
25 Gtk4MethodDialog(unsigned width = 400, unsigned height = 200);
26
27 void methodDialog(TContextMenu *menu, TObject *object, TFunction* func);
28
29 void clearAllElements();
30
31 void addLine(const char *txt, Gtk::Widget *widget);
32
33 Gtk::ColorDialogButton *addColorInput(const char *title, int colindx);
34
35 void addArg(const char *argname, const char *value, const char *type);
36
37 Gtk::Button *addOkCancelButtons();
38
39 protected:
40
42
43 Gtk::Box *m_main_box = nullptr;
44
45 std::vector<Gtk::Entry *> fArgs;
46 TContextMenu *fMenu = nullptr;
47 TObject *fObject = nullptr;
48 TFunction *fFunc = nullptr;
49};
50
51#endif
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void value
Option_t Option_t width
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t height
Specialized dialog to enter arguments for method exection.
void clearAllElements()
clear all elements inside dialog main box
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
Gtk4MethodDialog(unsigned width=400, unsigned height=200)
Create method dialog.
void methodDialog(TContextMenu *menu, TObject *object, TFunction *func)
Show method dialog.
void addLine(const char *txt, Gtk::Widget *widget)
Add single dialog line.
std::vector< Gtk::Entry * > fArgs
TContextMenu * fMenu
Gtk::Button * addOkCancelButtons()
Add Ok and Cancel buttons.
This class provides an interface to context sensitive popup menus.
Global functions class (global functions are obtained from CINT).
Definition TFunction.h:30
Mother of all ROOT objects.
Definition TObject.h:42