33 lines
715 B
C++
33 lines
715 B
C++
// 25 november 2015
|
|
#include <vcclr.h>
|
|
#include "../ui.h"
|
|
#include "ui_wpf.hpp"
|
|
#include "../common/uipriv.h"
|
|
#include "unmanaged.h"
|
|
|
|
#using <System.dll>
|
|
#using <WindowsBase.dll>
|
|
#using <PresentationCore.dll>
|
|
#using <PresentationFramework.dll>
|
|
using namespace System;
|
|
using namespace System::ComponentModel;
|
|
using namespace System::Windows;
|
|
using namespace System::Windows::Controls;
|
|
|
|
// text.cpp
|
|
extern String ^fromUTF8(const char *);
|
|
|
|
// control.cpp
|
|
extern UIElement ^genericHandle(uiControl *c);
|
|
|
|
typedef gcroot<Label ^> *DUMMY;
|
|
static inline DUMMY mkdummy(String ^classname)
|
|
{
|
|
DUMMY t;
|
|
|
|
t = new gcroot<Label ^>();
|
|
*t = gcnew Label();
|
|
(*t)->Content = L"TODO " + classname + L" not implemented";
|
|
return t;
|
|
}
|