mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-17 14:16:10 -06:00
40 lines
744 B
C++
40 lines
744 B
C++
#ifndef _DispatcherTest_DispatcherTest_h
|
|
#define _DispatcherTest_DispatcherTest_h
|
|
|
|
#include <CtrlLib/CtrlLib.h>
|
|
|
|
using namespace Upp;
|
|
|
|
#define LAYOUTFILE <DispatcherTest/DispatcherTest.lay>
|
|
#include <CtrlCore/lay.h>
|
|
|
|
#include <Dispatcher/Dispatcher.hpp>
|
|
|
|
class MyPane
|
|
: public WithPane<ParentCtrl>
|
|
, public Dispatchable<Value>
|
|
{
|
|
public:
|
|
typedef MyPane CLASSNAME;
|
|
MyPane();
|
|
|
|
virtual void Dispatch(const Value& o);
|
|
};
|
|
|
|
class DispatcherTest : public WithDispatcherTestLayout<TopWindow>
|
|
{
|
|
public:
|
|
typedef DispatcherTest CLASSNAME;
|
|
DispatcherTest();
|
|
~DispatcherTest();
|
|
|
|
void sliderCB();
|
|
|
|
Dispatcher<Value> disp;
|
|
|
|
Splitter splith1, splith2, splitv;
|
|
MyPane pane1, pane2, pane3, pane4;
|
|
};
|
|
|
|
#endif
|
|
|