#include <InterViews/input.h>
#include <InterViews/resource.h>
Go to the source code of this file.
Classes | |
class | FieldSEditorAction |
class | FieldSEditor |
Defines | |
#define | __FieldSEditorCallback(T) T_FieldSEditorCallback |
#define | FieldSEditorCallback(T) __FieldSEditorCallback(T) |
#define | __FieldSEditorMemberFunction(T) T_FieldSEditorMemberFunction |
#define | FieldSEditorMemberFunction(T) __FieldSEditorMemberFunction(T) |
#define | declareFieldSEditorCallback(T) |
#define | implementFieldSEditorCallback(T) |
#define __FieldSEditorCallback | ( | T | ) | T_FieldSEditorCallback |
#define __FieldSEditorMemberFunction | ( | T | ) | T_FieldSEditorMemberFunction |
#define declareFieldSEditorCallback | ( | T | ) |
typedef void (T::*FieldSEditorMemberFunction(T))(FieldSEditor*); \ class FieldSEditorCallback(T) : public FieldSEditorAction { \ public: \ FieldSEditorCallback(T)( \ T*, FieldSEditorMemberFunction(T) accept, \ FieldSEditorMemberFunction(T) cancel \ ); \ virtual ~FieldSEditorCallback(T)(); \ \ virtual void accept(FieldSEditor*); \ virtual void cancel(FieldSEditor*); \ private: \ T* obj_; \ FieldSEditorMemberFunction(T) accept_; \ FieldSEditorMemberFunction(T) cancel_; \ };
#define FieldSEditorCallback | ( | T | ) | __FieldSEditorCallback(T) |
#define FieldSEditorMemberFunction | ( | T | ) | __FieldSEditorMemberFunction(T) |
#define implementFieldSEditorCallback | ( | T | ) |
FieldSEditorCallback(T)::FieldSEditorCallback(T)( \ T* obj, FieldSEditorMemberFunction(T) accept, \ FieldSEditorMemberFunction(T) cancel \ ) { \ obj_ = obj; \ accept_ = accept; \ cancel_ = cancel; \ } \ \ FieldSEditorCallback(T)::~FieldSEditorCallback(T)() { } \ \ void FieldSEditorCallback(T)::accept(FieldSEditor* f) { (obj_->*accept_)(f); } \ void FieldSEditorCallback(T)::cancel(FieldSEditor* f) { (obj_->*cancel_)(f); }