29 #ifndef CLIENTSCRIPT_H_
30 #define CLIENTSCRIPT_H_
134 virtual std::vector<casacore::String>
getFiles()
const;
virtual void showMessage(const casacore::String &message, const casacore::String &title, bool warning=false)
Display a message.
void updatePlotterPageHeader()
virtual void clearMessage()
only for GUI client
virtual bool isInteractive() const
Return whether the client is interactive (a GUI) or noninteractive (a script)
Implementation of Client built for user scripting (non-GUI) user interface.
virtual Type type()
Return the type enum.
PlotFactoryPtr itsFactory_
Plot factory.
virtual bool guiShown() const
virtual bool isActionEnabled(PlotMSAction::Type type) const
Returns whether or not the user can invoke a particular action.
virtual bool exportPlot(const PlotExportFormat &format, const bool async)
Save the current plot to a file.
virtual std::vector< std::vector< PMS::Axis > > getSelectedLoadAxes() const
Retrieve the plot load axes the user has specified.
void show(const variant &v)
void initializeCurrentPlot()
PlotMSApp * plotController
virtual void canvasAdded(PlotCanvasPtr &)
Add a plot to those displayed.
virtual std::vector< PlotMSPlot * > getCurrentPlots() const
Return the current client plot.
Controller class for plotms.
virtual void gridSizeChanged(int, int)
Specifies flagging parameters (including possibly flag extension) for an MS.
Type
Static // Enum for implemented actions.
virtual void doThreadedOperation(ThreadController *)
The client is responsible for doing threaded operations.
ClientScript(PlotMSApp *app, Plotter::Implementation impl=Plotter::DEFAULT)
Class for a single "plot" concept.
virtual void setOperationCompleted(bool completed)
Abstraction for the interface between the client (possibly a GUI) and the model (plot engine) that is...
virtual PlotMSFlagging getFlagging() const
Retrieve flagging information specified by the client.
virtual void showError(const casacore::String &message, const casacore::String &title, bool warning)
Display an error in a client dependent way.
void PMSPTMethod(PMSPTObject, bool)
virtual ThreadController * getThreadController(PlotMSAction::Type type, PMSPTMethod postThreadMethod=NULL, PlotMSPlot *postThreadObject=NULL, int index=0)
FactoryMethod for producing a thread controller to manage a specific type of threaded operation...
void initialize(Plotter::Implementation impl)
virtual void setFlagging(PlotMSFlagging flag)
Flagging.
virtual void showGUI(bool show=true)
String: the storage and methods of handling collections of characters.
virtual std::vector< casacore::String > getFiles() const
Return a list of files loaded in the client.
Default plotter implementation is set here.
const casacore::String SCRIPT_CLIENT
virtual std::vector< std::vector< PMS::Axis > > getSelectedReleaseAxes() const
Retrieve the release axes the user has specified.
virtual bool isClosed() const
std::vector< PlotMSPlot * > currentPlots
virtual bool isDrawing() const