AppSettings Class Reference

#include <appsettings.h>

List of all members.

Public Types

enum  TRIGGER_MSK { EXT_TRIGGER_MSK = 0x0001, CHANNEL_TRIGGER_MSK = 0x0002, SW_AUTO_TRIGGER_MSK = 0x0004 }
enum  TRIGGER_EDGE_TYPE { NO_TRIGGER = 0, RAISING_EDGE, FALLING_EDGE }
enum  GRID_LINE_TYPE {
  NO_LINE = 0, SOLID, DASHED, DASH_DOT,
  DOTTED
}

Public Member Functions

 AppSettings (void(*scope_refresh)(int, bool))
 ~AppSettings (void)
bool Load (void)
bool Save (void)
bool SetGridPen (int scope_index, const wxPen *grid_pen, const wxPen *mid_grid_pen=NULL)
bool SetBackBrush (int scope_index, const wxBrush *back_brush)
void SetDiv2Pix (int scope_index, double div_2_pix_X)
void SetSec2Div (int scope_index, double sec_2_div)
void SetSec2Sample (double sec_2_sample)
void SetClock (bool use_ext_clock, int ext_rate_MHz)
UINT32 Sec2Pix (int scope_index, double value)
double Sample2Sec (int value)

Public Attributes

wxMutex m_mutex
TRIGGER_MSK m_trigger_msk
int m_post_trigger
int m_sample_block_size
wxArrayPtrVoid m_board_array
wxColor m_grid_line_color [SCOPE_NUM_PANELS]
GRID_LINE_TYPE m_grid_line_type [SCOPE_NUM_PANELS]
int m_grid_line_width [SCOPE_NUM_PANELS]
wxColor m_background_color [SCOPE_NUM_PANELS]
wxString m_record_folder
TRIGGER_EDGE_TYPE m_trigger_edge_type
wxPen * m_grid_pen [SCOPE_NUM_PANELS]
wxPen * m_mid_grid_pen [SCOPE_NUM_PANELS]
wxBrush * m_back_brush [SCOPE_NUM_PANELS]
int m_max_log_X
double m_offset_sec [SCOPE_NUM_PANELS]
double m_sec_2_sample
double m_sec_2_div [SCOPE_NUM_PANELS]
double m_sample_2_sec
int m_int_rate_MHz
int m_ext_rate_MHz
bool m_use_ext_clock
bool m_use_TTL
bool m_trigger_position_keep
bool m_started
bool m_show_left_pane
bool m_show_bottom_pane
bool m_show_scope_left_top_pane
bool m_show_scope_right_top_pane
bool m_show_scope_left_bottom_pane
bool m_show_scope_right_bottom_pane
double m_sec_2_pix [SCOPE_NUM_PANELS]
double m_div_2_pix_X [SCOPE_NUM_PANELS]
double m_div_2_pix_Y [SCOPE_NUM_PANELS]
int m_pix_Y [SCOPE_NUM_PANELS]
int m_pix_X [SCOPE_NUM_PANELS]
void(* ScopeRefresh )(int, bool)

Protected Member Functions

bool EndVME (void)
bool InitVME (void)

Protected Attributes

wxString m_vme_board_type_string
int m_vme_link
int m_vme_board_num
int32_t m_vme_handle


Detailed Description

Definition at line 24 of file appsettings.h.


Member Enumeration Documentation

enum AppSettings::GRID_LINE_TYPE
 

Enumerator:
NO_LINE 
SOLID 
DASHED 
DASH_DOT 
DOTTED 

Definition at line 39 of file appsettings.h.

enum AppSettings::TRIGGER_EDGE_TYPE
 

Enumerator:
NO_TRIGGER 
RAISING_EDGE 
FALLING_EDGE 

Definition at line 33 of file appsettings.h.

enum AppSettings::TRIGGER_MSK
 

