update
This commit is contained in:
parent
7f7c653815
commit
bcf9f8a123
13 changed files with 225 additions and 4 deletions
|
|
@ -4,7 +4,9 @@
|
|||
#include <MwCXX/Widget/Box.h>
|
||||
#include <MwCXX/Widget/Button.h>
|
||||
#include <MwCXX/Widget/Calendar.h>
|
||||
#include <MwCXX/Widget/Chart.h>
|
||||
#include <MwCXX/Widget/CheckBox.h>
|
||||
#include <MwCXX/Widget/Clock.h>
|
||||
#include <MwCXX/Widget/Entry.h>
|
||||
#include <MwCXX/Widget/Frame.h>
|
||||
#include <MwCXX/Widget/Image.h>
|
||||
|
|
|
|||
30
include/MwCXX/Widget/Chart.h
Normal file
30
include/MwCXX/Widget/Chart.h
Normal file
|
|
@ -0,0 +1,30 @@
|
|||
#ifndef __MWCXX_WIDGET_CHART_H__
|
||||
#define __MWCXX_WIDGET_CHART_H__
|
||||
|
||||
#include <MwCXX/MachDep.h>
|
||||
#include <MwCXX/Widget/Base.h>
|
||||
|
||||
#include <Mw/Widget/Chart.h>
|
||||
|
||||
namespace MwCXX {
|
||||
class Chart : public MwCXX::Base {
|
||||
protected:
|
||||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Chart(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Chart(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetType();
|
||||
void SetType(int value);
|
||||
int GetMinValue();
|
||||
void SetMinValue(int value);
|
||||
int GetMaxValue();
|
||||
void SetMaxValue(int value);
|
||||
|
||||
int Set(int index, MwCXX::String text, double value, MwCXX::String color);
|
||||
void Delete(int index);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
#endif
|
||||
27
include/MwCXX/Widget/Clock.h
Normal file
27
include/MwCXX/Widget/Clock.h
Normal file
|
|
@ -0,0 +1,27 @@
|
|||
#ifndef __MWCXX_WIDGET_CLOCK_H__
|
||||
#define __MWCXX_WIDGET_CLOCK_H__
|
||||
|
||||
#include <MwCXX/MachDep.h>
|
||||
#include <MwCXX/Widget/Base.h>
|
||||
|
||||
#include <Mw/Widget/Clock.h>
|
||||
|
||||
namespace MwCXX {
|
||||
class Clock : public MwCXX::Base {
|
||||
protected:
|
||||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Clock(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Clock(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetHour();
|
||||
void SetHour(int value);
|
||||
int GetMinute();
|
||||
void SetMinute(int value);
|
||||
int GetSecond();
|
||||
void SetSecond(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
#endif
|
||||
|
|
@ -24,7 +24,10 @@ namespace MwCXX {
|
|||
|
||||
void (*ComboBoxChangedHandler)(MwCXX::ComboBox* widget, int value);
|
||||
|
||||
void Add();
|
||||
void Add(int index, MwCXX::String text);
|
||||
MwCXX::String Get(int index, MwCXX::String text);
|
||||
void Delete(int index);
|
||||
void Reset();
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
|
|
|
|||
|
|
@ -19,6 +19,8 @@ namespace MwCXX {
|
|||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
MwLLPixmap GetIconPixmap();
|
||||
void SetIconPixmap(MwLLPixmap value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
|
|
|
|||
|
|
@ -24,6 +24,7 @@ namespace MwCXX {
|
|||
|
||||
MwCXX::Base* Add(MwCXX::String name);
|
||||
MwCXX::Base* GetFrame(MwCXX::String name);
|
||||
void Focus(MwCXX::String name);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue