XFE_HistoryFrame::XFE_HistoryFrame(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec) : XFE_Frame("history", toplevel, parent_frame, FRAME_HISTORY, chromespec, False, True, False, True, False) { // create the History view XFE_HistoryView *view = new XFE_HistoryView(this, getViewParent(), NULL, m_context); setView(view); XtVaSetValues(view->getBaseWidget(), XmNleftAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); setMenubar(menu_bar_spec); // // Make the bookmark frame title more reasonable // char title[kMaxFullNameLength+64]; PR_snprintf(title, sizeof(title), XP_GetString(XFE_HISTORY_FRAME_TITLE), FE_UsersFullName()); setTitle(title); view->show(); m_dashboard->setShowStatusBar(True); m_dashboard->setShowProgressBar(True); }
XFE_FolderFrame::XFE_FolderFrame(Widget toplevel, XFE_Frame *parent_frame, Chrome *chromespec) : XFE_Frame("MailFolder", toplevel, parent_frame, FRAME_MAILNEWS_FOLDER, chromespec) { INTL_CharSetInfo c = LO_GetDocumentCharacterSetInfo(m_context); INTL_SetCSIWinCSID(c, INTL_DocToWinCharSetID (CONTEXT_DATA (m_context)->xfe_doc_csid)); geometryPrefName = "mail.folder"; D( printf ("in XFE_FolderFrame::XFE_FolderFrame()\n");) // create the folder view XFE_FolderView *view = new XFE_FolderView(this, getViewParent(), NULL, m_context); char banner_title[1024]; m_banner = new XFE_MNBanner(this, m_toolbox); setView(view); PR_snprintf(banner_title, sizeof(banner_title), XP_GetString( XFE_SILLY_NAME_FOR_SEEMINGLY_UNAMEABLE_THING ), FE_UsersFullName()); m_banner->setTitle( banner_title ); m_banner->setSubtitle(""); // window title char title[1024];
Chrome *chrome_spec) : XFE_Frame("Dialog", toplevel, parent_frame, FRAME_HTML_DIALOG, chrome_spec, True, /* haveHTMLDisplay */ False, /* haveMenuBar */ False, /* haveToolbars */ False, /* haveDashboard */ True /* destroyOnClose */) { XFE_HTMLView *htmlview; D(printf ("in XFE_HTMLDialogFrame::XFE_HTMLDialogFrame()\n");) htmlview = new XFE_HTMLView(this, getViewParent(), NULL, m_context); setView(htmlview); fe_set_scrolled_default_size(m_context); XtVaSetValues(htmlview->getBaseWidget(), XmNleftAttachment, XmATTACH_FORM, XmNrightAttachment, XmATTACH_FORM, XmNtopAttachment, XmATTACH_FORM, XmNbottomAttachment, XmATTACH_FORM, NULL); htmlview->show(); respectChrome(chrome_spec);