FileEditor::FileEditor(shared_ptr<EntitiesEntity> entity, shared_ptr<EntitiesEntity> parent) : EditorBase(portalObjectTypeFile, entity, parent), m_title(OS_NEW HtmlTextBox()), m_description(OS_NEW HtmlTextBox()), m_enableBrowser(OS_NEW HtmlCheckBox()), m_browser(OS_NEW HtmlFileBrowser()) { m_title->setID(_S("title")); m_title->setCss(_S("os_input_full")); m_title->setMaxLength(OS_CONTROLS_TITLE_MAXLENGTH); m_description->setID(_S("description")); m_description->setCss(_S("os_input_full")); m_description->setMaxLength(OS_CONTROLS_DESCRIPTION_MAXLENGTH); m_browser->setID(_S("browser")); m_browser->setCss(_S("os_input_full")); getTemplate()->addChildParam(m_title, _S("title")); getTemplate()->addChildParam(m_description, _S("description")); if(isRevision()) { m_enableBrowser->setID(_S("enableBrowser")); m_enableBrowser->setCheck(false); m_enableBrowser->setAutoPostBack(true); getTemplate()->addChildParam(m_enableBrowser, _S("enable_browser")); } getTemplate()->addChildParam(m_browser, _S("browser")); }
Subscribe::Subscribe(shared_ptr<HttpSession> session) : PageBase(session), m_portalLink(OS_NEW HtmlTextBox()), m_showPortalParams(OS_NEW HtmlCheckBox()), m_portalName(OS_NEW HtmlTextBox()), m_portalID(OS_NEW HtmlTextBox()), m_portalPov(OS_NEW HtmlTextBox()), m_portalPassword(OS_NEW HtmlTextBox()), m_databaseDriver(OS_NEW HtmlComboBox()), m_table(OS_NEW HtmlTable()) { m_portalLink->setID(_S("portalLink")); m_portalLink->setCss(_S("os_input_full")); m_showPortalParams->setID(_S("showPortalParams")); m_showPortalParams->setAutoPostBack(true); m_portalName->setID(_S("portalName")); m_portalName->setCss(_S("os_input_full")); m_portalID->setID(_S("portalID")); m_portalID->setCss(_S("os_input_full")); m_portalPassword->setID(_S("portalPassword")); m_portalPassword->setCss(_S("os_input_full")); m_portalPov->setID(_S("portalPov")); m_portalPov->setCss(_S("os_input_full")); m_databaseDriver->setID(_S("databaseDriver")); m_databaseDriver->setAutoPostBack(true); m_table->setCss(_S("os_table_data")); }
IdePickerNumber::IdePickerNumber() : m_input(OS_NEW HtmlTextBox()) { m_valueMin = 0; m_valueMax = 100; m_input->setID(_S("number")); }
SearchEditor::SearchEditor() : m_query(OS_NEW SearchQuery()), m_globalParams(OS_NEW IdeSearchGlobalParams(m_query)), m_showParams(OS_NEW IdePickerBool()), m_directRun(OS_NEW IdePickerBool()), m_allowRss(OS_NEW IdePickerBool()), m_rssDescription(OS_NEW HtmlTextBox()), m_rssBody(OS_NEW HtmlComboBox()) { m_globalParams->setID(_S("globalParams")); m_showParams->setID(_S("showParams")); m_directRun->setID(_S("directRun")); m_allowRss->setID(_S("allowRss")); m_rssDescription->setID(_S("rssDescription")); m_rssBody->setID(_S("rssBody")); }
shared_ptr<HtmlTextBox> Subscribe::getDriverOptionControl(const String &driverName, const String &optionName) const { shared_ptr<HtmlTextBox> control; String controlID = driverName + optionName; DriverOptionsControls::const_iterator i = m_driverOptionsControls.find(controlID); if(i == m_driverOptionsControls.end()) { control.reset(OS_NEW HtmlTextBox()); control->setID(controlID); m_driverOptionsControls[controlID] = control; } else { control = i->second; } OS_ASSERT(control != nullptr); return control; }
IdePickerColor::IdePickerColor() : m_input(OS_NEW HtmlTextBox()) { m_input->setID(_S("color")); }
IdePickerDateTime::IdePickerDateTime() : m_input(OS_NEW HtmlTextBox()) { m_input->setID(_S("date")); }