extensions to frame

This commit is contained in:
Peter Schojer
2008-09-09 05:59:23 +00:00
parent ab06f0a999
commit 1fe9732a5c
4 changed files with 43 additions and 11 deletions

View File

@@ -44,7 +44,8 @@ namespace WebWidgets {
Frame::Frame():
View(typeid(Frame)),
_pChild(),
_title()
_title(),
_collapsible(false)
{
}
@@ -52,7 +53,8 @@ Frame::Frame():
Frame::Frame(const std::string& name):
View(name, typeid(Frame)),
_pChild(),
_title()
_title(),
_collapsible(false)
{
}
@@ -60,7 +62,8 @@ Frame::Frame(const std::string& name):
Frame::Frame(const std::string& name, const std::string& title):
View(name, typeid(Frame)),
_pChild(),
_title(title)
_title(title),
_collapsible(false)
{
}
@@ -68,7 +71,8 @@ Frame::Frame(const std::string& name, const std::string& title):
Frame::Frame(View::Ptr pChild):
View(typeid(Frame)),
_pChild(),
_title()
_title(),
_collapsible(false)
{
setChild(pChild);
}
@@ -77,7 +81,8 @@ Frame::Frame(View::Ptr pChild):
Frame::Frame(const std::string& name, View::Ptr pChild):
View(name, typeid(Frame)),
_pChild(),
_title()
_title(),
_collapsible(false)
{
setChild(pChild);
}
@@ -86,7 +91,8 @@ Frame::Frame(const std::string& name, View::Ptr pChild):
Frame::Frame(const std::string& name, const std::string& title, View::Ptr pChild):
View(name, typeid(Frame)),
_pChild(),
_title(title)
_title(title),
_collapsible(false)
{
setChild(pChild);
}
@@ -95,7 +101,8 @@ Frame::Frame(const std::string& name, const std::string& title, View::Ptr pChild
Frame::Frame(const std::type_info& type):
View(type),
_pChild(),
_title()
_title(),
_collapsible(false)
{
}
@@ -103,7 +110,8 @@ Frame::Frame(const std::type_info& type):
Frame::Frame(const std::string& name, const std::type_info& type):
View(name, type),
_pChild(),
_title()
_title(),
_collapsible(false)
{
}
@@ -111,7 +119,8 @@ Frame::Frame(const std::string& name, const std::type_info& type):
Frame::Frame(View::Ptr pChild, const std::type_info& type):
View(type),
_pChild(),
_title()
_title(),
_collapsible(false)
{
setChild(pChild);
}
@@ -120,7 +129,8 @@ Frame::Frame(View::Ptr pChild, const std::type_info& type):
Frame::Frame(const std::string& name, View::Ptr pChild, const std::type_info& type):
View(name, typeid(Frame)),
_pChild(),
_title()
_title(),
_collapsible(false)
{
setChild(pChild);
}

View File

@@ -174,6 +174,7 @@ void RequestHandler::handleAjaxRequest(Poco::Net::HTTPServerRequest& request, Po
it = args.begin();
RequestProcessor* pProc = _pApp->getAjaxProcessor(id);
poco_assert_dbg (pProc);
if (!pProc)
{
response.setStatusAndReason(Poco::Net::HTTPResponse::HTTP_INTERNAL_SERVER_ERROR, "no requestprocessor found");