ROOT
v6-34
Reference Guide
Loading...
Searching...
No Matches
TVirtualDragManager.cxx
Go to the documentation of this file.
1
// $Id: TVirtualDragManager.cxx,v 1.3 2004/11/23 00:07:22 rdm Exp $
2
// Author: Valeriy Onuchin 02/08/04
3
4
/*************************************************************************
5
* Copyright (C) 1995-2004, Rene Brun and Fons Rademakers. *
6
* All rights reserved. *
7
* *
8
* For the licensing terms see $ROOTSYS/LICENSE. *
9
* For the list of contributors see $ROOTSYS/README/CREDITS. *
10
*************************************************************************/
11
12
13
/** \class TVirtualDragManager
14
\ingroup guiwidgets
15
16
*/
17
18
#include "
TVirtualDragManager.h
"
19
#include "
TROOT.h
"
20
#include "
TPluginManager.h
"
21
22
23
//______________________________________________________________________________
24
// TVirtualDragManager
25
//
26
// Virtual drag and drop manager used for the GUI builder.
27
28
ClassImp
(
TVirtualDragManager
);
29
30
31
TVirtualDragManager
*
gDragManager
= 0;
32
33
////////////////////////////////////////////////////////////////////////////////
34
/// Constructor.
35
36
TVirtualDragManager::TVirtualDragManager
()
37
{
38
Init
();
39
}
40
41
////////////////////////////////////////////////////////////////////////////////
42
/// Load plugin and create drag manager object.
43
44
TVirtualDragManager
*
TVirtualDragManager::Instance
()
45
{
46
if
(
gDragManager
)
return
gDragManager
;
47
48
static
Bool_t
loaded
=
kFALSE
;
49
static
TPluginHandler
*
h
= 0;
50
51
// load plugin
52
if
(!
loaded
) {
53
h
=
gROOT
->GetPluginManager()->FindHandler(
"TVirtualDragManager"
);
54
if
(
h
) {
55
if
(
h
->LoadPlugin() == -1)
return
0;
56
loaded
=
kTRUE
;
57
}
58
}
59
if
(
loaded
)
gDragManager
= (
TVirtualDragManager
*)
h
->ExecPlugin(0);
60
61
return
gDragManager
;
62
}
63
64
////////////////////////////////////////////////////////////////////////////////
65
/// Initialization.
66
67
void
TVirtualDragManager::Init
()
68
{
69
fDragging
=
kFALSE
;
70
fMoveWaiting
=
kFALSE
;
71
fDropping
=
kFALSE
;
72
fPasting
=
kFALSE
;
73
fTarget
= 0;
74
fSource
= 0;
75
fFrameUnder
= 0;
76
fPasteFrame
= 0;
77
fDragType
=
kDragNone
;
78
}
h
#define h(i)
Definition
RSha256.hxx:106
kFALSE
constexpr Bool_t kFALSE
Definition
RtypesCore.h:94
kTRUE
constexpr Bool_t kTRUE
Definition
RtypesCore.h:93
ClassImp
#define ClassImp(name)
Definition
Rtypes.h:382
TPluginManager.h
TROOT.h
gROOT
#define gROOT
Definition
TROOT.h:406
gDragManager
TVirtualDragManager * gDragManager
Definition
TVirtualDragManager.cxx:31
TVirtualDragManager.h
kDragNone
@ kDragNone
Definition
TVirtualDragManager.h:18
gDragManager
R__EXTERN TVirtualDragManager * gDragManager
Definition
TVirtualDragManager.h:76
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
TPluginHandler
Definition
TPluginManager.h:103
TVirtualDragManager
Definition
TVirtualDragManager.h:22
TVirtualDragManager::fDragType
EDragType fDragType
dragging type
Definition
TVirtualDragManager.h:29
TVirtualDragManager::fSource
TGFrame * fSource
frame being dragged
Definition
TVirtualDragManager.h:30
TVirtualDragManager::Instance
static TVirtualDragManager * Instance()
Load plugin and create drag manager object.
Definition
TVirtualDragManager.cxx:44
TVirtualDragManager::fMoveWaiting
Bool_t fMoveWaiting
kTRUE if source is clicked but not moved
Definition
TVirtualDragManager.h:25
TVirtualDragManager::fDragging
Bool_t fDragging
in dragging mode?
Definition
TVirtualDragManager.h:26
TVirtualDragManager::fDropping
Bool_t fDropping
drop is in progress
Definition
TVirtualDragManager.h:27
TVirtualDragManager::fTarget
TGFrame * fTarget
drop target
Definition
TVirtualDragManager.h:32
TVirtualDragManager::TVirtualDragManager
TVirtualDragManager()
Constructor.
Definition
TVirtualDragManager.cxx:36
TVirtualDragManager::fPasting
Bool_t fPasting
paste action is in progress
Definition
TVirtualDragManager.h:28
TVirtualDragManager::Init
virtual void Init()
Initialization.
Definition
TVirtualDragManager.cxx:67
TVirtualDragManager::fFrameUnder
TGFrame * fFrameUnder
frame under drag
Definition
TVirtualDragManager.h:31
TVirtualDragManager::fPasteFrame
TGFrame * fPasteFrame
Definition
TVirtualDragManager.h:33
bool
gui
gui
src
TVirtualDragManager.cxx
ROOT v6-34 - Reference Guide Generated on Wed Jan 29 2025 04:46:09 (GVA Time) using Doxygen 1.10.0