23namespace Experimental {
37 std::vector<std::shared_ptr<RBrowserWidget>>
fWidgets;
45 std::shared_ptr<RBrowserWidget>
AddWidget(
const std::string &kind);
46 std::shared_ptr<RBrowserWidget>
AddCatchedWidget(
const std::string &url,
const std::string &kind);
47 std::shared_ptr<RBrowserWidget>
FindWidget(
const std::string &
name,
const std::string &kind =
"")
const;
54 std::string
NewWidgetMsg(std::shared_ptr<RBrowserWidget> &widget);
56 void ProcessSaveFile(
const std::string &fname,
const std::string &content);
63 void ProcessMsg(
unsigned connid,
const std::string &arg);
93 bool ActivateWidget(
const std::string &title,
const std::string &kind =
"");
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void on
Way to browse (hopefully) everything in ROOT.
Web-based ROOT files and objects browser.
std::shared_ptr< RBrowserWidget > AddWidget(const std::string &kind)
Creates new widget.
std::vector< std::string > GetRootHistory()
Get content of history file.
void AddInitWidget(const std::string &kind)
Create new widget and send init message to the client.
bool GetCatchWindowShow() const
Is RWebWindow::Show calls catched for embeding of created widgets.
void SetWorkingPath(const std::string &path)
Set working path in the browser.
std::string NewWidgetMsg(std::shared_ptr< RBrowserWidget > &widget)
Create message which send to client to create new widget.
bool GetUseRCanvas() const
std::shared_ptr< RWebWindow > fWebWindow
! web window to browser
std::shared_ptr< RBrowserWidget > GetActiveWidget() const
void Show(const RWebDisplayArgs &args="", bool always_start_new_browser=false)
show Browser in specified place
std::string GetCurrentWorkingDirectory()
Return the current directory of ROOT.
std::shared_ptr< RBrowserWidget > AddCatchedWidget(const std::string &url, const std::string &kind)
Add widget catched from external scripts.
std::shared_ptr< RBrowserWidget > FindWidget(const std::string &name, const std::string &kind="") const
Find widget by name or kind.
std::string fTitle
! title
virtual ~RBrowser()
destructor
int fWidgetCnt
! counter for created widgets
RBrowserData fBrowsable
! central browsing element
void ProcessSaveFile(const std::string &fname, const std::string &content)
Process file save command in the editor.
bool fUseRCanvas
! which canvas should be used
void CheckWidgtesModified()
Check if any widget was modified and update if necessary.
std::string ProcessBrowserRequest(const std::string &msg)
Process browser request.
std::string fActiveWidgetName
! name of active widget
std::vector< std::string > GetRootLogs()
Get content of log file.
void ProcessMsg(unsigned connid, const std::string &arg)
Process received message from the client.
bool fCatchWindowShow
! if arbitrary RWebWindow::Show calls should be catched by browser
void CloseTab(const std::string &name)
Close and delete specified widget.
void SetUseRCanvas(bool on=true)
bool ActivateWidget(const std::string &title, const std::string &kind="")
Activate widget in RBrowser One should specify title and (optionally) kind of widget like "tcanvas" o...
void SetCatchWindowShow(bool on=true)
Enable/disable catch of RWebWindow::Show calls to embed created widgets, default on.
void SendInitMsg(unsigned connid)
Process client connect.
std::string ProcessDblClick(std::vector< std::string > &args)
Process dbl click on browser item.
unsigned fConnId
! default connection id
void ProcessRunMacro(const std::string &file_path)
Process run macro command in the editor.
std::string fPromptFileOutput
! file name for prompt output
std::vector< std::shared_ptr< RBrowserWidget > > fWidgets
! all browser widgets
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
This file contains a specialised ROOT message handler to test for diagnostic in unit tests.