Enumerator:
EXT_TRIGGER_MSK 
CHANNEL_TRIGGER_MSK 
SW_AUTO_TRIGGER_MSK 

Definition at line 27 of file appsettings.h.


Constructor & Destructor Documentation

AppSettings::AppSettings void(*)(int, bool)  scope_refresh  ) 
 

Definition at line 43 of file appsettings.cpp.

References m_back_brush, m_grid_pen, m_mid_grid_pen, and SCOPE_NUM_PANELS.

AppSettings::~AppSettings void   ) 
 

Definition at line 61 of file appsettings.cpp.

References m_board_array.


Member Function Documentation

bool AppSettings::EndVME void   )  [protected]
 

Definition at line 600 of file appsettings.cpp.

References CAEN_VME_INVALID_HANDLE, m_vme_board_num, m_vme_handle, and m_vme_link.

bool AppSettings::InitVME void   )  [protected]
 

Definition at line 575 of file appsettings.cpp.

bool AppSettings::Load void   ) 
 

Load data

Definition at line 97 of file appsettings.cpp.

References m_board_array, m_post_trigger, m_record_folder, m_sample_block_size, m_show_bottom_pane, m_show_left_pane, m_show_scope_left_bottom_pane, m_show_scope_left_top_pane, m_show_scope_right_bottom_pane, m_show_scope_right_top_pane, m_started, m_trigger_edge_type, m_trigger_msk, m_trigger_position_keep, NO_TRIGGER, and SCOPE_NUM_PANELS.

double AppSettings::Sample2Sec int  value  )  [inline]
 

Definition at line 109 of file appsettings.h.

References m_sample_2_sec.

bool AppSettings::Save void   ) 
 

save data

Definition at line 405 of file appsettings.cpp.

Referenced by MainFrame::OnCloseWindow().

UINT32 AppSettings::Sec2Pix int  scope_index,
double  value
[inline]
 

Definition at line 108 of file appsettings.h.

bool AppSettings::SetBackBrush int  scope_index,
const wxBrush *  back_brush
 

Definition at line 637 of file appsettings.cpp.

References m_back_brush.

Referenced by MainFrame::DoChooseColor(), and MainFrame::UpdateControls().

void AppSettings::SetClock bool  use_ext_clock,
int  ext_rate_MHz
 

Definition at line 673 of file appsettings.cpp.

References m_ext_rate_MHz, m_use_ext_clock, and SetSec2Sample().

Referenced by MainFrame::UpdateClock().

void AppSettings::SetDiv2Pix int  scope_index,
double  div_2_pix_X
 

Definition at line 648 of file appsettings.cpp.

References m_div_2_pix_X, m_sec_2_div, and m_sec_2_pix.

bool AppSettings::SetGridPen int  scope_index,
const wxPen *  grid_pen,
const wxPen *  mid_grid_pen = NULL
 

Definition at line 612 of file appsettings.cpp.

References m_grid_pen, and m_mid_grid_pen.

void AppSettings::SetSec2Div int  scope_index,
double  sec_2_div
 

Definition at line 656 of file appsettings.cpp.

References m_div_2_pix_X, m_sec_2_div, and m_sec_2_pix.

Referenced by MainFrame::UpdateSecPerDiv().

void AppSettings::SetSec2Sample double  sec_2_sample  ) 
 

Definition at line 665 of file appsettings.cpp.

References m_sample_2_sec, and m_sec_2_sample.

Referenced by SetClock().


Member Data Documentation

wxBrush* AppSettings::m_back_brush[SCOPE_NUM_PANELS]
 

Definition at line 74 of file appsettings.h.

Referenced by AppSettings(), and SetBackBrush().

wxColor AppSettings::m_background_color[SCOPE_NUM_PANELS]
 

Definition at line 68 of file appsettings.h.

Referenced by MainFrame::DoChooseColor().

wxArrayPtrVoid AppSettings::m_board_array
 

Definition at line 64 of file appsettings.h.

