ultimatepp/bazaar/DispatcherTest2/DispatcherTest.h
kohait 91ce2e1c72 bazaar: CMeter: code artefact, Dispatcher: param is not nessesary actually, has been removed.
git-svn-id: svn://ultimatepp.org/upp/trunk@2648 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2010-09-01 08:54:09 +00:00

43 lines
839 B
C++

#ifndef _DispatcherTest_DispatcherTest_h
#define _DispatcherTest_DispatcherTest_h
#include <CtrlLib/CtrlLib.h>
using namespace Upp;
#define LAYOUTFILE <DispatcherTest2/DispatcherTest.lay>
#include <CtrlCore/lay.h>
#include <Dispatcher/Dispatcher.hpp>
class MyPane
: public WithPane<ParentCtrl>
, public Dispatchable<Value>
, public Dispatchable<int>
{
public:
typedef MyPane CLASSNAME;
MyPane();
virtual void Dispatch(const Value & o);
virtual void Dispatch(const int & o);
};
class DispatcherTest : public WithDispatcherTestLayout<TopWindow>
{
public:
typedef DispatcherTest CLASSNAME;
DispatcherTest();
void sliderCB();
void slideriCB();
Dispatcher<Value> disp;
Dispatcher<int> dispi;
Splitter splith1, splith2, splitv;
MyPane pane1, pane2, pane3, pane4;
};
#endif