#include "TROOT.h"
#include "TApplication.h"
#include "TSystem.h"
#include "TGFrame.h"
#include "TGButton.h"
#include "TGLabel.h"
#include "TGMenu.h"
#include "TGFileDialog.h"
#include "TBrowser.h"
#include "TRootEmbeddedCanvas.h"
#include "TRootHelpDialog.h"
#include "TCanvas.h"
#include "TH1F.h"
#include "TH2F.h"
#include "TF2.h"
#include "TGraph.h"
#include "TImage.h"
#include "TRandom.h"
#include "TGMsgBox.h"
#include "TGPicture.h"
#include "TGListTree.h"
#include "TObjString.h"
#include "TMessage.h"
#include "TTimer.h"
#include "TGDNDManager.h"
#include <cmath>
Go to the source code of this file.
Classes | |
class | DNDMainFrame |
Enumerations | |
enum | EMyMessageTypes |
Functions | |
void | drag_and_drop () |
Variables | |
const char | gHelpDND [] |
const char | gReadyMsg [] |
const char * | dnd_types [] |
static Atom_t | gRootObj = kNone |
enum EMyMessageTypes |
Definition at line 91 of file drag_and_drop.C.
void drag_and_drop | ( | ) |
Definition at line 407 of file drag_and_drop.C.
References gClient, TGClient::GetRoot(), and TGFrame::MapWindow().
const char* dnd_types[] |
Initial value:
{ "ROOT files", "*.root", "ROOT macros", "*.C", "All files", "*", 0, 0 }
Definition at line 100 of file drag_and_drop.C.
Referenced by DNDMainFrame::HandleMenu().
const char gHelpDND[] |
Initial value:
"\ Drag & Drop (DnD)\n\ Drag and Drop support is implemented on Linux via Xdnd, the\n\ drag and drop protocol for X window system, and on Windows\n\ via the Clipboard.\n\ Users can selects something in ROOT with a mouse press, drags\n\ it (moves the mouse while keeping the mouse button pressed) and\n\ releases the mouse button somewhere else. When the button is\n\ released the selected data is \"dropped\" at that location. This\n\ way, a histogram from an opened ROOT file in the browser can be\n\ dragged to any TCanvas. A script file from the browser can be\n\ dropped to a TGTextView or TGTextEdit widget in TGTextEditor.\n\ On Linux, it is possible to drag objects between ROOT and an\n\ external application. For example to drag a macro file from the\n\ ROOT browser to the Kate editor. On Windows, drag and drop works\n\ only within a single ROOT application, but it is possible to drag\n\ from the Windows Explorer to ROOT (e.g. a picture file to a canvas\n\ or a text file to a text editor).\n\ "
Definition at line 37 of file drag_and_drop.C.
Referenced by DNDMainFrame::HandleMenu().
const char gReadyMsg[] |
Initial value:
"Ready. You can drag list tree items to any \ pad in the canvas, or to the \"Base\" folder of the list tree itself..."
Definition at line 57 of file drag_and_drop.C.
Referenced by DNDMainFrame::DNDMainFrame(), and DNDMainFrame::ResetStatus().
Definition at line 107 of file drag_and_drop.C.
Referenced by DNDMainFrame::DataDropped(), and DNDMainFrame::DNDMainFrame().