ROOT
master
Reference Guide
Loading...
Searching...
No Matches
TGtk4ContextMenu.h
Go to the documentation of this file.
1
// Author: Sergey Linev 13/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
#ifndef ROOT_TGtk4ContextMenu
12
#define ROOT_TGtk4ContextMenu
13
14
#include "
TContextMenuImp.h
"
15
#include "
TObject.h
"
16
#include "
TList.h
"
17
#include <map>
18
19
20
class
TGtk4ContextMenu
:
public
TObject
,
public
TContextMenuImp
{
21
22
protected
:
23
24
TList
fTrash
;
25
std::map<int, void*>
fCustomArg
;
26
27
/*
28
QAction* addMenuAction(QMenu *menu, QSignalMapper *map, const QString &text, int id, void *arg = nullptr);
29
30
void AddColorElements(int colindx, QFormLayout *layout);
31
void UpdateColorElements();
32
33
void SetLineAttributesDialog();
34
void SetFillAttributesDialog();
35
void SetTextAttributesDialog();
36
void SetMarkerAttributesDialog();
37
*/
38
39
void
executeMenu
(
int
id
);
40
41
public
:
42
TGtk4ContextMenu
(
TContextMenu
*
c
=
nullptr
,
const
char
*
name
=
"ROOT Context Menu"
);
43
~TGtk4ContextMenu
()
override
;
44
45
void
DisplayPopup
(
Int_t
x
,
Int_t
y
)
override
;
46
void
Dialog
(
TObject
*
object
,
TMethod
*method)
override
;
47
void
Dialog
(
TObject
*
object
,
TFunction
*function)
override
;
48
49
void
RecursiveRemove
(
TObject
*obj)
override
;
50
};
51
52
#endif
c
#define c(i)
Definition
RSha256.hxx:101
TContextMenuImp.h
name
char name[80]
Definition
TGX11.cxx:142
TList.h
TObject.h
TContextMenuImp
This class provides an interface to GUI independent context sensitive popup menus.
Definition
TContextMenuImp.h:23
TContextMenu
This class provides an interface to context sensitive popup menus.
Definition
TContextMenu.h:34
TFunction
Global functions class (global functions are obtained from CINT).
Definition
TFunction.h:30
TGtk4ContextMenu
This class provides an interface to context-sensitive popup menus.
Definition
TGtk4ContextMenu.h:20
TGtk4ContextMenu::TGtk4ContextMenu
TGtk4ContextMenu(TContextMenu *c=nullptr, const char *name="ROOT Context Menu")
Create context menu.
Definition
TGtk4ContextMenu.cxx:49
TGtk4ContextMenu::~TGtk4ContextMenu
~TGtk4ContextMenu() override
Delete a context menu.
Definition
TGtk4ContextMenu.cxx:58
TGtk4ContextMenu::DisplayPopup
void DisplayPopup(Int_t x, Int_t y) override
Display context popup menu for currently selected object.
Definition
TGtk4ContextMenu.cxx:67
TGtk4ContextMenu::fTrash
TList fTrash
Definition
TGtk4ContextMenu.h:24
TGtk4ContextMenu::executeMenu
void executeMenu(int id)
Execute specified menu item.
Definition
TGtk4ContextMenu.cxx:321
TGtk4ContextMenu::fCustomArg
std::map< int, void * > fCustomArg
Definition
TGtk4ContextMenu.h:25
TGtk4ContextMenu::RecursiveRemove
void RecursiveRemove(TObject *obj) override
Handle remove of some ROOT objects.
Definition
TGtk4ContextMenu.cxx:304
TGtk4ContextMenu::Dialog
void Dialog(TObject *object, TMethod *method) override
Create dialog object with OK and Cancel buttons.
Definition
TGtk4ContextMenu.cxx:284
TList
A doubly linked list.
Definition
TList.h:38
TMethod
Each ROOT class (see TClass) has a linked list of methods.
Definition
TMethod.h:38
TObject
Mother of all ROOT objects.
Definition
TObject.h:42
int
y
Double_t y[n]
Definition
legend1.C:17
x
Double_t x[n]
Definition
legend1.C:17
gui
gtk4canvas
src
TGtk4ContextMenu.h
ROOTmaster - Reference Guide Generated on Thu Nov 12 2026 13:53:08 (GVA Time) using Doxygen 1.10.0