*
* \author Angus Leeming
*
- * Full author contact details are available in file CREDITS
+ * Full author contact details are available in file CREDITS.
*/
#ifndef VIEWBASE_H
class ControlButtons;
class ButtonController;
+#include "support/std_string.h"
+
#include <boost/utility.hpp>
class ViewBase : boost::noncopyable {
public:
///
- ViewBase();
+ ViewBase(string const &);
///
virtual ~ViewBase() {}
ControlButtons const & getController() const;
///
ButtonController & bc();
+ /// sets the title of the dialog (window caption)
+ void setTitle(string const &);
+ /// gets the title of the dialog
+ string const & getTitle() const;
+
protected:
/// We don't own this.
ControlButtons * controller_ptr_;
+
+private:
+ string title_;
+
};
#endif // VIEWBASE_H