Main Page | Modules | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

PageDisplay.cxx File Reference

#include "PageDisplay.h"
#include "PageDisplayConfig.h"
#include "PageProxy.h"
#include "PageABC.h"
#include "RunSnarlEntry.h"
#include "TimeHist.h"
#include "DigitText.h"
#include "MCText.h"
#include "MCTree.h"
#include "MCVectors.h"
#include "PmtPixels.h"
#include "Mint.h"
#include "ZoomPad.h"
#include "RegistryGui.h"
#include "RegistryDialog.h"
#include <Midad/Gui/GuiMenu.h>
#include <Midad/Gui/GuiBox.h>
#include <Midad/Gui/GuiStatusBar.h>
#include <Midad/Gui/GuiTab.h>
#include <Midad/Gui/GuiFrame.h>
#include <Midad/Gui/GuiButton.h>
#include <Midad/Gui/GuiMainWindow.h>
#include <Midad/Gui/GuiTextView.h>
#include <Midad/Gui/GuiTextEntry.h>
#include <Midad/Gui/GuiTree.h>
#include <Midad/Gui/GuiSlider.h>
#include <Midad/Gui/GuiCanvas.h>
#include <Midad/Gui/GuiScrolled.h>
#include <JobControl/JobC.h>
#include <TCanvas.h>
#include <TGFileDialog.h>
#include <TROOT.h>
#include <TSystem.h>
#include <sigc++/sigc++.h>
#include <sigc++/class_slot.h>
#include <sigc++/retype_return.h>
#include <cstdlib>
#include <iostream>
#include <vector>

Go to the source code of this file.

Functions

void die_die_die (PageDisplay *pd)
void add_to_page_menu (const char *name, GuiMenu *menu, PageDisplay *pd, bool tf)
void handle_free_run (PageDisplay *pd, GuiTextButton *but)
void handle_pause_entry (PageDisplay *pd, GuiTextEntry *ent)
template<class TYPE>
void killer (TYPE *obj)
void apply_reg_gui (PageDisplay *pd, RegistryGui *rg)


Function Documentation

void add_to_page_menu const char *  name,
GuiMenu menu,
PageDisplay pd,
bool  tf
[static]
 

Definition at line 123 of file PageDisplay.cxx.

References GuiMenu::Add().

Referenced by PageDisplay::SetupMenus().

00124 {
00125     // This kludge is used to keep UserDisplay out of the menus.
00126     // UserDisplay is not a complete display and is intended to be
00127     // created and filled from a macro.
00128     if (string("UserCanvas") == name) return;
00129 
00130     menu->Add(name,retype_return<void>(bind(slot(*pd,&PageDisplay::AddPage),name,tf)));
00131 }

void apply_reg_gui PageDisplay pd,
RegistryGui rg
 

Definition at line 636 of file PageDisplay.cxx.

References PageDisplay::ClearDisplay(), Mint::GetCandidateLookup(), PageDisplay::GetMint(), RegistryGui::GetRegistry(), and PageDisplay::UpdateDisplay().

Referenced by PageDisplay::CandidateNames(), and CheezyPage::SpawnConfigurator().

00637 {
00638     Registry& reg = pd->GetMint()->GetCandidateLookup();
00639     reg = rg->GetRegistry();
00640     pd->ClearDisplay();
00641     pd->UpdateDisplay();
00642 }

void die_die_die PageDisplay pd  )  [static]
 

Definition at line 48 of file PageDisplay.cxx.

Referenced by PageDisplay::SetupMenus().

00049 {
00050     if (pd) delete pd;
00051     gROOT->ProcessLine(".q");   // whatever
00052 }

void handle_free_run PageDisplay pd,
GuiTextButton but
[static]
 

Definition at line 191 of file PageDisplay.cxx.

References PageDisplay::GetMint(), and Mint::SetFreeRunning().

Referenced by PageDisplay::SetupButtons().

00192 {
00193     TString label = but->GetString();
00194     if (label == "Free Running") {
00195         label = "Stop Running";
00196         but->SetText(label);
00197         pd->GetMint()->SetFreeRunning(true);
00198     }
00199     else {
00200         label = "Free Running";
00201         but->SetText(label);
00202         pd->GetMint()->SetFreeRunning(false);
00203     }
00204 }

void handle_pause_entry PageDisplay pd,
GuiTextEntry ent
[static]
 

Definition at line 205 of file PageDisplay.cxx.

References PageDisplay::GetMint(), and Mint::SetPause().

Referenced by PageDisplay::SetupButtons().

00206 {
00207     Long_t ms = atoi(ent->GetText());
00208     pd->GetMint()->SetPause(ms);
00209 }

template<class TYPE>
void killer TYPE *  obj  ) 
 

Definition at line 524 of file PageDisplay.cxx.

00524 { delete obj; }


Generated on Mon Jun 16 14:59:38 2008 for loon by  doxygen 1.3.9.1