GMailboxTreeDir::~GMailboxTreeDir() { JPrefObject::WritePrefs(); delete itsTree; delete itsMenuIcon; GGetDirMgr()->DirectorDeleted(this); }
GMDirectorMenu::GMDirectorMenu ( const JCharacter* title, JXContainer* enclosure, const HSizingOption hSizing, const VSizingOption vSizing, const JCoordinate x, const JCoordinate y, const JCoordinate w, const JCoordinate h ) : JXTextMenu(title, enclosure, hSizing, vSizing, x,y, w,h) { ListenTo(this); ListenTo(GGetDirMgr()); GGetDirMgr()->UpdateDirectorMenu(this); SetUpdateAction(JXMenu::kDisableNone); }
GAddressBookTreeDir::~GAddressBookTreeDir() { JPrefObject::WritePrefs(); itsWidget->Save(); delete itsTree; delete itsTimerTask; delete itsMenuIcon; GGetDirMgr()->DirectorDeleted(this); }
void GMDirectorMenu::Receive ( JBroadcaster* sender, const Message& message ) { if (sender == GGetDirMgr() && message.Is(GMDirectorManager::kDirectorListChanged)) { GGetDirMgr()->UpdateDirectorMenu(this); } else if (sender == this && message.Is(JXMenu::kItemSelected)) { const JXMenu::ItemSelected* selection = dynamic_cast<const JXMenu::ItemSelected*>(&message); assert( selection != NULL ); GGetDirMgr()->ActivateDirector(selection->GetIndex()); } JXTextMenu::Receive(sender, message); }
GMessageTableDir::~GMessageTableDir() { delete itsNoMailIcon; delete itsNewMailIcon; delete itsSmallNewMailIcon; delete itsHaveMailIcon; delete itsViewDirs; delete itsPG; delete itsData; delete itsMenuIcon; GGetDirMgr()->DirectorDeleted(this); }
SMTPDebugDir::SMTPDebugDir ( JXDirector* supervisor ) : GMManagedDirector(supervisor) { JSize w = 400; JSize h = 300; JXWindow* window = new JXWindow(this, w,h, "Debug Window"); assert( window != NULL ); SetWindow(window); window->SetCloseAction(JXWindow::kDeactivateDirector); JXMenuBar* menuBar = new JXMenuBar(window, JXWidget::kHElastic, JXWidget::kFixedTop, 0,0, w,kJXStdMenuBarHeight); assert( menuBar != NULL ); itsFileMenu = menuBar->AppendTextMenu(kFileMenuTitleStr); itsFileMenu->SetMenuItems(kFileMenuStr); itsFileMenu->SetUpdateAction(JXMenu::kDisableNone); ListenTo(itsFileMenu); GMDirectorMenu* menu = new GMDirectorMenu(kWindowsMenuTitleStr, menuBar, JXWidget::kFixedLeft, JXWidget::kVElastic, 0,0, 10,10); assert(menu != NULL); menuBar->AppendMenu(menu); JXScrollbarSet* scrollbarSet = new JXScrollbarSet(window, JXWidget::kHElastic, JXWidget::kVElastic, 0,kJXStdMenuBarHeight,w,h - kJXStdMenuBarHeight); assert ( scrollbarSet != NULL ); itsText = new JXStaticText("", kJFalse, kJTrue, scrollbarSet, scrollbarSet->GetScrollEnclosure(), JXWidget::kHElastic, JXWidget::kVElastic, 0,0,w,h - kJXStdMenuBarHeight); assert (itsText != NULL); itsMenuIcon = new JXImage(window->GetDisplay(), window->GetColormap(), JXPM(debug_xpm)); assert(itsMenuIcon != NULL); itsMenuIcon->ConvertToRemoteStorage(); GGetDirMgr()->DirectorCreated(this); }
GMailboxTreeDir::GMailboxTreeDir ( JXDirector* supervisor ) : GMManagedDirector(supervisor), JPrefObject(GGetPrefsMgr(), kMailTreePrefsID), itsTimerTask(NULL) { BuildWindow(); JPrefObject::ReadPrefs(); itsWidget->Update(); GGetDirMgr()->DirectorCreated(this); }
GMessageTableDir::GMessageTableDir ( JXDirector* supervisor, const JString& mailfile ) : GMManagedDirector(supervisor), itsDummyPrintText(NULL), itsFindDialog(NULL) { BuildWindow(mailfile); GGetPrefsMgr()->GetTableWindowPrefs(this); itsViewDirs = new JPtrArray<GMessageViewDir>(JPtrArrayT::kForgetAll); assert(itsViewDirs != NULL); UpdateInboxMenu(); ListenTo(GGetPrefsMgr()); GGetDirMgr()->DirectorCreated(this); }
GMessageViewDir::GMessageViewDir ( GMessageTableDir* supervisor, const JString& mailfile, GMessageHeader* header, const JBoolean source ) : GMManagedDirector(supervisor), itsSourceOnly(source) { itsPasswdDialog = NULL; itsAttachTable = NULL; itsPrefsIncludeAttachTable = kJFalse; BuildWindow(mailfile); itsDir = supervisor; itsShowFullHeaders = kJFalse; GGetPrefsMgr()->GetViewWindowPrefs(this); ShowHeader(header); GGetDirMgr()->DirectorCreated(this); }
GAddressBookTreeDir::GAddressBookTreeDir ( JXDirector* supervisor ) : GMManagedDirector(supervisor), JPrefObject(GGetPrefsMgr(), kAddressTreePrefsID), itsPrefsOK(kJFalse) { BuildWindow(); JPrefObject::ReadPrefs(); itsTimerTask = new JXTimerTask(kDirUpdateDelay); assert(itsTimerTask != NULL); itsTimerTask->Start(); ListenTo(itsTimerTask); itsWidget->Update(); if (!itsPrefsOK) { GGetAddressBookMgr()->AddDefaultAddressBook(itsTree); } GGetDirMgr()->DirectorCreated(this); }
GMessageViewDir::~GMessageViewDir() { delete itsMenuIcon; GGetDirMgr()->DirectorDeleted(this); }
SMTPDebugDir::~SMTPDebugDir() { delete itsMenuIcon; GGetDirMgr()->DirectorDeleted(this); }