23namespace Experimental {
37 std::vector<std::shared_ptr<RBrowserWidget>>
fWidgets;
44 std::shared_ptr<RBrowserWidget>
AddWidget(
const std::string &kind);
45 std::shared_ptr<RBrowserWidget>
AddCatchedWidget(
const std::string &url,
const std::string &kind);
46 std::shared_ptr<RBrowserWidget>
FindWidget(
const std::string &
name)
const;
53 std::string
NewWidgetMsg(std::shared_ptr<RBrowserWidget> &widget);
55 void ProcessSaveFile(
const std::string &fname,
const std::string &content);
62 void ProcessMsg(
unsigned connid,
const std::string &arg);
Way to browse (hopefully) everything in ROOT.
Web-based ROOT file 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::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.
std::shared_ptr< RBrowserWidget > FindWidget(const std::string &name) const
Returns active geometry viewer (if any)
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)
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::vector< std::shared_ptr< RBrowserWidget > > fWidgets
! all browser widgets
Holds different arguments for starting browser with RWebDisplayHandle::Display() method.
tbb::task_arena is an alias of tbb::interface7::task_arena, which doesn't allow to forward declare tb...