Stubbed uiMultilineEntry on Haiku. Why not.

This commit is contained in:
Pietro Gagliardi 2015-12-10 15:49:22 -05:00
parent 919e5f09cd
commit c005203b8a
2 changed files with 67 additions and 0 deletions

View File

@ -15,6 +15,7 @@ CXXFILES += \
haiku/label.cpp \
haiku/main.cpp \
haiku/menu.cpp \
haiku/multilineentry.cpp \
haiku/progressbar.cpp \
haiku/radiobuttons.cpp \
haiku/separator.cpp \

66
haiku/multilineentry.cpp Normal file
View File

@ -0,0 +1,66 @@
// 18 november 2015
#include "uipriv_haiku.hpp"
struct uiMultilineEntry {
uiHaikuControl c;
BStringView *dummy;
void (*onChanged)(uiMultilineEntry *, void *);
void *onChangedData;
};
uiHaikuDefineControl(
uiMultilineEntry, // type name
uiMultilineEntryType, // type function
dummy // handle
)
static void defaultOnChanged(uiMultilineEntry *e, void *data)
{
// do nothing
}
char *uiMultilineEntryText(uiMultilineEntry *e)
{
// TODO
return NULL;
}
void uiMultilineEntrySetText(uiMultilineEntry *e, const char *text)
{
// TODO
}
void uiMultilineEntryAppend(uiMultilineEntry *e, const char *text)
{
// TODO
}
void uiMultilineEntryOnChanged(uiMultilineEntry *e, void (*f)(uiMultilineEntry *e, void *data), void *data)
{
e->onChanged = f;
e->onChangedData = data;
}
int uiMultilineEntryReadOnly(uiMultilineEntry *e)
{
// TODO
return 0;
}
void uiMultilineEntrySetReadOnly(uiMultilineEntry *e, int readonly)
{
// TODO
}
uiMultilineEntry *uiNewMultilineEntry(void)
{
uiMultilineEntry *e;
e = (uiMultilineEntry *) uiNewControl(uiMultilineEntry());
e->dummy = new BStringView(NULL, "TODO uiMultilineEntry not implemented");
uiHaikuFinishNewControl(e, uiMultilineEntry);
return e;
}