things
This commit is contained in:
parent
bbc8b871bb
commit
933f276e1a
73 changed files with 1350 additions and 306 deletions
8
include/MwCXX/Dialog/ColorChooser.h
Normal file
8
include/MwCXX/Dialog/ColorChooser.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef __MWCXX_DIALOG_COLORCHOOSER_H__
|
||||
#define __MWCXX_DIALOG_COLORCHOOSER_H__
|
||||
|
||||
namespace MwCXX {
|
||||
MwCXX::Window* ColorChooser(MwCXX::Base* handle, MwCXX::String title);
|
||||
}; // namespace MwCXX
|
||||
|
||||
#endif
|
||||
8
include/MwCXX/Dialog/DirectoryChooser.h
Normal file
8
include/MwCXX/Dialog/DirectoryChooser.h
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
#ifndef __MWCXX_DIALOG_DIRECTORYCHOOSER_H__
|
||||
#define __MWCXX_DIALOG_DIRECTORYCHOOSER_H__
|
||||
|
||||
namespace MwCXX {
|
||||
MwCXX::Window* DirectoryChooser(MwCXX::Base* handle, MwCXX::String title);
|
||||
}; // namespace MwCXX
|
||||
|
||||
#endif
|
||||
9
include/MwCXX/Dialog/FileChooser.h
Normal file
9
include/MwCXX/Dialog/FileChooser.h
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
#ifndef __MWCXX_DIALOG_FILECHOOSER_H__
|
||||
#define __MWCXX_DIALOG_FILECHOOSER_H__
|
||||
|
||||
namespace MwCXX {
|
||||
MwCXX::Window* FileChooser(MwCXX::Base* handle, MwCXX::String title);
|
||||
MwCXX::Window* FileChooserEx(MwCXX::Base* handle, MwCXX::String title, int dir);
|
||||
}; // namespace MwCXX
|
||||
|
||||
#endif
|
||||
10
include/MwCXX/Dialog/MessageBox.h
Normal file
10
include/MwCXX/Dialog/MessageBox.h
Normal file
|
|
@ -0,0 +1,10 @@
|
|||
#ifndef __MWCXX_DIALOG_MESSAGEBOX_H__
|
||||
#define __MWCXX_DIALOG_MESSAGEBOX_H__
|
||||
|
||||
namespace MwCXX {
|
||||
MwCXX::Window* MessageBox(MwCXX::Base* handle, MwCXX::String text, MwCXX::String title, int flag);
|
||||
MwCXX::Button* MessageBoxGetChild(MwCXX::Window* handle, int child);
|
||||
void MessageBoxDestroy(MwCXX::Window* handle);
|
||||
}; // namespace MwCXX
|
||||
|
||||
#endif
|
||||
|
|
@ -4,6 +4,7 @@
|
|||
#include <Mw/Milsko.h>
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
|
||||
// #define MWCXX_USE_C_STRING
|
||||
|
||||
|
|
|
|||
|
|
@ -10,9 +10,13 @@ namespace MwCXX {
|
|||
|
||||
MwWidget widget;
|
||||
|
||||
MwCXX::Base* parent;
|
||||
std::vector<MwCXX::Base*> children;
|
||||
|
||||
public:
|
||||
Base(MwWidget widget);
|
||||
Base(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Base(MwClass widget_class, MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
~Base();
|
||||
|
||||
MwRect GetArea();
|
||||
void SetArea(MwRect r);
|
||||
|
|
@ -20,8 +24,12 @@ namespace MwCXX {
|
|||
void Move(int x, int y);
|
||||
void Resize(unsigned int width, unsigned int height);
|
||||
|
||||
int Step();
|
||||
int Pending();
|
||||
void Loop();
|
||||
|
||||
MwCXX::Base* GetParent();
|
||||
|
||||
#include <MwCXX/Widget/BaseAuto.h>
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -1,41 +1,41 @@
|
|||
MwCXX::String GetBackground();
|
||||
void SetBackground(MwCXX::String value);
|
||||
MwLLPixmap GetBackgroundPixmap();
|
||||
void SetBackgroundPixmap(MwLLPixmap value);
|
||||
int GetBitmapFont();
|
||||
void SetBitmapFont(int value);
|
||||
int GetBorderWidth();
|
||||
void SetBorderWidth(int value);
|
||||
int GetDarkTheme();
|
||||
void SetDarkTheme(int value);
|
||||
int GetFixedSize();
|
||||
void SetFixedSize(int value);
|
||||
int GetForceInverted();
|
||||
void SetForceInverted(int value);
|
||||
void SetBackground(MwCXX::String value);
|
||||
MwLLPixmap GetBackgroundPixmap();
|
||||
void SetBackgroundPixmap(MwLLPixmap value);
|
||||
int GetBitmapFont();
|
||||
void SetBitmapFont(int value);
|
||||
int GetBorderWidth();
|
||||
void SetBorderWidth(int value);
|
||||
int GetDarkTheme();
|
||||
void SetDarkTheme(int value);
|
||||
int GetFixedSize();
|
||||
void SetFixedSize(int value);
|
||||
int GetForceInverted();
|
||||
void SetForceInverted(int value);
|
||||
MwCXX::String GetForeground();
|
||||
void SetForeground(MwCXX::String value);
|
||||
int GetHeight();
|
||||
void SetHeight(int value);
|
||||
int GetIsRounded();
|
||||
void SetIsRounded(int value);
|
||||
int GetModernLook();
|
||||
void SetModernLook(int value);
|
||||
int GetRatio();
|
||||
void SetRatio(int value);
|
||||
void SetForeground(MwCXX::String value);
|
||||
int GetHeight();
|
||||
void SetHeight(int value);
|
||||
int GetIsRounded();
|
||||
void SetIsRounded(int value);
|
||||
int GetModernLook();
|
||||
void SetModernLook(int value);
|
||||
int GetRatio();
|
||||
void SetRatio(int value);
|
||||
MwCXX::String GetSubBackground();
|
||||
void SetSubBackground(MwCXX::String value);
|
||||
void SetSubBackground(MwCXX::String value);
|
||||
MwCXX::String GetSubForeground();
|
||||
void SetSubForeground(MwCXX::String value);
|
||||
int GetUseMonospace();
|
||||
void SetUseMonospace(int value);
|
||||
int GetWaitMS();
|
||||
void SetWaitMS(int value);
|
||||
int GetWidth();
|
||||
void SetWidth(int value);
|
||||
int GetX();
|
||||
void SetX(int value);
|
||||
int GetY();
|
||||
void SetY(int value);
|
||||
void SetSubForeground(MwCXX::String value);
|
||||
int GetUseMonospace();
|
||||
void SetUseMonospace(int value);
|
||||
int GetWaitMS();
|
||||
void SetWaitMS(int value);
|
||||
int GetWidth();
|
||||
void SetWidth(int value);
|
||||
int GetX();
|
||||
void SetX(int value);
|
||||
int GetY();
|
||||
void SetY(int value);
|
||||
|
||||
virtual void OnClipboard(MwCXX::String value) {};
|
||||
virtual void OnDarkTheme(int value) {};
|
||||
|
|
|
|||
|
|
@ -12,18 +12,18 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Box(MwWidget widget);
|
||||
Box(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Box(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetOrientation();
|
||||
int GetOrientation();
|
||||
void SetOrientation(int value);
|
||||
int GetMargin();
|
||||
int GetMargin();
|
||||
void SetMargin(int value);
|
||||
int GetPadding();
|
||||
int GetPadding();
|
||||
void SetPadding(int value);
|
||||
int GetHasBorder();
|
||||
int GetHasBorder();
|
||||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,19 +12,19 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Button(MwWidget widget);
|
||||
Button(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Button(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
MwLLPixmap GetPixmap();
|
||||
void SetPixmap(MwLLPixmap value);
|
||||
MwLLPixmap GetPixmap();
|
||||
void SetPixmap(MwLLPixmap value);
|
||||
MwCXX::String GetText();
|
||||
void SetText(MwCXX::String value);
|
||||
int GetFlat();
|
||||
void SetFlat(int value);
|
||||
int GetPadding();
|
||||
void SetPadding(int value);
|
||||
int GetFillArea();
|
||||
void SetFillArea(int value);
|
||||
void SetText(MwCXX::String value);
|
||||
int GetFlat();
|
||||
void SetFlat(int value);
|
||||
int GetPadding();
|
||||
void SetPadding(int value);
|
||||
int GetFillArea();
|
||||
void SetFillArea(int value);
|
||||
|
||||
virtual void OnActivate() {};
|
||||
virtual void OnChanged() {};
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
CheckBox(MwWidget widget);
|
||||
CheckBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
CheckBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetChecked();
|
||||
int GetChecked();
|
||||
void SetChecked(int value);
|
||||
|
||||
virtual void OnChanged() {};
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
ComboBox(MwWidget widget);
|
||||
ComboBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
ComboBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetAreaShown();
|
||||
int GetAreaShown();
|
||||
void SetAreaShown(int value);
|
||||
int GetValue();
|
||||
int GetValue();
|
||||
void SetValue(int value);
|
||||
|
||||
virtual void OnComboBoxChanged(int value) {};
|
||||
|
|
|
|||
|
|
@ -12,13 +12,13 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Entry(MwWidget widget);
|
||||
Entry(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Entry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
MwCXX::String GetText();
|
||||
void SetText(MwCXX::String value);
|
||||
int GetHideInput();
|
||||
void SetHideInput(int value);
|
||||
void SetText(MwCXX::String value);
|
||||
int GetHideInput();
|
||||
void SetHideInput(int value);
|
||||
|
||||
virtual void OnActivate() {};
|
||||
virtual void OnChanged() {};
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Frame(MwWidget widget);
|
||||
Frame(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Frame(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetHasBorder();
|
||||
int GetHasBorder();
|
||||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,17 +12,17 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Image(MwWidget widget);
|
||||
Image(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Image(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
MwLLPixmap GetPixmap();
|
||||
void SetPixmap(MwLLPixmap value);
|
||||
int GetHasBorder();
|
||||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
int GetFillArea();
|
||||
void SetFillArea(int value);
|
||||
void SetPixmap(MwLLPixmap value);
|
||||
int GetHasBorder();
|
||||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
int GetFillArea();
|
||||
void SetFillArea(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
|
|
|
|||
|
|
@ -12,21 +12,21 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Label(MwWidget widget);
|
||||
Label(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Label(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
MwCXX::String GetText();
|
||||
void SetText(MwCXX::String value);
|
||||
int GetAlignment();
|
||||
void SetAlignment(int value);
|
||||
int GetBold();
|
||||
void SetBold(int value);
|
||||
int GetSevenSegment();
|
||||
void SetSevenSegment(int value);
|
||||
int GetLength();
|
||||
void SetLength(int value);
|
||||
int GetLeftPadding();
|
||||
void SetLeftPadding(int value);
|
||||
void SetText(MwCXX::String value);
|
||||
int GetAlignment();
|
||||
void SetAlignment(int value);
|
||||
int GetBold();
|
||||
void SetBold(int value);
|
||||
int GetSevenSegment();
|
||||
void SetSevenSegment(int value);
|
||||
int GetLength();
|
||||
void SetLength(int value);
|
||||
int GetLeftPadding();
|
||||
void SetLeftPadding(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
|
|
|
|||
|
|
@ -12,14 +12,14 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
ListBox(MwWidget widget);
|
||||
ListBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
ListBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetLeftPadding();
|
||||
int GetLeftPadding();
|
||||
void SetLeftPadding(int value);
|
||||
int GetHasHeading();
|
||||
int GetHasHeading();
|
||||
void SetHasHeading(int value);
|
||||
int GetSingleClickSelectable();
|
||||
int GetSingleClickSelectable();
|
||||
void SetSingleClickSelectable(int value);
|
||||
|
||||
virtual void OnListBoxActivate(int value) {};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Menu(MwWidget widget);
|
||||
Menu(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Menu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
virtual void OnMenu(void* value) {};
|
||||
|
|
|
|||
|
|
@ -12,11 +12,11 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
NumberEntry(MwWidget widget);
|
||||
NumberEntry(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
NumberEntry(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
MwCXX::String GetText();
|
||||
void SetText(MwCXX::String value);
|
||||
void SetText(MwCXX::String value);
|
||||
|
||||
virtual void OnActivate() {};
|
||||
virtual void OnChanged() {};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
OpenGL(MwWidget widget);
|
||||
OpenGL(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
OpenGL(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,14 +12,14 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
ProgressBar(MwWidget widget);
|
||||
ProgressBar(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
ProgressBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetMinValue();
|
||||
int GetMinValue();
|
||||
void SetMinValue(int value);
|
||||
int GetMaxValue();
|
||||
int GetMaxValue();
|
||||
void SetMaxValue(int value);
|
||||
int GetValue();
|
||||
int GetValue();
|
||||
void SetValue(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
RadioBox(MwWidget widget);
|
||||
RadioBox(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
RadioBox(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetChecked();
|
||||
int GetChecked();
|
||||
void SetChecked(int value);
|
||||
|
||||
virtual void OnChanged() {};
|
||||
|
|
|
|||
|
|
@ -12,20 +12,20 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
ScrollBar(MwWidget widget);
|
||||
ScrollBar(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
ScrollBar(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetShowArrows();
|
||||
int GetShowArrows();
|
||||
void SetShowArrows(int value);
|
||||
int GetAreaShown();
|
||||
int GetAreaShown();
|
||||
void SetAreaShown(int value);
|
||||
int GetValue();
|
||||
int GetValue();
|
||||
void SetValue(int value);
|
||||
int GetMinValue();
|
||||
int GetMinValue();
|
||||
void SetMinValue(int value);
|
||||
int GetMaxValue();
|
||||
int GetMaxValue();
|
||||
void SetMaxValue(int value);
|
||||
int GetOrientation();
|
||||
int GetOrientation();
|
||||
void SetOrientation(int value);
|
||||
|
||||
virtual void OnChanged() {};
|
||||
|
|
|
|||
|
|
@ -12,10 +12,10 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
SubMenu(MwWidget widget);
|
||||
SubMenu(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
SubMenu(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetLeftPadding();
|
||||
int GetLeftPadding();
|
||||
void SetLeftPadding(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,12 +12,12 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
TreeView(MwWidget widget);
|
||||
TreeView(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
TreeView(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
int GetLeftPadding();
|
||||
int GetLeftPadding();
|
||||
void SetLeftPadding(int value);
|
||||
int GetSingleClickSelectable();
|
||||
int GetSingleClickSelectable();
|
||||
void SetSingleClickSelectable(int value);
|
||||
|
||||
virtual void OnTreeViewActivate(void* value) {};
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Viewport(MwWidget widget);
|
||||
Viewport(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Viewport(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,7 +12,7 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Vulkan(MwWidget widget);
|
||||
Vulkan(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Vulkan(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
|
|
|||
|
|
@ -12,21 +12,21 @@ namespace MwCXX {
|
|||
virtual void RegisterHandlers();
|
||||
|
||||
public:
|
||||
Window(MwWidget widget);
|
||||
Window(MwWidget widget, MwCXX::Base* parent = NULL);
|
||||
Window(MwCXX::String name, MwCXX::Base* parent, int x, int y, unsigned int width, unsigned int height);
|
||||
|
||||
MwCXX::String GetTitle();
|
||||
void SetTitle(MwCXX::String value);
|
||||
int GetMain();
|
||||
void SetMain(int value);
|
||||
MwLLPixmap GetIconPixmap();
|
||||
void SetIconPixmap(MwLLPixmap value);
|
||||
MwSizeHints* GetSizeHints();
|
||||
void SetSizeHints(MwSizeHints* value);
|
||||
int GetHasBorder();
|
||||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
void SetTitle(MwCXX::String value);
|
||||
int GetMain();
|
||||
void SetMain(int value);
|
||||
MwLLPixmap GetIconPixmap();
|
||||
void SetIconPixmap(MwLLPixmap value);
|
||||
MwSizeHints* GetSizeHints();
|
||||
void SetSizeHints(MwSizeHints* value);
|
||||
int GetHasBorder();
|
||||
void SetHasBorder(int value);
|
||||
int GetInverted();
|
||||
void SetInverted(int value);
|
||||
};
|
||||
}; // namespace MwCXX
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue