CTacticDesignerDlgBar Class Reference

#include <TacticDesignerDlgBar.h>

Inheritance diagram for CTacticDesignerDlgBar:

CRobotControlDialogBar CDynamicBarDlg MessageHandler CDynamicChildDlg CDynamicDialog CDynamicWndEx CDynamicWnd List of all members.

Public Types

 IDD = IDD_DIALOG_BAR_TACTICDESIGNER
enum  { IDD = IDD_DIALOG_BAR_TACTICDESIGNER }

Public Member Functions

 CTacticDesignerDlgBar ()
 ~CTacticDesignerDlgBar ()

Public Attributes

CButton m_new
CButton m_open
CButton m_save
CButton m_send
CButton m_merge
CButton m_freeze
CButton m_unfreeze
CButton m_add
CButton m_del
CTreeCtrl m_Tree
CListBox m_List

Protected Member Functions

virtual void DoDataExchange (CDataExchange *pDX)
virtual BOOL OnInitDialog ()
void AddFromFile (bool append)
void AddTacticEntry (HTREEITEM insertAfter)
afx_msg void onSelChanged (NMHDR *pNotifyStruct, LRESULT *result)
afx_msg void onItemTextEdited (NMHDR *pNotifyStruct, LRESULT *result)
afx_msg void onListSelChanged ()
afx_msg void OnAddButton ()
afx_msg void OnDelButton ()
afx_msg void OnNewButton ()
afx_msg void OnOpenButton ()
afx_msg void OnSaveButton ()
afx_msg void OnMergeButton ()
afx_msg void OnSendButton ()
afx_msg void OnFreezeButton ()
afx_msg void OnUnfreezeButton ()
 DECLARE_MESSAGE_MAP ()

Private Member Functions

void fillTacticEntry (TacticEntryArray &tacticEntryArray)

Private Attributes

HTREEITEM root
int TECount

Detailed Description

A dialog bar to create and modify TacticEntries for DTT-Behavior

Author:
Jochen Kerdels

Definition at line 24 of file TacticDesignerDlgBar.h.


Member Enumeration Documentation

anonymous enum

Enumerator:
IDD 

Definition at line 39 of file TacticDesignerDlgBar.h.


Constructor & Destructor Documentation

CTacticDesignerDlgBar::CTacticDesignerDlgBar (  ) 

Default constructor.

Definition at line 16 of file TacticDesignerDlgBar.cpp.

References TECount.

CTacticDesignerDlgBar::~CTacticDesignerDlgBar (  ) 

Destructor

Definition at line 24 of file TacticDesignerDlgBar.cpp.


Member Function Documentation

void CTacticDesignerDlgBar::AddFromFile ( bool  append  )  [protected]

Definition at line 89 of file TacticDesignerDlgBar.cpp.

References TacticEntry::allowedDogs, TacticEntryArray::entryCount, TacticEntryArray::entrys, TacticEntry::followingEntryCount, TacticEntry::followingEntrys, TacticEntry::followingEntryWeights, RateableOptions::getGlobalAnalyserName(), File::getGTDir(), RateableOptions::getOptionName(), RateableOptions::getTETIDName(), TacticEntry::globalAnalysersInfo, m_Tree, TacticEntry::name, TacticEntry::neededOptions, RateableOptions::numOfGlobalAnalysers, Player::numOfPlayerNumbers, TacticEntry::optionWeights, root, TECount, and TacticEntry::weight.

Referenced by OnMergeButton(), and OnOpenButton().

void CTacticDesignerDlgBar::AddTacticEntry ( HTREEITEM  insertAfter  )  [protected]

Definition at line 324 of file TacticDesignerDlgBar.cpp.

References RateableOptions::getGlobalAnalyserName(), RateableOptions::getGlobalAnalyserNeutralTETID(), RateableOptions::getTETIDName(), m_Tree, RateableOptions::numOfGlobalAnalysers, Player::numOfPlayerNumbers, root, and TECount.

Referenced by OnAddButton().

CTacticDesignerDlgBar::DECLARE_MESSAGE_MAP (  )  [protected]

Reimplemented from CDynamicBarDlg.

void CTacticDesignerDlgBar::DoDataExchange ( CDataExchange *  pDX  )  [protected, virtual]

Definition at line 45 of file TacticDesignerDlgBar.cpp.

void CTacticDesignerDlgBar::fillTacticEntry ( TacticEntryArray tacticEntryArray  )  [private]

Definition at line 440 of file TacticDesignerDlgBar.cpp.

References TacticEntry::allowedDogs, TacticEntryArray::entrys, TacticEntry::followingEntryCount, TacticEntry::followingEntrys, TacticEntry::followingEntryWeights, RateableOptions::getOptionID(), RateableOptions::getTETID(), TacticEntry::globalAnalysersInfo, m_Tree, TacticEntry::maxVal, TacticEntry::name, TacticEntry::neededOptions, Player::numOfPlayerNumbers, TacticEntry::optionWeights, root, TacticEntryArray::setEntryCount(), TacticEntry::setFollowingEntryCount(), and TacticEntry::weight.

Referenced by OnSaveButton(), and OnSendButton().

void CTacticDesignerDlgBar::OnAddButton (  )  [protected]

Definition at line 384 of file TacticDesignerDlgBar.cpp.

References AddTacticEntry(), and m_Tree.

void CTacticDesignerDlgBar::OnDelButton (  )  [protected]

Definition at line 406 of file TacticDesignerDlgBar.cpp.

References m_Tree.

void CTacticDesignerDlgBar::OnFreezeButton (  )  [protected]

Definition at line 610 of file TacticDesignerDlgBar.cpp.

References CRobotControlQueuesToRobots::allRobots, OutMessage::bin, OutMessage::finishMessage(), getQueues(), idFreezeRequest, int(), MessageQueue::out, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.

BOOL CTacticDesignerDlgBar::OnInitDialog (  )  [protected, virtual]

Reimplemented from CDynamicDialog.

Definition at line 63 of file TacticDesignerDlgBar.cpp.

References CDynamicWnd::AddSzControl(), m_add, m_del, m_freeze, m_List, m_merge, m_new, m_open, m_save, m_send, m_Tree, m_unfreeze, CDynamicWnd::mdNone, CDynamicWnd::mdRepos, CDynamicWnd::mdResize, CDynamicDialog::OnInitDialog(), root, and TRUE.

void CTacticDesignerDlgBar::onItemTextEdited ( NMHDR *  pNotifyStruct,
LRESULT *  result 
) [protected]

Definition at line 630 of file TacticDesignerDlgBar.cpp.

void CTacticDesignerDlgBar::onListSelChanged (  )  [protected]

Definition at line 312 of file TacticDesignerDlgBar.cpp.

References m_List, and m_Tree.

void CTacticDesignerDlgBar::OnMergeButton (  )  [protected]

Definition at line 435 of file TacticDesignerDlgBar.cpp.

References AddFromFile().

void CTacticDesignerDlgBar::OnNewButton (  )  [protected]

Definition at line 423 of file TacticDesignerDlgBar.cpp.

References m_Tree, and root.

void CTacticDesignerDlgBar::OnOpenButton (  )  [protected]

Definition at line 430 of file TacticDesignerDlgBar.cpp.

References AddFromFile().

void CTacticDesignerDlgBar::OnSaveButton (  )  [protected]

Definition at line 565 of file TacticDesignerDlgBar.cpp.

References fillTacticEntry(), and File::getGTDir().

void CTacticDesignerDlgBar::onSelChanged ( NMHDR *  pNotifyStruct,
LRESULT *  result 
) [protected]

Definition at line 213 of file TacticDesignerDlgBar.cpp.

References d, RateableOptions::getGlobalAnalyserTETBase(), RateableOptions::getGlobalAnalyserTETCount(), RateableOptions::getOptionName(), RateableOptions::getTETIDName(), m_add, m_del, m_List, m_Tree, RateableOptions::maxOptionClassID, and root.

void CTacticDesignerDlgBar::OnSendButton (  )  [protected]

Definition at line 598 of file TacticDesignerDlgBar.cpp.

References CRobotControlQueuesToRobots::allRobots, OutMessage::bin, fillTacticEntry(), OutMessage::finishMessage(), getQueues(), idTacticEntryArray, MessageQueue::out, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.

void CTacticDesignerDlgBar::OnUnfreezeButton (  )  [protected]

Definition at line 620 of file TacticDesignerDlgBar.cpp.

References CRobotControlQueuesToRobots::allRobots, OutMessage::bin, OutMessage::finishMessage(), getQueues(), idFreezeRequest, int(), MessageQueue::out, CRobotControlQueues::toPhysical, and CRobotControlQueues::toSimulated.


Member Data Documentation

CButton CTacticDesignerDlgBar::m_add

Definition at line 47 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog(), and onSelChanged().

CButton CTacticDesignerDlgBar::m_del

Definition at line 48 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog(), and onSelChanged().

CButton CTacticDesignerDlgBar::m_freeze

Definition at line 45 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

CListBox CTacticDesignerDlgBar::m_List

Definition at line 50 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog(), onListSelChanged(), and onSelChanged().

CButton CTacticDesignerDlgBar::m_merge

Definition at line 44 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

CButton CTacticDesignerDlgBar::m_new

Definition at line 40 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

CButton CTacticDesignerDlgBar::m_open

Definition at line 41 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

CButton CTacticDesignerDlgBar::m_save

Definition at line 42 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

CButton CTacticDesignerDlgBar::m_send

Definition at line 43 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

CTreeCtrl CTacticDesignerDlgBar::m_Tree

Definition at line 49 of file TacticDesignerDlgBar.h.

Referenced by AddFromFile(), AddTacticEntry(), fillTacticEntry(), OnAddButton(), OnDelButton(), OnInitDialog(), onListSelChanged(), OnNewButton(), and onSelChanged().

CButton CTacticDesignerDlgBar::m_unfreeze

Definition at line 46 of file TacticDesignerDlgBar.h.

Referenced by OnInitDialog().

HTREEITEM CTacticDesignerDlgBar::root [private]

Definition at line 27 of file TacticDesignerDlgBar.h.

Referenced by AddFromFile(), AddTacticEntry(), fillTacticEntry(), OnInitDialog(), OnNewButton(), and onSelChanged().

int CTacticDesignerDlgBar::TECount [private]

Definition at line 28 of file TacticDesignerDlgBar.h.

Referenced by AddFromFile(), AddTacticEntry(), and CTacticDesignerDlgBar().


The documentation for this class was generated from the following files:
Generated on Thu Dec 7 01:25:47 2006 for DT2005.panorama by  doxygen 1.4.7