14#define DECLARE_SUBWINDOW(classname) \
16 Mantid::Kernel::RegistrationHelper \
17 register_subwindow_##classname(((MantidQt::API::UserSubWindowFactory::Instance().subscribe<classname>()), 0)); \
20#define DECLARE_SUBWINDOW_AND_CODERS(classname, encodertype, decodertype, decodertag) \
22 Mantid::Kernel::RegistrationHelper register_subwindow_##classname( \
23 ((MantidQt::API::UserSubWindowFactory::Instance().subscribe<classname, encodertype, decodertype>(decodertag)), \
51namespace MantidWidgets {
52class FitPropertyBrowser;
60class InterfaceManager;
75 static std::string
name() {
return "UserSubWindow::name() default Reimplement static name() method."; }
77 static std::set<std::string>
aliases() {
return std::set<std::string>(); }
83 void initializeLayout();
86 void initializeLocalPython();
88 bool isInitialized()
const;
90 bool isPyInitialized()
const;
112 void showInformationBox(
const QString &message)
const;
116 QString runPythonCode(
const QString &code,
bool no_output =
false);
117 QString openFileDialog(
const bool save,
const QStringList &exts);
118 QLabel *newValidator(QWidget *parent);
127 void setInterfaceName(
const QString &iface_name);
#define EXPORT_OPT_MANTIDQT_COMMON
#define UNUSED_ARG(x)
Function arguments are sometimes unused in certain implmentations but are required for documentation ...
This class is responsible for creating the correct dialog for an algorithm.
This is the base class all customised user interfaces that do not wish to be tied to a specific Manti...
This is the base class all customised user interfaces that do not wish to be tied to a specific Manti...
void setFitPropertyBrowser(MantidQt::MantidWidgets::FitPropertyBrowser *browser)
Thrown when used fit property browser should be changed to given one.
void runAsPythonScript(const QString &code, bool)
Emitted to start a (generally small) script running.
static std::set< std::string > aliases()
A list of aliases.
QString m_ifacename
Store the name of the interface.
bool m_bIsInitialized
Has this already been initialized.
virtual void otherUserSubWindowCreated(QPointer< UserSubWindow > window)
To be overridden in order to connect a signal between two interfaces.
virtual void initLocalPython()
Run local Python setup code.
virtual void otherUserSubWindowCreated(QList< QPointer< UserSubWindow > > &windows)
To be overridden in order to connect a signal between two interfaces.
virtual void initLayout()=0
To be overridden to set the appropriate layout.
static std::string name()
Name of the interface.
PythonRunner m_pythonRunner
Python executor.
bool m_isPyInitialized
Has the python initialization been run.
The AlgorithmProgressDialogPresenter keeps track of the running algorithms and displays a progress ba...