Referenced by MainFrame::CreateDynControls(), MainFrame::DoStartStopRunning(), DrawingCanvas::DrawCursor(), DrawingLeftCanvas::DrawPosition(), DrawingCanvas::DrawSamples(), DrawingCanvas::DrawTrigger(), Load(), MainFrame::OnCloseWindow(), MainFrame::OnRecordtogglebuttonClick(), MainFrame::OnSizeXChoiceSelected(), MainFrame::OnTriggerExtTogglebuttonClick(), MainFrame::OnTriggerForceButtonClick(), MainFrame::UpdateTriggerEdge(), MainFrame::UpdateTriggerPost(), MainFrame::UpdateUseTTL(), and ~AppSettings().

double AppSettings::m_div_2_pix_X[SCOPE_NUM_PANELS]
 

Definition at line 95 of file appsettings.h.

Referenced by SetDiv2Pix(), and SetSec2Div().

double AppSettings::m_div_2_pix_Y[SCOPE_NUM_PANELS]
 

Definition at line 95 of file appsettings.h.

int AppSettings::m_ext_rate_MHz
 

Definition at line 82 of file appsettings.h.

Referenced by SetClock().

wxColor AppSettings::m_grid_line_color[SCOPE_NUM_PANELS]
 

Definition at line 65 of file appsettings.h.

Referenced by MainFrame::DoGridChooseColor().

GRID_LINE_TYPE AppSettings::m_grid_line_type[SCOPE_NUM_PANELS]
 

Definition at line 66 of file appsettings.h.

Referenced by MainFrame::OnGridLineType1ChoiceSelected(), MainFrame::OnGridLineType2ChoiceSelected(), MainFrame::OnGridLineType3ChoiceSelected(), and MainFrame::OnGridLineType4ChoiceSelected().

int AppSettings::m_grid_line_width[SCOPE_NUM_PANELS]
 

Definition at line 67 of file appsettings.h.

Referenced by MainFrame::UpdateGridLineWidth().

wxPen* AppSettings::m_grid_pen[SCOPE_NUM_PANELS]
 

Definition at line 72 of file appsettings.h.

Referenced by AppSettings(), and SetGridPen().

int AppSettings::m_int_rate_MHz
 

Definition at line 81 of file appsettings.h.

int AppSettings::m_max_log_X
 

Definition at line 75 of file appsettings.h.

Referenced by GenericBoardChannel::DrawSamples(), MainFrame::OnSizeXChoiceSelected(), and MainFrame::UpdateSecPerDiv().

wxPen* AppSettings::m_mid_grid_pen[SCOPE_NUM_PANELS]
 

Definition at line 73 of file appsettings.h.

Referenced by AppSettings(), and SetGridPen().

wxMutex AppSettings::m_mutex
 

Definition at line 58 of file appsettings.h.

double AppSettings::m_offset_sec[SCOPE_NUM_PANELS]
 

Definition at line 76 of file appsettings.h.

Referenced by GenericBoardChannel::DrawSamples(), PhysicalBoardChannel::DrawTrigger(), MainFrame::UpdateOffsetSec(), and MainFrame::UpdateSecPerDiv().

int AppSettings::m_pix_X[SCOPE_NUM_PANELS]
 

Definition at line 96 of file appsettings.h.

int AppSettings::m_pix_Y[SCOPE_NUM_PANELS]
 

Definition at line 96 of file appsettings.h.

int AppSettings::m_post_trigger
 

Definition at line 62 of file appsettings.h.

Referenced by Load(), MainFrame::UpdateSecPerDiv(), MainFrame::UpdateTriggerPost(), and V1724Board::WriteTriggerMode().

wxString AppSettings::m_record_folder
 

Definition at line 69 of file appsettings.h.

Referenced by Load(), and MainFrame::UpdateRecordFolder().

double AppSettings::m_sample_2_sec
 

