13#ifndef ROOT7_RFileDialog 
   14#define ROOT7_RFileDialog 
   71   void ProcessMsg(
unsigned connid, 
const std::string &arg);
 
  114   static std::string 
OpenFile(
const std::string &title = 
"", 
const std::string &
fname = 
"");
 
  115   static std::string 
SaveAs(
const std::string &title = 
"", 
const std::string &
fname = 
"");
 
  116   static std::string 
NewFile(
const std::string &title = 
"", 
const std::string &
fname = 
"");
 
  118   static std::shared_ptr<RFileDialog> 
Embed(
const std::shared_ptr<RWebWindow> &window, 
unsigned connid, 
const std::string &args);
 
 
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
 
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.
 
std::vector< std::string > fNameFilters
! name filters
 
static void SetStartFunc(bool on)
Set start dialog function for RWebWindow.
 
const auto & GetNameFilters() const
Returns array of name filters.
 
static std::string Dialog(EDialogTypes kind, const std::string &title, const std::string &fname)
Start specified dialog type.
 
std::shared_ptr< RWebWindow > fWebWindow
! web window for file dialog
 
EDialogTypes fKind
! dialog kind OpenFile, SaveAs, NewFile
 
const std::string & GetFileName() const
 
bool GetCanChangePath() const
Returns true if working path can be change with gui elements.
 
RFileDialogCallback_t fCallback
! function receiving result, called once
 
void Show(const RWebDisplayArgs &args="")
Show or update RFileDialog in web window If web window already started - just refresh it like "reload...
 
void InvokeCallBack()
Invoke specified callback.
 
static std::string SaveAs(const std::string &title="", const std::string &fname="")
Start SaveAs dialog.
 
std::string GetSelectedFilter() const
Returns selected filter Can differ from specified value - if it does not match to existing entry in N...
 
friend class Details::RWebWindowPlugin
 
void SetNameFilters(const std::vector< std::string > &arr)
Set array of name filters like "Text files (*.txt)", "Any files (*)", "Image files (*png *....
 
void ProcessMsg(unsigned connid, const std::string &arg)
Process received data from client.
 
bool fCanChangePath
! if working path can be changed via gui elements
 
bool fDidSelect
! true when dialog is selected or closed
 
static std::string OpenFile(const std::string &title="", const std::string &fname="")
Start OpenFile dialog.
 
void Hide()
Hide ROOT Browser.
 
std::string GetRegexp(const std::string &name) const
Returns regexp for selected filter String should have form "Filter name (*.ext1 *....
 
std::string fSelectedFilter
! name of selected filter
 
void SetCanChangePath(bool on=true)
Configure if working path in dialog can be changed via gui elements.
 
void SendChPathMsg(unsigned connid)
Sends new data after change current directory.
 
static bool IsMessageToStartDialog(const std::string &msg)
Check if this could be the message send by client to start new file dialog If returns true,...
 
std::string GetWorkingPath() const
Returns current working path.
 
static std::string TypeAsString(EDialogTypes kind)
Returns dialog type as string String value used for configuring JS-side.
 
static std::string NewFile(const std::string &title="", const std::string &fname="")
Start NewFile dialog.
 
void SetSelectedFilter(const std::string &name)
Configure selected filter Has to be one of the string from NameFilters entry.
 
RFileDialog(EDialogTypes kind=kOpenFile, const std::string &title="", const std::string &fname="")
constructor When title not specified, default will be used
 
static std::shared_ptr< RFileDialog > Embed(const std::shared_ptr< RWebWindow > &window, unsigned connid, const std::string &args)
Create dialog instance to use as embedded dialog inside other widget Embedded dialog started on the c...
 
void SetCallback(RFileDialogCallback_t callback)
Assign callback.
 
RBrowserData fBrowsable
! central browsing element
 
std::string fTitle
! title, when not specified default will be used
 
void SendInitMsg(unsigned connid)
Sends initial message to the client.
 
const EDialogTypes & GetType() const
 
void SetWorkingPath(const std::string &)
Change current working path of file dialog If dialog already shown, change will be immediately applie...
 
virtual ~RFileDialog()
destructor
 
std::string fSelect
! result of file selection
 
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...
 
std::function< void(const std::string &)> RFileDialogCallback_t
function signature for file dialog call-backs argument is selected file name