*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
/* A base class for the MCV-ed xforms dialogs.
#ifndef FORMBASE_H
#define FORMBASE_H
-#ifdef __GNUG__
-#pragma interface
-#endif
#include "ViewBase.h"
#include "ButtonPolicies.h"
#include "forms_fwd.h"
-#include "LString.h"
#include <boost/scoped_ptr.hpp>
#include <X11/Xlib.h> // for Pixmap
{
public:
///
- FormBase(string const &, bool allowResize);
+ FormBase(std::string const &, bool allowResize);
///
virtual ~FormBase();
/** Send the warning message from the daughter class to the
message_widget direct. The message will persist till the mouse
movesto a new object. */
- void postWarning(string const & warning);
+ void postWarning(std::string const & warning);
/// Reset the message_widget_
void clearMessage();
///
- xformsBC & bc();
+ xformsBC & bcview();
private:
/// Pointer to the actual instantiation of xform's form
/** Get the feedback message for ob.
Called if warning_posted_ == false. */
- virtual string const getFeedback(FL_OBJECT * /* ob */)
- { return string(); }
+ virtual std::string const getFeedback(FL_OBJECT * /* ob */)
+ { return std::string(); }
/// Post the feedback message for ob to message_widget_
- void postMessage(string const & message);
+ void postMessage(std::string const & message);
/** Variable used to decide whether to remove the existing feedback
message or not (if it is in fact a warning) */
int minh_;
/// Can the dialog be resized after it has been created?
bool allow_resize_;
- /// dialog title, displayed by the window manager.
- string title_;
/// Passed to the window manager to give a pretty little symbol ;-)
Pixmap icon_pixmap_;
///
{
protected:
///
- FormDB(string const &, bool allowResize=true);
+ FormDB(std::string const &, bool allowResize=true);
/// Pointer to the actual instantiation of xform's form
virtual FL_FORM * form() const;
/// Real GUI implementation.
template <class Dialog>
-FormDB<Dialog>::FormDB(string const & t, bool allowResize)
+FormDB<Dialog>::FormDB(std::string const & t, bool allowResize)
: FormBase(t, allowResize)
{}
protected:
///
- FormCB(string const &, bool allowResize = true);
+ FormCB(std::string const &, bool allowResize = true);
};
template <class Controller, class Base>
-FormCB<Controller, Base>::FormCB(string const & t, bool allowResize)
+FormCB<Controller, Base>::FormCB(std::string const & t, bool allowResize)
: Base(t, allowResize)
{}
template <class Controller, class Base>
Controller & FormCB<Controller, Base>::controller()
{
- return static_cast<Controller &>(getController());
+ return static_cast<Controller &>(this->getController());
}
template <class Controller, class Base>
Controller const & FormCB<Controller, Base>::controller() const
{
- return static_cast<Controller const &>(getController());
+ return static_cast<Controller const &>(this->getController());
}