#include <TacticDesignerDlgBar.h>
Inheritance diagram for CTacticDesignerDlgBar:
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 |
Definition at line 24 of file TacticDesignerDlgBar.h.
anonymous enum |
CTacticDesignerDlgBar::CTacticDesignerDlgBar | ( | ) |
CTacticDesignerDlgBar::~CTacticDesignerDlgBar | ( | ) |
Destructor
Definition at line 24 of file TacticDesignerDlgBar.cpp.
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] |
void CTacticDesignerDlgBar::OnDelButton | ( | ) | [protected] |
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] |
void CTacticDesignerDlgBar::OnMergeButton | ( | ) | [protected] |
void CTacticDesignerDlgBar::OnNewButton | ( | ) | [protected] |
void CTacticDesignerDlgBar::OnOpenButton | ( | ) | [protected] |
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.
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 |
CListBox CTacticDesignerDlgBar::m_List |
Definition at line 50 of file TacticDesignerDlgBar.h.
Referenced by OnInitDialog(), onListSelChanged(), and onSelChanged().
CButton CTacticDesignerDlgBar::m_merge |
CButton CTacticDesignerDlgBar::m_new |
CButton CTacticDesignerDlgBar::m_open |
CButton CTacticDesignerDlgBar::m_save |
CButton CTacticDesignerDlgBar::m_send |
CTreeCtrl CTacticDesignerDlgBar::m_Tree |
Definition at line 49 of file TacticDesignerDlgBar.h.
Referenced by AddFromFile(), AddTacticEntry(), fillTacticEntry(), OnAddButton(), OnDelButton(), OnInitDialog(), onListSelChanged(), OnNewButton(), and onSelChanged().
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().