mirror of
https://github.com/pocoproject/poco.git
synced 2025-10-25 02:06:04 +02:00
Sun CC compilation fixes
This commit is contained in:
@@ -49,7 +49,7 @@
|
|||||||
namespace Poco {
|
namespace Poco {
|
||||||
namespace WebWidgets {
|
namespace WebWidgets {
|
||||||
|
|
||||||
class Cell;
|
class Cell;
|
||||||
|
|
||||||
namespace ExtJS {
|
namespace ExtJS {
|
||||||
|
|
||||||
|
|||||||
@@ -69,14 +69,13 @@ public:
|
|||||||
|
|
||||||
|
|
||||||
template <typename T>
|
template <typename T>
|
||||||
static void write(const T& t, std::ostream& out)
|
inline void write(const T& t, std::ostream& out)
|
||||||
{
|
{
|
||||||
out << t;
|
out << t;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
template <>
|
inline void write(const std::string& t, std::ostream& out)
|
||||||
void write(const std::string& t, std::ostream& out)
|
|
||||||
{
|
{
|
||||||
out << "'" << Utility::safe(t) << "'";
|
out << "'" << Utility::safe(t) << "'";
|
||||||
}
|
}
|
||||||
@@ -181,7 +180,6 @@ public:
|
|||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
void addFixed(const std::string& name, const std::string& fixedContent)
|
void addFixed(const std::string& name, const std::string& fixedContent)
|
||||||
/// Adds a variable with a given fixed string content. The content will not be wrapped
|
/// Adds a variable with a given fixed string content. The content will not be wrapped
|
||||||
/// with ' ' but will be written as is
|
/// with ' ' but will be written as is
|
||||||
@@ -201,6 +199,13 @@ public:
|
|||||||
addFixed(name, var);
|
addFixed(name, var);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
template <typename Ret>
|
||||||
|
void addDynamic(const char* pName, Ret (Class::*Function)() const)
|
||||||
|
/// Overload for char*. Forwards to the call using std::string.
|
||||||
|
{
|
||||||
|
addDynamic<Ret>(std::string(pName), Function);
|
||||||
|
}
|
||||||
|
|
||||||
void writeData(const void* pAny, std::ostream& out)
|
void writeData(const void* pAny, std::ostream& out)
|
||||||
/// Writes the content of the table used to dynamically
|
/// Writes the content of the table used to dynamically
|
||||||
/// initialize Table Columns
|
/// initialize Table Columns
|
||||||
|
|||||||
@@ -53,32 +53,38 @@ TableCellHandlerFactory::TableCellHandlerFactory()
|
|||||||
{
|
{
|
||||||
{
|
{
|
||||||
TableCellHandler<CheckButtonCell>::Ptr pHandle(new TableCellHandler<CheckButtonCell>("Ext.form.Checkbox", true, true));
|
TableCellHandler<CheckButtonCell>::Ptr pHandle(new TableCellHandler<CheckButtonCell>("Ext.form.Checkbox", true, true));
|
||||||
pHandle->addDynamic<bool>("checked", &CheckButtonCell::getBool);
|
typedef bool (CheckButtonCell::*Function)() const;
|
||||||
|
pHandle->addDynamic<bool>("checked", Function(&CheckButtonCell::getBool));
|
||||||
registerFactory(typeid(CheckButtonCell), pHandle);
|
registerFactory(typeid(CheckButtonCell), pHandle);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
TableCellHandler<TextEditCell>::Ptr pHandle(new TableCellHandler<TextEditCell>("Ext.form.TextArea", true, true));
|
TableCellHandler<TextEditCell>::Ptr pHandle(new TableCellHandler<TextEditCell>("Ext.form.TextArea", true, true));
|
||||||
pHandle->addDynamic<std::string>("value", &TextEditCell::getString);
|
typedef std::string (TextEditCell::*Function)() const;
|
||||||
|
pHandle->addDynamic<std::string>("value", Function(&TextEditCell::getString));
|
||||||
registerFactory(typeid(TextEditCell), pHandle);
|
registerFactory(typeid(TextEditCell), pHandle);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
TableCellHandler<TextFieldCell>::Ptr pHandle(new TableCellHandler<TextFieldCell>("Ext.form.TextField", true, false));
|
TableCellHandler<TextFieldCell>::Ptr pHandle(new TableCellHandler<TextFieldCell>("Ext.form.TextField", true, false));
|
||||||
pHandle->addDynamic<std::string>("value", &TextFieldCell::getString);
|
typedef std::string (TextFieldCell::*Function)() const;
|
||||||
|
pHandle->addDynamic<std::string>("value", Function(&TextFieldCell::getString));
|
||||||
registerFactory(typeid(TextFieldCell), pHandle);
|
registerFactory(typeid(TextFieldCell), pHandle);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
TableCellHandler<NumberFieldCell>::Ptr pHandle(new TableCellHandler<NumberFieldCell>("Ext.form.NumberField", true, false));
|
TableCellHandler<NumberFieldCell>::Ptr pHandle(new TableCellHandler<NumberFieldCell>("Ext.form.NumberField", true, false));
|
||||||
pHandle->addDynamic<std::string>("value", &NumberFieldCell::getString);
|
typedef std::string (NumberFieldCell::*Function)() const;
|
||||||
|
pHandle->addDynamic<std::string>("value", Function(&NumberFieldCell::getString));
|
||||||
registerFactory(typeid(NumberFieldCell), pHandle);
|
registerFactory(typeid(NumberFieldCell), pHandle);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
TableCellHandler<ComboBoxCell>::Ptr pHandle(new TableCellHandler<ComboBoxCell>("Ext.form.ComboBox", true, false));
|
TableCellHandler<ComboBoxCell>::Ptr pHandle(new TableCellHandler<ComboBoxCell>("Ext.form.ComboBox", true, false));
|
||||||
pHandle->addDynamic<std::string>("value", &ComboBoxCell::getString);
|
typedef std::string (ComboBoxCell::*Function)() const;
|
||||||
|
pHandle->addDynamic<std::string>("value", Function(&ComboBoxCell::getString));
|
||||||
registerFactory(typeid(ComboBoxCell), pHandle);
|
registerFactory(typeid(ComboBoxCell), pHandle);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
TableCellHandler<ButtonCell>::Ptr pHandle(new TableCellHandler<ButtonCell>("Ext.Button", false, true));
|
TableCellHandler<ButtonCell>::Ptr pHandle(new TableCellHandler<ButtonCell>("Ext.Button", false, true));
|
||||||
pHandle->addDynamic<std::string>("text", &ButtonCell::getString);
|
typedef std::string (ButtonCell::*Function)() const;
|
||||||
|
pHandle->addDynamic<std::string>("text", Function(&ButtonCell::getString));
|
||||||
registerFactory(typeid(ButtonCell), pHandle);
|
registerFactory(typeid(ButtonCell), pHandle);
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -454,7 +454,6 @@ bool Utility::writeJSEvent(std::ostream& out, const std::string& eventName, cons
|
|||||||
out << "fn:" << fct << "{";
|
out << "fn:" << fct << "{";
|
||||||
writeFunctionCode(out, "all", delegates);
|
writeFunctionCode(out, "all", delegates);
|
||||||
out << "}"; //closes fn
|
out << "}"; //closes fn
|
||||||
|
|
||||||
}
|
}
|
||||||
if (delayTime > 0)
|
if (delayTime > 0)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -1188,7 +1188,11 @@ void ExtJSTest::testFunction()
|
|||||||
ptrBut2->setToolTip("click here to disable");
|
ptrBut2->setToolTip("click here to disable");
|
||||||
ptrFrm->add(ptrBut2);
|
ptrFrm->add(ptrBut2);
|
||||||
TableCellHandler<CheckButtonCell>::Ptr pHandle(new TableCellHandler<CheckButtonCell>("Ext.form.Checkbox", false, true));
|
TableCellHandler<CheckButtonCell>::Ptr pHandle(new TableCellHandler<CheckButtonCell>("Ext.form.Checkbox", false, true));
|
||||||
pHandle->addDynamic<bool>("checked", &CheckButtonCell::getBool);
|
|
||||||
|
// this is really clumsy, but it seems to be the only way to force Sun CC to digest it
|
||||||
|
typedef bool (CheckButtonCell::*Fun)() const;
|
||||||
|
pHandle->addDynamic<bool>("checked", Fun(&CheckButtonCell::getBool));
|
||||||
|
|
||||||
pHandle->addFixed("dummy", "dummy");
|
pHandle->addFixed("dummy", "dummy");
|
||||||
std::ostringstream str;
|
std::ostringstream str;
|
||||||
pHandle->writeData(ptrBut->cell<CheckButtonCell>(), str);
|
pHandle->writeData(ptrBut->cell<CheckButtonCell>(), str);
|
||||||
@@ -1387,6 +1391,7 @@ void ExtJSTest::testJSEvent()
|
|||||||
"all.invoke(p1);"
|
"all.invoke(p1);"
|
||||||
"}"
|
"}"
|
||||||
"}");
|
"}");
|
||||||
|
|
||||||
assert (result == expected);
|
assert (result == expected);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
<?xml version="1.0" encoding="Windows-1252"?>
|
<?xml version="1.0" encoding="Windows-1252"?>
|
||||||
<VisualStudioProject
|
<VisualStudioProject
|
||||||
ProjectType="Visual C++"
|
ProjectType="Visual C++"
|
||||||
Version="9,00"
|
Version="9.00"
|
||||||
Name="WebWidgets"
|
Name="WebWidgets"
|
||||||
ProjectGUID="{8962DAD7-4F7B-46D0-A451-8D3476606890}"
|
ProjectGUID="{8962DAD7-4F7B-46D0-A451-8D3476606890}"
|
||||||
RootNamespace="WebWidgets"
|
RootNamespace="WebWidgets"
|
||||||
|
|||||||
@@ -64,9 +64,15 @@ public:
|
|||||||
Button(const std::string& name);
|
Button(const std::string& name);
|
||||||
/// Creates a Button with the given name.
|
/// Creates a Button with the given name.
|
||||||
|
|
||||||
|
explicit Button(const char* pName);
|
||||||
|
/// Creates a Button with the given name.
|
||||||
|
|
||||||
Button(const std::string& name, const std::string& lblTxt);
|
Button(const std::string& name, const std::string& lblTxt);
|
||||||
/// Creates a Button with the given name and lblTxt.
|
/// Creates a Button with the given name and lblTxt.
|
||||||
|
|
||||||
|
explicit Button(const char* pName, const char* pLblTxt);
|
||||||
|
/// Creates a Button with the given name and lblTxt.
|
||||||
|
|
||||||
Button();
|
Button();
|
||||||
/// Creates an anonymous Button.
|
/// Creates an anonymous Button.
|
||||||
|
|
||||||
@@ -77,6 +83,9 @@ protected:
|
|||||||
Button(const std::string& name, const std::type_info& type);
|
Button(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a Button and assigns it the given name.
|
/// Creates a Button and assigns it the given name.
|
||||||
|
|
||||||
|
explicit Button(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a Button and assigns it the given name.
|
||||||
|
|
||||||
Button(const std::type_info& type);
|
Button(const std::type_info& type);
|
||||||
/// Creates a Button.
|
/// Creates a Button.
|
||||||
|
|
||||||
|
|||||||
@@ -75,6 +75,9 @@ public:
|
|||||||
ComboBox(const std::string& name);
|
ComboBox(const std::string& name);
|
||||||
/// Creates a named ComboBox
|
/// Creates a named ComboBox
|
||||||
|
|
||||||
|
explicit ComboBox(const char* pName);
|
||||||
|
/// Creates a named ComboBox
|
||||||
|
|
||||||
std::vector<Any>::const_iterator begin() const;
|
std::vector<Any>::const_iterator begin() const;
|
||||||
/// ConstIterator to all elements
|
/// ConstIterator to all elements
|
||||||
|
|
||||||
@@ -123,6 +126,9 @@ protected:
|
|||||||
ComboBox(const std::string& name, const std::type_info& type);
|
ComboBox(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a DateField and assigns it the given name.
|
/// Creates a DateField and assigns it the given name.
|
||||||
|
|
||||||
|
explicit ComboBox(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a DateField and assigns it the given name.
|
||||||
|
|
||||||
ComboBox(const std::type_info& type);
|
ComboBox(const std::type_info& type);
|
||||||
/// Creates a DateField.
|
/// Creates a DateField.
|
||||||
|
|
||||||
|
|||||||
@@ -62,6 +62,9 @@ public:
|
|||||||
DateField(const std::string& name);
|
DateField(const std::string& name);
|
||||||
/// Creates a named DateField with a simple Y-m-d format
|
/// Creates a named DateField with a simple Y-m-d format
|
||||||
|
|
||||||
|
explicit DateField(const char* pName);
|
||||||
|
/// Creates a named DateField with a simple Y-m-d format
|
||||||
|
|
||||||
void setFormat(const std::string& dateFormat);
|
void setFormat(const std::string& dateFormat);
|
||||||
/// Sets a format string as defined in Poco::DateFormat, Poco::DateFormatter
|
/// Sets a format string as defined in Poco::DateFormat, Poco::DateFormatter
|
||||||
|
|
||||||
@@ -78,6 +81,10 @@ protected:
|
|||||||
DateField(const std::string& name, const std::type_info& type);
|
DateField(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a DateField and assigns it the given name.
|
/// Creates a DateField and assigns it the given name.
|
||||||
|
|
||||||
|
|
||||||
|
explicit DateField(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a DateField and assigns it the given name.
|
||||||
|
|
||||||
DateField(const std::type_info& type);
|
DateField(const std::type_info& type);
|
||||||
/// Creates a DateField.
|
/// Creates a DateField.
|
||||||
|
|
||||||
|
|||||||
@@ -76,6 +76,9 @@ public:
|
|||||||
Form(const std::string& name, const Poco::URI& uri);
|
Form(const std::string& name, const Poco::URI& uri);
|
||||||
/// Creates a Form with the given name.
|
/// Creates a Form with the given name.
|
||||||
|
|
||||||
|
explicit Form(const char* pName, const Poco::URI& uri);
|
||||||
|
/// Creates a Form with the given name.
|
||||||
|
|
||||||
void setMethod(const std::string& method);
|
void setMethod(const std::string& method);
|
||||||
/// Sets the HTTP request method for submitting the form.
|
/// Sets the HTTP request method for submitting the form.
|
||||||
|
|
||||||
@@ -115,6 +118,9 @@ protected:
|
|||||||
Form(const std::string& name, const std::type_info& type, const Poco::URI& uri);
|
Form(const std::string& name, const std::type_info& type, const Poco::URI& uri);
|
||||||
/// Creates a Form and assigns it the given name.
|
/// Creates a Form and assigns it the given name.
|
||||||
|
|
||||||
|
explicit Form(const char* pName, const std::type_info& type, const Poco::URI& uri);
|
||||||
|
/// Creates a Form and assigns it the given name.
|
||||||
|
|
||||||
Form(const std::type_info& type, const Poco::URI& uri);
|
Form(const std::type_info& type, const Poco::URI& uri);
|
||||||
/// Creates a Form.
|
/// Creates a Form.
|
||||||
|
|
||||||
|
|||||||
@@ -59,9 +59,15 @@ public:
|
|||||||
Label(const std::string& name);
|
Label(const std::string& name);
|
||||||
/// Creates a Label with the given name.
|
/// Creates a Label with the given name.
|
||||||
|
|
||||||
|
explicit Label(const char* pName);
|
||||||
|
/// Creates a Label with the given name.
|
||||||
|
|
||||||
Label(const std::string& name, const std::string& text);
|
Label(const std::string& name, const std::string& text);
|
||||||
/// Creates a Label with the given name and text.
|
/// Creates a Label with the given name and text.
|
||||||
|
|
||||||
|
Label(const char* pName, const char* pText);
|
||||||
|
/// Creates a Label with the given name and text.
|
||||||
|
|
||||||
// View
|
// View
|
||||||
void setText(const std::string& text);
|
void setText(const std::string& text);
|
||||||
|
|
||||||
@@ -75,6 +81,9 @@ protected:
|
|||||||
Label(const std::string& name, const std::type_info& type);
|
Label(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a Label and assigns it the given name.
|
/// Creates a Label and assigns it the given name.
|
||||||
|
|
||||||
|
explicit Label(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a Label and assigns it the given name.
|
||||||
|
|
||||||
Label(const std::type_info& type);
|
Label(const std::type_info& type);
|
||||||
/// Creates a Label.
|
/// Creates a Label.
|
||||||
|
|
||||||
|
|||||||
@@ -73,6 +73,9 @@ public:
|
|||||||
ListBox(const std::string& name);
|
ListBox(const std::string& name);
|
||||||
/// Creates a ListBox with the given name.
|
/// Creates a ListBox with the given name.
|
||||||
|
|
||||||
|
explicit ListBox(const char* pName);
|
||||||
|
/// Creates a ListBox with the given name.
|
||||||
|
|
||||||
ListBox();
|
ListBox();
|
||||||
/// Creates an anonymous TextField.
|
/// Creates an anonymous TextField.
|
||||||
|
|
||||||
@@ -163,12 +166,18 @@ protected:
|
|||||||
ListBox(const std::string& name, const std::type_info& type);
|
ListBox(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a ListBox and assigns it the given name.
|
/// Creates a ListBox and assigns it the given name.
|
||||||
|
|
||||||
|
explicit ListBox(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a ListBox and assigns it the given name.
|
||||||
|
|
||||||
ListBox(const std::type_info& type);
|
ListBox(const std::type_info& type);
|
||||||
/// Creates a ListBox.
|
/// Creates a ListBox.
|
||||||
|
|
||||||
ListBox(const std::string& name, const std::type_info& type, ListBoxCell::Ptr ptrCell);
|
ListBox(const std::string& name, const std::type_info& type, ListBoxCell::Ptr ptrCell);
|
||||||
/// Creates a ListBox and assigns it the given name.
|
/// Creates a ListBox and assigns it the given name.
|
||||||
|
|
||||||
|
explicit ListBox(const char* pName, const std::type_info& type, ListBoxCell::Ptr ptrCell);
|
||||||
|
/// Creates a ListBox and assigns it the given name.
|
||||||
|
|
||||||
ListBox(const std::type_info& type, ListBoxCell::Ptr ptrCell);
|
ListBox(const std::type_info& type, ListBoxCell::Ptr ptrCell);
|
||||||
/// Creates a ListBox.
|
/// Creates a ListBox.
|
||||||
|
|
||||||
|
|||||||
@@ -60,10 +60,16 @@ public:
|
|||||||
NumberField(const std::string& name, Formatter::Ptr pF = new IntFormatter());
|
NumberField(const std::string& name, Formatter::Ptr pF = new IntFormatter());
|
||||||
/// Creates a named NumberField.
|
/// Creates a named NumberField.
|
||||||
|
|
||||||
|
explicit NumberField(const char* pName, Formatter::Ptr pF = new IntFormatter());
|
||||||
|
/// Creates a named NumberField.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
NumberField(const std::string& name, const std::type_info& type);
|
NumberField(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a NumberField and assigns it the given name.
|
/// Creates a NumberField and assigns it the given name.
|
||||||
|
|
||||||
|
explicit NumberField(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a NumberField and assigns it the given name.
|
||||||
|
|
||||||
NumberField(const std::type_info& type);
|
NumberField(const std::type_info& type);
|
||||||
/// Creates a NumberField.
|
/// Creates a NumberField.
|
||||||
|
|
||||||
|
|||||||
@@ -83,6 +83,9 @@ public:
|
|||||||
Page(const std::string& name);
|
Page(const std::string& name);
|
||||||
/// Creates a Page with the given name.
|
/// Creates a Page with the given name.
|
||||||
|
|
||||||
|
explicit Page(const char* pName);
|
||||||
|
/// Creates a Page with the given name.
|
||||||
|
|
||||||
// View
|
// View
|
||||||
void setText(const std::string& text);
|
void setText(const std::string& text);
|
||||||
|
|
||||||
@@ -136,6 +139,9 @@ protected:
|
|||||||
Page(const std::string& name, const std::type_info& type);
|
Page(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a Page and assigns it the given name.
|
/// Creates a Page and assigns it the given name.
|
||||||
|
|
||||||
|
explicit Page(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a Page and assigns it the given name.
|
||||||
|
|
||||||
Page(const std::type_info& type);
|
Page(const std::type_info& type);
|
||||||
/// Creates a Page.
|
/// Creates a Page.
|
||||||
|
|
||||||
|
|||||||
@@ -59,10 +59,16 @@ public:
|
|||||||
PasswordField(const std::string& name);
|
PasswordField(const std::string& name);
|
||||||
/// Creates a named PasswordField.
|
/// Creates a named PasswordField.
|
||||||
|
|
||||||
|
explicit PasswordField(const char* pName);
|
||||||
|
/// Creates a named PasswordField.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
PasswordField(const std::string& name, const std::type_info& type);
|
PasswordField(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a PasswordField and assigns it the given name.
|
/// Creates a PasswordField and assigns it the given name.
|
||||||
|
|
||||||
|
explicit PasswordField(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a PasswordField and assigns it the given name.
|
||||||
|
|
||||||
PasswordField(const std::type_info& type);
|
PasswordField(const std::type_info& type);
|
||||||
/// Creates a PasswordField.
|
/// Creates a PasswordField.
|
||||||
|
|
||||||
|
|||||||
@@ -65,19 +65,31 @@ public:
|
|||||||
SubmitButton(const std::string& name);
|
SubmitButton(const std::string& name);
|
||||||
/// Creates a SubmitButton with the given name.
|
/// Creates a SubmitButton with the given name.
|
||||||
|
|
||||||
|
explicit SubmitButton(const char* pName);
|
||||||
|
/// Creates a SubmitButton with the given name.
|
||||||
|
|
||||||
SubmitButton(const std::string& name, const std::string& lblTxt);
|
SubmitButton(const std::string& name, const std::string& lblTxt);
|
||||||
/// Creates a SubmitButton with the given name and label text.
|
/// Creates a SubmitButton with the given name and label text.
|
||||||
|
|
||||||
|
explicit SubmitButton(const char* pName, const char* pLblTxt);
|
||||||
|
/// Creates a SubmitButton with the given name and label text.
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
SubmitButton(const std::string& name, const std::type_info& type);
|
SubmitButton(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a SubmitButton and assigns it the given name.
|
/// Creates a SubmitButton and assigns it the given name.
|
||||||
|
|
||||||
|
explicit SubmitButton(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a SubmitButton and assigns it the given name.
|
||||||
|
|
||||||
SubmitButton(const std::type_info& type);
|
SubmitButton(const std::type_info& type);
|
||||||
/// Creates a SubmitButton.
|
/// Creates a SubmitButton.
|
||||||
|
|
||||||
SubmitButton(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
SubmitButton(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
/// Creates a SubmitButton and assigns it the given name.
|
/// Creates a SubmitButton and assigns it the given name.
|
||||||
|
|
||||||
|
explicit SubmitButton(const char* pName, const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
|
/// Creates a SubmitButton and assigns it the given name.
|
||||||
|
|
||||||
SubmitButton(const std::type_info& type, Cell::Ptr ptrCell);
|
SubmitButton(const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
/// Creates a SubmitButton.
|
/// Creates a SubmitButton.
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ public:
|
|||||||
TabView(const std::string& name);
|
TabView(const std::string& name);
|
||||||
/// Creates a TabView with the given name.
|
/// Creates a TabView with the given name.
|
||||||
|
|
||||||
|
explicit TabView(const char* pName);
|
||||||
|
/// Creates a TabView with the given name.
|
||||||
|
|
||||||
void setActiveView(ContainerView::ViewVec::size_type pos);
|
void setActiveView(ContainerView::ViewVec::size_type pos);
|
||||||
/// Sets the active view, pos must be valid. If pos is NONE_SELECTED no view is active
|
/// Sets the active view, pos must be valid. If pos is NONE_SELECTED no view is active
|
||||||
|
|
||||||
@@ -71,6 +74,9 @@ protected:
|
|||||||
TabView(const std::string& name, const std::type_info& type);
|
TabView(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a TabView and assigns it the given name.
|
/// Creates a TabView and assigns it the given name.
|
||||||
|
|
||||||
|
explicit TabView(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a TabView and assigns it the given name.
|
||||||
|
|
||||||
TabView(const std::type_info& type);
|
TabView(const std::type_info& type);
|
||||||
/// Creates a TabView.
|
/// Creates a TabView.
|
||||||
|
|
||||||
|
|||||||
@@ -61,6 +61,9 @@ public:
|
|||||||
TextEdit(const std::string& name);
|
TextEdit(const std::string& name);
|
||||||
/// Creates a TextField with the given name.
|
/// Creates a TextField with the given name.
|
||||||
|
|
||||||
|
explicit TextEdit(const char* pName);
|
||||||
|
/// Creates a TextField with the given name.
|
||||||
|
|
||||||
TextEdit();
|
TextEdit();
|
||||||
/// Creates an anonymous TextField.
|
/// Creates an anonymous TextField.
|
||||||
|
|
||||||
@@ -88,12 +91,18 @@ protected:
|
|||||||
TextEdit(const std::string& name, const std::type_info& type);
|
TextEdit(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a TextEdit and assigns it the given name.
|
/// Creates a TextEdit and assigns it the given name.
|
||||||
|
|
||||||
|
explicit TextEdit(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a TextEdit and assigns it the given name.
|
||||||
|
|
||||||
TextEdit(const std::type_info& type);
|
TextEdit(const std::type_info& type);
|
||||||
/// Creates a TextEdit.
|
/// Creates a TextEdit.
|
||||||
|
|
||||||
TextEdit(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
TextEdit(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
/// Creates a TextEdit and assigns it the given name.
|
/// Creates a TextEdit and assigns it the given name.
|
||||||
|
|
||||||
|
explicit TextEdit(const char* pName, const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
|
/// Creates a TextEdit and assigns it the given name.
|
||||||
|
|
||||||
TextEdit(const std::type_info& type, Cell::Ptr ptrCell);
|
TextEdit(const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
/// Creates a TextEdit.
|
/// Creates a TextEdit.
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,9 @@ public:
|
|||||||
TextField(const std::string& name);
|
TextField(const std::string& name);
|
||||||
/// Creates a TextField with the given name.
|
/// Creates a TextField with the given name.
|
||||||
|
|
||||||
|
explicit TextField(const char* pName);
|
||||||
|
/// Creates a TextField with the given name.
|
||||||
|
|
||||||
TextField();
|
TextField();
|
||||||
/// Creates an anonymous TextField.
|
/// Creates an anonymous TextField.
|
||||||
|
|
||||||
@@ -96,12 +99,18 @@ protected:
|
|||||||
TextField(const std::string& name, const std::type_info& type);
|
TextField(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a TextField and assigns it the given name.
|
/// Creates a TextField and assigns it the given name.
|
||||||
|
|
||||||
|
explicit TextField(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a TextField and assigns it the given name.
|
||||||
|
|
||||||
TextField(const std::type_info& type);
|
TextField(const std::type_info& type);
|
||||||
/// Creates a TextField.
|
/// Creates a TextField.
|
||||||
|
|
||||||
TextField(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
TextField(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
/// Creates a TextField and assigns it the given name.
|
/// Creates a TextField and assigns it the given name.
|
||||||
|
|
||||||
|
explicit TextField(const char* pName, const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
|
/// Creates a TextField and assigns it the given name.
|
||||||
|
|
||||||
TextField(const std::type_info& type, Cell::Ptr ptrCell);
|
TextField(const std::type_info& type, Cell::Ptr ptrCell);
|
||||||
/// Creates a TextField.
|
/// Creates a TextField.
|
||||||
|
|
||||||
|
|||||||
@@ -72,6 +72,9 @@ public:
|
|||||||
TimeField(const std::string& name);
|
TimeField(const std::string& name);
|
||||||
/// Creates a named TimeField.
|
/// Creates a named TimeField.
|
||||||
|
|
||||||
|
explicit TimeField(const char* pName);
|
||||||
|
/// Creates a named TimeField.
|
||||||
|
|
||||||
TimeField::Format getFormat() const;
|
TimeField::Format getFormat() const;
|
||||||
/// Returns the time format
|
/// Returns the time format
|
||||||
|
|
||||||
@@ -89,6 +92,9 @@ protected:
|
|||||||
TimeField(const std::string& name, const std::type_info& type);
|
TimeField(const std::string& name, const std::type_info& type);
|
||||||
/// Creates a TimeField and assigns it the given name.
|
/// Creates a TimeField and assigns it the given name.
|
||||||
|
|
||||||
|
explicit TimeField(const char* pName, const std::type_info& type);
|
||||||
|
/// Creates a TimeField and assigns it the given name.
|
||||||
|
|
||||||
TimeField(const std::type_info& type);
|
TimeField(const std::type_info& type);
|
||||||
/// Creates a TimeField.
|
/// Creates a TimeField.
|
||||||
|
|
||||||
|
|||||||
@@ -63,6 +63,13 @@ Button::Button(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Button::Button(const char* pName, const std::type_info& type):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Button::Button(const std::type_info& type):
|
Button::Button(const std::type_info& type):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -77,6 +84,13 @@ Button::Button(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Button::Button(const char* pName):
|
||||||
|
Control(std::string(pName), typeid(Button))
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Button::Button(const std::string& name, const std::string& txt):
|
Button::Button(const std::string& name, const std::string& txt):
|
||||||
Control(name, typeid(Button))
|
Control(name, typeid(Button))
|
||||||
{
|
{
|
||||||
@@ -85,6 +99,14 @@ Button::Button(const std::string& name, const std::string& txt):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Button::Button(const char* pName, const char* pTxt):
|
||||||
|
Control(std::string(pName), typeid(Button))
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
setText(std::string(pTxt));
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Button::Button():
|
Button::Button():
|
||||||
Control(typeid(Button))
|
Control(typeid(Button))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -53,6 +53,16 @@ ComboBox::ComboBox(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ComboBox::ComboBox(const char* pName, const std::type_info& type):
|
||||||
|
TextField(std::string(pName), type, new ComboBoxCell(this))
|
||||||
|
{
|
||||||
|
ComboBoxCell::Ptr pCell = cell<ComboBoxCell>();
|
||||||
|
pCell->selected += Poco::delegate(this, &ComboBox::fireSelected);
|
||||||
|
pCell->beforeSelect += Poco::delegate(this, &ComboBox::fireBeforeSelect);
|
||||||
|
pCell->afterLoad = delegate(*this, &ComboBox::fireAfterLoad);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ComboBox::ComboBox(const std::type_info& type):
|
ComboBox::ComboBox(const std::type_info& type):
|
||||||
TextField(type, new ComboBoxCell(this))
|
TextField(type, new ComboBoxCell(this))
|
||||||
{
|
{
|
||||||
@@ -73,6 +83,16 @@ ComboBox::ComboBox(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ComboBox::ComboBox(const char* pName):
|
||||||
|
TextField(std::string(pName), typeid(ComboBox), new ComboBoxCell(this))
|
||||||
|
{
|
||||||
|
ComboBoxCell::Ptr pCell = cell<ComboBoxCell>();
|
||||||
|
pCell->selected += Poco::delegate(this, &ComboBox::fireSelected);
|
||||||
|
pCell->beforeSelect += Poco::delegate(this, &ComboBox::fireBeforeSelect);
|
||||||
|
pCell->afterLoad = delegate(*this, &ComboBox::fireAfterLoad);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ComboBox::ComboBox():
|
ComboBox::ComboBox():
|
||||||
TextField(typeid(ComboBox), new ComboBoxCell(this))
|
TextField(typeid(ComboBox), new ComboBoxCell(this))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ DateField::DateField(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DateField::DateField(const char* pName, const std::type_info& type):
|
||||||
|
TextField(std::string(pName), type, new DateFieldCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
DateField::DateField(const std::type_info& type):
|
DateField::DateField(const std::type_info& type):
|
||||||
TextField(type, new DateFieldCell(this))
|
TextField(type, new DateFieldCell(this))
|
||||||
{
|
{
|
||||||
@@ -60,6 +66,12 @@ DateField::DateField(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
DateField::DateField(const char* pName):
|
||||||
|
TextField(std::string(pName), typeid(DateField), new DateFieldCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
DateField::DateField():
|
DateField::DateField():
|
||||||
TextField(typeid(DateField), new DateFieldCell(this))
|
TextField(typeid(DateField), new DateFieldCell(this))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -72,6 +72,16 @@ Form::Form(const std::string& name, const Poco::URI& uri):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Form::Form(const char* pName, const Poco::URI& uri):
|
||||||
|
ContainerView(std::string(pName), typeid(Form)),
|
||||||
|
_method(METHOD_POST),
|
||||||
|
_encoding(ENCODING_MULTIPART),
|
||||||
|
_uri(uri),
|
||||||
|
_namedChildren()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Form::Form(const std::string& name, const std::type_info& type, const Poco::URI& uri):
|
Form::Form(const std::string& name, const std::type_info& type, const Poco::URI& uri):
|
||||||
ContainerView(name, type),
|
ContainerView(name, type),
|
||||||
_method(METHOD_POST),
|
_method(METHOD_POST),
|
||||||
@@ -82,6 +92,16 @@ Form::Form(const std::string& name, const std::type_info& type, const Poco::URI&
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Form::Form(const char* pName, const std::type_info& type, const Poco::URI& uri):
|
||||||
|
ContainerView(std::string(pName), type),
|
||||||
|
_method(METHOD_POST),
|
||||||
|
_encoding(ENCODING_MULTIPART),
|
||||||
|
_uri(uri),
|
||||||
|
_namedChildren()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Form::Form(const std::type_info& type, const Poco::URI& uri):
|
Form::Form(const std::type_info& type, const Poco::URI& uri):
|
||||||
ContainerView(type),
|
ContainerView(type),
|
||||||
_method(METHOD_POST),
|
_method(METHOD_POST),
|
||||||
|
|||||||
@@ -53,6 +53,12 @@ Label::Label(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Label::Label(const char* pName):
|
||||||
|
View(std::string(pName), typeid(Label))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Label::Label(const std::string& name, const std::string& text):
|
Label::Label(const std::string& name, const std::string& text):
|
||||||
View(name, typeid(Label)),
|
View(name, typeid(Label)),
|
||||||
_text(text)
|
_text(text)
|
||||||
@@ -60,12 +66,25 @@ Label::Label(const std::string& name, const std::string& text):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Label::Label(const char* pName, const char* pText):
|
||||||
|
View(std::string(pName), typeid(Label)),
|
||||||
|
_text(pText)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Label::Label(const std::string& name, const std::type_info& type):
|
Label::Label(const std::string& name, const std::type_info& type):
|
||||||
View(name, type)
|
View(name, type)
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Label::Label(const char* pName, const std::type_info& type):
|
||||||
|
View(std::string(pName), type)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Label::Label(const std::type_info& type):
|
Label::Label(const std::type_info& type):
|
||||||
View(type)
|
View(type)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ ListBox::ListBox(const std::string& name, const std::type_info& type, ListBoxCel
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ListBox::ListBox(const char* pName, const std::type_info& type, ListBoxCell::Ptr ptrCell):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init(ptrCell);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ListBox::ListBox(const std::type_info& type, ListBoxCell::Ptr ptrCell):
|
ListBox::ListBox(const std::type_info& type, ListBoxCell::Ptr ptrCell):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -64,6 +71,13 @@ ListBox::ListBox(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ListBox::ListBox(const char* pName, const std::type_info& type):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ListBox::ListBox(const std::type_info& type):
|
ListBox::ListBox(const std::type_info& type):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -78,6 +92,13 @@ ListBox::ListBox(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
ListBox::ListBox(const char* pName):
|
||||||
|
Control(std::string(pName), typeid(ListBox))
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
ListBox::ListBox():
|
ListBox::ListBox():
|
||||||
Control(typeid(ListBox))
|
Control(typeid(ListBox))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ NumberField::NumberField(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NumberField::NumberField(const char* pName, const std::type_info& type):
|
||||||
|
TextField(std::string(pName), type, new NumberFieldCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
NumberField::NumberField(const std::type_info& type):
|
NumberField::NumberField(const std::type_info& type):
|
||||||
TextField(type, new NumberFieldCell(this))
|
TextField(type, new NumberFieldCell(this))
|
||||||
{
|
{
|
||||||
@@ -60,6 +66,12 @@ NumberField::NumberField(const std::string& name, Formatter::Ptr pF):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
NumberField::NumberField(const char* pName, Formatter::Ptr pF):
|
||||||
|
TextField(std::string(pName), typeid(NumberField), new NumberFieldCell(this, pF))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
NumberField::NumberField():
|
NumberField::NumberField():
|
||||||
TextField(typeid(NumberField), new NumberFieldCell(this))
|
TextField(typeid(NumberField), new NumberFieldCell(this))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -62,6 +62,14 @@ Page::Page(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Page::Page(const char* pName):
|
||||||
|
ContainerView(std::string(pName), typeid(Page)),
|
||||||
|
_text(),
|
||||||
|
_rm()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Page::Page(const std::string& name, const std::type_info& type):
|
Page::Page(const std::string& name, const std::type_info& type):
|
||||||
ContainerView(name, type),
|
ContainerView(name, type),
|
||||||
_text(),
|
_text(),
|
||||||
@@ -70,6 +78,14 @@ Page::Page(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Page::Page(const char* pName, const std::type_info& type):
|
||||||
|
ContainerView(std::string(pName), type),
|
||||||
|
_text(),
|
||||||
|
_rm()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
Page::Page(const std::type_info& type):
|
Page::Page(const std::type_info& type):
|
||||||
ContainerView(type),
|
ContainerView(type),
|
||||||
_text(),
|
_text(),
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ PasswordField::PasswordField(const std::string& name, const std::type_info& type
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PasswordField::PasswordField(const char* pName, const std::type_info& type):
|
||||||
|
TextField(std::string(pName), type, new PasswordFieldCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
PasswordField::PasswordField(const std::type_info& type):
|
PasswordField::PasswordField(const std::type_info& type):
|
||||||
TextField(type, new PasswordFieldCell(this))
|
TextField(type, new PasswordFieldCell(this))
|
||||||
{
|
{
|
||||||
@@ -60,6 +66,12 @@ PasswordField::PasswordField(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
PasswordField::PasswordField(const char* pName):
|
||||||
|
TextField(std::string(pName), typeid(PasswordField), new PasswordFieldCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
PasswordField::PasswordField():
|
PasswordField::PasswordField():
|
||||||
TextField(typeid(PasswordField), new PasswordFieldCell(this))
|
TextField(typeid(PasswordField), new PasswordFieldCell(this))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -48,6 +48,12 @@ SubmitButton::SubmitButton(const std::string& name, const std::type_info& type,
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SubmitButton::SubmitButton(const char* pName, const std::type_info& type, Cell::Ptr ptrCell):
|
||||||
|
Button(std::string(pName), type, ptrCell)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SubmitButton::SubmitButton(const std::type_info& type, Cell::Ptr ptrCell):
|
SubmitButton::SubmitButton(const std::type_info& type, Cell::Ptr ptrCell):
|
||||||
Button(type, ptrCell)
|
Button(type, ptrCell)
|
||||||
{
|
{
|
||||||
@@ -60,16 +66,29 @@ SubmitButton::SubmitButton(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SubmitButton::SubmitButton(const char* pName, const std::type_info& type):
|
||||||
|
Button(std::string(pName), type, new SubmitButtonCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SubmitButton::SubmitButton(const std::type_info& type):
|
SubmitButton::SubmitButton(const std::type_info& type):
|
||||||
Button(type, new SubmitButtonCell(this))
|
Button(type, new SubmitButtonCell(this))
|
||||||
{
|
{
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
SubmitButton::SubmitButton(const std::string& name, const std::string& lbl):
|
SubmitButton::SubmitButton(const std::string& name, const std::string& lblTxt):
|
||||||
Button(name, typeid(SubmitButton), new SubmitButtonCell(this))
|
Button(name, typeid(SubmitButton), new SubmitButtonCell(this))
|
||||||
{
|
{
|
||||||
setText(lbl);
|
setText(lblTxt);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SubmitButton::SubmitButton(const char* pName, const char* pLblTxt):
|
||||||
|
Button(std::string(pName), typeid(SubmitButton), new SubmitButtonCell(this))
|
||||||
|
{
|
||||||
|
setText(std::string(pLblTxt));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@@ -79,6 +98,12 @@ SubmitButton::SubmitButton(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
SubmitButton::SubmitButton(const char* pName):
|
||||||
|
Button(std::string(pName), typeid(SubmitButton), new SubmitButtonCell(this))
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
SubmitButton::SubmitButton():
|
SubmitButton::SubmitButton():
|
||||||
Button(typeid(SubmitButton), new SubmitButtonCell(this))
|
Button(typeid(SubmitButton), new SubmitButtonCell(this))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -61,6 +61,13 @@ TabView::TabView(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TabView::TabView(const char* pName):
|
||||||
|
ContainerView(std::string(pName), typeid(TabView)),
|
||||||
|
_activeView(NO_VIEW_SELECTED)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TabView::TabView(const std::string& name, const std::type_info& type):
|
TabView::TabView(const std::string& name, const std::type_info& type):
|
||||||
ContainerView(name, type),
|
ContainerView(name, type),
|
||||||
_activeView(NO_VIEW_SELECTED)
|
_activeView(NO_VIEW_SELECTED)
|
||||||
@@ -68,6 +75,13 @@ TabView::TabView(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TabView::TabView(const char* pName, const std::type_info& type):
|
||||||
|
ContainerView(std::string(pName), type),
|
||||||
|
_activeView(NO_VIEW_SELECTED)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TabView::TabView(const std::type_info& type):
|
TabView::TabView(const std::type_info& type):
|
||||||
ContainerView(type),
|
ContainerView(type),
|
||||||
_activeView(NO_VIEW_SELECTED)
|
_activeView(NO_VIEW_SELECTED)
|
||||||
|
|||||||
@@ -49,6 +49,13 @@ TextEdit::TextEdit(const std::string& name, const std::type_info& type, Cell::Pt
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TextEdit::TextEdit(const char* pName, const std::type_info& type, Cell::Ptr ptrCell):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init(ptrCell);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TextEdit::TextEdit(const std::type_info& type, Cell::Ptr ptrCell):
|
TextEdit::TextEdit(const std::type_info& type, Cell::Ptr ptrCell):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -63,6 +70,14 @@ TextEdit::TextEdit(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TextEdit::TextEdit(const char* pName, const std::type_info& type):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
TextEdit::TextEdit(const std::type_info& type):
|
TextEdit::TextEdit(const std::type_info& type):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -77,6 +92,13 @@ TextEdit::TextEdit(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TextEdit::TextEdit(const char* pName):
|
||||||
|
Control(std::string(pName), typeid(TextEdit))
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TextEdit::TextEdit():
|
TextEdit::TextEdit():
|
||||||
Control(typeid(TextEdit))
|
Control(typeid(TextEdit))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,6 +50,13 @@ TextField::TextField(const std::string& name, const std::type_info& type, Cell::
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TextField::TextField(const char* pName, const std::type_info& type, Cell::Ptr ptrCell):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init(ptrCell);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TextField::TextField(const std::type_info& type, Cell::Ptr ptrCell):
|
TextField::TextField(const std::type_info& type, Cell::Ptr ptrCell):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -64,6 +71,13 @@ TextField::TextField(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TextField::TextField(const char* pName, const std::type_info& type):
|
||||||
|
Control(std::string(pName), type)
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TextField::TextField(const std::type_info& type):
|
TextField::TextField(const std::type_info& type):
|
||||||
Control(type)
|
Control(type)
|
||||||
{
|
{
|
||||||
@@ -87,6 +101,13 @@ TextField::TextField(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TextField::TextField(const char* pName):
|
||||||
|
Control(std::string(pName), typeid(TextField))
|
||||||
|
{
|
||||||
|
init();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TextField::TextField():
|
TextField::TextField():
|
||||||
Control(typeid(TextField))
|
Control(typeid(TextField))
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -50,6 +50,14 @@ TimeField::TimeField(const std::string& name, const std::type_info& type):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TimeField::TimeField(const char* pName, const std::type_info& type):
|
||||||
|
TextField(std::string(pName), type, new TimeFieldCell(this)),
|
||||||
|
_pMyCell(0)
|
||||||
|
{
|
||||||
|
_pMyCell = cell<TimeFieldCell>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TimeField::TimeField(const std::type_info& type):
|
TimeField::TimeField(const std::type_info& type):
|
||||||
TextField(type, new TimeFieldCell(this)),
|
TextField(type, new TimeFieldCell(this)),
|
||||||
_pMyCell(0)
|
_pMyCell(0)
|
||||||
@@ -66,6 +74,14 @@ TimeField::TimeField(const std::string& name):
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
TimeField::TimeField(const char* pName):
|
||||||
|
TextField(std::string(pName), typeid(TimeField), new TimeFieldCell(this)),
|
||||||
|
_pMyCell(0)
|
||||||
|
{
|
||||||
|
_pMyCell = cell<TimeFieldCell>();
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
TimeField::TimeField():
|
TimeField::TimeField():
|
||||||
TextField(typeid(TimeField), new TimeFieldCell(this)),
|
TextField(typeid(TimeField), new TimeFieldCell(this)),
|
||||||
_pMyCell(0)
|
_pMyCell(0)
|
||||||
|
|||||||
Reference in New Issue
Block a user