mirror of
https://github.com/pocoproject/poco.git
synced 2025-01-18 00:15:27 +01:00
Sun CC compilation fixes
This commit is contained in:
parent
21ca665427
commit
5ba59148d4
@ -49,7 +49,7 @@
|
||||
namespace Poco {
|
||||
namespace WebWidgets {
|
||||
|
||||
class Cell;
|
||||
class Cell;
|
||||
|
||||
namespace ExtJS {
|
||||
|
||||
|
@ -69,14 +69,13 @@ public:
|
||||
|
||||
|
||||
template <typename T>
|
||||
static void write(const T& t, std::ostream& out)
|
||||
inline void write(const T& t, std::ostream& out)
|
||||
{
|
||||
out << t;
|
||||
}
|
||||
|
||||
|
||||
template <>
|
||||
void write(const std::string& t, std::ostream& out)
|
||||
inline void write(const std::string& t, std::ostream& out)
|
||||
{
|
||||
out << "'" << Utility::safe(t) << "'";
|
||||
}
|
||||
@ -181,7 +180,6 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
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
|
||||
/// with ' ' but will be written as is
|
||||
@ -201,6 +199,13 @@ public:
|
||||
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)
|
||||
/// Writes the content of the table used to dynamically
|
||||
/// initialize Table Columns
|
||||
|
@ -53,32 +53,38 @@ TableCellHandlerFactory::TableCellHandlerFactory()
|
||||
{
|
||||
{
|
||||
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);
|
||||
}
|
||||
{
|
||||
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);
|
||||
}
|
||||
{
|
||||
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);
|
||||
}
|
||||
{
|
||||
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);
|
||||
}
|
||||
{
|
||||
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);
|
||||
}
|
||||
{
|
||||
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);
|
||||
}
|
||||
{
|
||||
|
@ -454,7 +454,6 @@ bool Utility::writeJSEvent(std::ostream& out, const std::string& eventName, cons
|
||||
out << "fn:" << fct << "{";
|
||||
writeFunctionCode(out, "all", delegates);
|
||||
out << "}"; //closes fn
|
||||
|
||||
}
|
||||
if (delayTime > 0)
|
||||
{
|
||||
|
@ -1188,7 +1188,11 @@ void ExtJSTest::testFunction()
|
||||
ptrBut2->setToolTip("click here to disable");
|
||||
ptrFrm->add(ptrBut2);
|
||||
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");
|
||||
std::ostringstream str;
|
||||
pHandle->writeData(ptrBut->cell<CheckButtonCell>(), str);
|
||||
@ -1387,6 +1391,7 @@ void ExtJSTest::testJSEvent()
|
||||
"all.invoke(p1);"
|
||||
"}"
|
||||
"}");
|
||||
|
||||
assert (result == expected);
|
||||
}
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
<?xml version="1.0" encoding="Windows-1252"?>
|
||||
<VisualStudioProject
|
||||
ProjectType="Visual C++"
|
||||
Version="9,00"
|
||||
Version="9.00"
|
||||
Name="WebWidgets"
|
||||
ProjectGUID="{8962DAD7-4F7B-46D0-A451-8D3476606890}"
|
||||
RootNamespace="WebWidgets"
|
||||
|
@ -64,9 +64,15 @@ public:
|
||||
Button(const std::string& 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);
|
||||
/// 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();
|
||||
/// Creates an anonymous Button.
|
||||
|
||||
@ -77,6 +83,9 @@ protected:
|
||||
Button(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a Button.
|
||||
|
||||
|
@ -75,6 +75,9 @@ public:
|
||||
ComboBox(const std::string& name);
|
||||
/// Creates a named ComboBox
|
||||
|
||||
explicit ComboBox(const char* pName);
|
||||
/// Creates a named ComboBox
|
||||
|
||||
std::vector<Any>::const_iterator begin() const;
|
||||
/// ConstIterator to all elements
|
||||
|
||||
@ -123,6 +126,9 @@ protected:
|
||||
ComboBox(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a DateField.
|
||||
|
||||
|
@ -62,6 +62,9 @@ public:
|
||||
DateField(const std::string& name);
|
||||
/// 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);
|
||||
/// 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);
|
||||
/// 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);
|
||||
/// Creates a DateField.
|
||||
|
||||
|
@ -75,6 +75,9 @@ public:
|
||||
|
||||
Form(const std::string& name, const Poco::URI& uri);
|
||||
/// 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);
|
||||
/// Sets the HTTP request method for submitting the form.
|
||||
@ -114,6 +117,9 @@ public:
|
||||
protected:
|
||||
Form(const std::string& name, const std::type_info& type, const Poco::URI& uri);
|
||||
/// 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);
|
||||
/// Creates a Form.
|
||||
|
@ -59,9 +59,15 @@ public:
|
||||
Label(const std::string& 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);
|
||||
/// 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
|
||||
void setText(const std::string& text);
|
||||
|
||||
@ -75,6 +81,9 @@ protected:
|
||||
Label(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a Label.
|
||||
|
||||
|
@ -73,6 +73,9 @@ public:
|
||||
ListBox(const std::string& name);
|
||||
/// Creates a ListBox with the given name.
|
||||
|
||||
explicit ListBox(const char* pName);
|
||||
/// Creates a ListBox with the given name.
|
||||
|
||||
ListBox();
|
||||
/// Creates an anonymous TextField.
|
||||
|
||||
@ -163,12 +166,18 @@ protected:
|
||||
ListBox(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a ListBox.
|
||||
|
||||
ListBox(const std::string& name, const std::type_info& type, ListBoxCell::Ptr ptrCell);
|
||||
/// 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);
|
||||
/// Creates a ListBox.
|
||||
|
||||
|
@ -60,10 +60,16 @@ public:
|
||||
NumberField(const std::string& name, Formatter::Ptr pF = new IntFormatter());
|
||||
/// Creates a named NumberField.
|
||||
|
||||
explicit NumberField(const char* pName, Formatter::Ptr pF = new IntFormatter());
|
||||
/// Creates a named NumberField.
|
||||
|
||||
protected:
|
||||
NumberField(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a NumberField.
|
||||
|
||||
|
@ -82,6 +82,9 @@ public:
|
||||
|
||||
Page(const std::string& name);
|
||||
/// Creates a Page with the given name.
|
||||
|
||||
explicit Page(const char* pName);
|
||||
/// Creates a Page with the given name.
|
||||
|
||||
// View
|
||||
void setText(const std::string& text);
|
||||
@ -135,6 +138,9 @@ public:
|
||||
protected:
|
||||
Page(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a Page.
|
||||
|
@ -59,9 +59,15 @@ public:
|
||||
PasswordField(const std::string& name);
|
||||
/// Creates a named PasswordField.
|
||||
|
||||
explicit PasswordField(const char* pName);
|
||||
/// Creates a named PasswordField.
|
||||
|
||||
protected:
|
||||
PasswordField(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a PasswordField.
|
||||
|
@ -64,20 +64,32 @@ public:
|
||||
|
||||
SubmitButton(const std::string& 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);
|
||||
/// 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:
|
||||
SubmitButton(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a SubmitButton.
|
||||
|
||||
SubmitButton(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
||||
/// 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);
|
||||
/// Creates a SubmitButton.
|
||||
|
||||
|
@ -61,6 +61,9 @@ public:
|
||||
TabView(const std::string& 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);
|
||||
/// Sets the active view, pos must be valid. If pos is NONE_SELECTED no view is active
|
||||
|
||||
@ -70,6 +73,9 @@ public:
|
||||
protected:
|
||||
TabView(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a TabView.
|
||||
|
@ -61,6 +61,9 @@ public:
|
||||
TextEdit(const std::string& name);
|
||||
/// Creates a TextField with the given name.
|
||||
|
||||
explicit TextEdit(const char* pName);
|
||||
/// Creates a TextField with the given name.
|
||||
|
||||
TextEdit();
|
||||
/// Creates an anonymous TextField.
|
||||
|
||||
@ -88,12 +91,18 @@ protected:
|
||||
TextEdit(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a TextEdit.
|
||||
|
||||
TextEdit(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
||||
/// 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);
|
||||
/// Creates a TextEdit.
|
||||
|
||||
|
@ -66,6 +66,9 @@ public:
|
||||
TextField(const std::string& name);
|
||||
/// Creates a TextField with the given name.
|
||||
|
||||
explicit TextField(const char* pName);
|
||||
/// Creates a TextField with the given name.
|
||||
|
||||
TextField();
|
||||
/// Creates an anonymous TextField.
|
||||
|
||||
@ -96,12 +99,18 @@ protected:
|
||||
TextField(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a TextField.
|
||||
|
||||
TextField(const std::string& name, const std::type_info& type, Cell::Ptr ptrCell);
|
||||
/// 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);
|
||||
/// Creates a TextField.
|
||||
|
||||
|
@ -72,6 +72,9 @@ public:
|
||||
TimeField(const std::string& name);
|
||||
/// Creates a named TimeField.
|
||||
|
||||
explicit TimeField(const char* pName);
|
||||
/// Creates a named TimeField.
|
||||
|
||||
TimeField::Format getFormat() const;
|
||||
/// Returns the time format
|
||||
|
||||
@ -89,6 +92,9 @@ protected:
|
||||
TimeField(const std::string& name, const std::type_info& type);
|
||||
/// 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);
|
||||
/// Creates a TimeField.
|
||||
|
||||
|
@ -62,6 +62,13 @@ Button::Button(const std::string& name, const std::type_info& type):
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
Button::Button(const char* pName, const std::type_info& type):
|
||||
Control(std::string(pName), type)
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
Button::Button(const std::type_info& 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):
|
||||
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():
|
||||
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):
|
||||
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():
|
||||
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):
|
||||
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():
|
||||
TextField(typeid(DateField), new DateFieldCell(this))
|
||||
{
|
||||
|
@ -71,6 +71,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):
|
||||
ContainerView(name, type),
|
||||
@ -81,6 +91,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):
|
||||
ContainerView(type),
|
||||
|
@ -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):
|
||||
View(name, typeid(Label)),
|
||||
_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):
|
||||
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):
|
||||
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):
|
||||
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):
|
||||
Control(type)
|
||||
{
|
||||
@ -76,6 +90,13 @@ ListBox::ListBox(const std::string& name):
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
ListBox::ListBox(const char* pName):
|
||||
Control(std::string(pName), typeid(ListBox))
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
ListBox::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):
|
||||
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():
|
||||
TextField(typeid(NumberField), new NumberFieldCell(this))
|
||||
{
|
||||
|
@ -61,6 +61,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):
|
||||
ContainerView(name, type),
|
||||
@ -69,6 +77,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):
|
||||
ContainerView(type),
|
||||
|
@ -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):
|
||||
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():
|
||||
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):
|
||||
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):
|
||||
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))
|
||||
{
|
||||
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():
|
||||
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):
|
||||
ContainerView(name, type),
|
||||
_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):
|
||||
ContainerView(type),
|
||||
_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):
|
||||
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):
|
||||
Control(type)
|
||||
{
|
||||
@ -75,6 +90,13 @@ TextEdit::TextEdit(const std::string& name):
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
TextEdit::TextEdit(const char* pName):
|
||||
Control(std::string(pName), typeid(TextEdit))
|
||||
{
|
||||
init();
|
||||
}
|
||||
|
||||
|
||||
TextEdit::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):
|
||||
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):
|
||||
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():
|
||||
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):
|
||||
TextField(type, new TimeFieldCell(this)),
|
||||
_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():
|
||||
TextField(typeid(TimeField), new TimeFieldCell(this)),
|
||||
_pMyCell(0)
|
||||
|
Loading…
x
Reference in New Issue
Block a user