Definition at line 79 of file appsettings.h.

Referenced by GenericBoardChannel::Sample2Sec(), Sample2Sec(), SetSec2Sample(), and MainFrame::UpdateSecPerDiv().

int AppSettings::m_sample_block_size
 

Definition at line 63 of file appsettings.h.

Referenced by Load(), and MainFrame::OnSizeXChoiceSelected().

double AppSettings::m_sec_2_div[SCOPE_NUM_PANELS]
 

Definition at line 78 of file appsettings.h.

Referenced by SetDiv2Pix(), SetSec2Div(), MainFrame::UpdateControls(), and MainFrame::UpdateSecPerDiv().

double AppSettings::m_sec_2_pix[SCOPE_NUM_PANELS]
 

Definition at line 94 of file appsettings.h.

Referenced by SetDiv2Pix(), and SetSec2Div().

double AppSettings::m_sec_2_sample
 

Definition at line 77 of file appsettings.h.

Referenced by SetSec2Sample().

bool AppSettings::m_show_bottom_pane
 

Definition at line 88 of file appsettings.h.

Referenced by MainFrame::DoShowHideBottomPane(), and Load().

bool AppSettings::m_show_left_pane
 

Definition at line 87 of file appsettings.h.

Referenced by MainFrame::DoShowHideLeftPane(), and Load().

bool AppSettings::m_show_scope_left_bottom_pane
 

Definition at line 91 of file appsettings.h.

Referenced by MainFrame::DoShowHideScopeLeftBottomPane(), and Load().

bool AppSettings::m_show_scope_left_top_pane
 

Definition at line 89 of file appsettings.h.

Referenced by MainFrame::DoShowHideScopeLeftTopPane(), and Load().

bool AppSettings::m_show_scope_right_bottom_pane
 

Definition at line 92 of file appsettings.h.

Referenced by MainFrame::DoShowHideScopeRightBottomPane(), and Load().

bool AppSettings::m_show_scope_right_top_pane
 

Definition at line 90 of file appsettings.h.

Referenced by MainFrame::DoShowHideScopeRightTopPane(), and Load().

bool AppSettings::m_started
 

Definition at line 86 of file appsettings.h.

Referenced by Load().

TRIGGER_EDGE_TYPE AppSettings::m_trigger_edge_type
 

Definition at line 70 of file appsettings.h.

Referenced by Load(), MainFrame::UpdateTriggerEdge(), and V1724Board::WriteTriggerMode().

TRIGGER_MSK AppSettings::m_trigger_msk
 

Definition at line 61 of file appsettings.h.

Referenced by Load(), MainFrame::OnTriggerAutoTogglebuttonClick(), and MainFrame::OnTriggerExtTogglebuttonClick().

bool AppSettings::m_trigger_position_keep
 

Definition at line 85 of file appsettings.h.

Referenced by Load(), and MainFrame::OnTriggerPositionKeepCheckboxClick().

bool AppSettings::m_use_ext_clock
 

Definition at line 83 of file appsettings.h.

Referenced by SetClock().

bool AppSettings::m_use_TTL
 

Definition at line 84 of file appsettings.h.

Referenced by MainFrame::UpdateUseTTL().

int AppSettings::m_vme_board_num [protected]
 

Definition at line 117 of file appsettings.h.

Referenced by EndVME().

wxString AppSettings::m_vme_board_type_string [protected]
 

Definition at line 115 of file appsettings.h.

int32_t AppSettings::m_vme_handle [protected]
 

Definition at line 118 of file appsettings.h.

Referenced by EndVME().

int AppSettings::m_vme_link [protected]
 

Definition at line 116 of file appsettings.h.

Referenced by EndVME().

void(* AppSettings::ScopeRefresh)(int, bool)
 


The documentation for this class was generated from the following files:
Generated on Mon Mar 19 17:14:09 2007 for CAENScope by  doxygen 1.4.6-NO