Open source remastering of the Freespace 2 engine
campaign_tree_view Class Reference

#include <campaigntreeview.h>

Inheritance diagram for campaign_tree_view:

Public Member Functions

void drop_mission (int m, CPoint point)
int add_link (int from, int to)
void remove_mission (int m)
void delete_link (int num)
int get_root_mission ()
void horizontally_align_mission (int num, int dir)
void correct_position (int num)
void free_links ()
void sort_elements ()
int query_alternate_pos (const CPoint &p)
int query_pos (const CPoint &p)
int query_level (const CPoint &p)
void sort_links ()
void realign_tree ()
void construct_tree ()
void initialize ()
virtual void OnInitialUpdate ()

Public Attributes

int total_levels
int total_width

Protected Member Functions

 campaign_tree_view ()
virtual void OnDraw (CDC *pDC)
virtual ~campaign_tree_view ()
afx_msg void OnLButtonDown (UINT nFlags, CPoint point)
afx_msg void OnMouseMove (UINT nFlags, CPoint point)
afx_msg void OnLButtonUp (UINT nFlags, CPoint point)
afx_msg int OnCreate (LPCREATESTRUCT lpCreateStruct)
afx_msg void OnContextMenu (CWnd *pWnd, CPoint point)
afx_msg void OnRemoveMission ()
afx_msg void OnDeleteRow ()
afx_msg void OnInsertRow ()
afx_msg void OnAddRepeat ()
afx_msg void OnEndOfCampaign ()

Detailed Description

Definition at line 49 of file campaigntreeview.h.

Constructor & Destructor Documentation

campaign_tree_view::campaign_tree_view ( )

Definition at line 42 of file campaigntreeview.cpp.

campaign_tree_view::~campaign_tree_view ( )

Definition at line 48 of file campaigntreeview.cpp.

Member Function Documentation

int campaign_tree_view::add_link ( int  from,
int  to 

Definition at line 745 of file campaigntreeview.cpp.

void campaign_tree_view::construct_tree ( )

Definition at line 286 of file campaigntreeview.cpp.

void campaign_tree_view::correct_position ( int  num)

Definition at line 1113 of file campaigntreeview.cpp.

void campaign_tree_view::delete_link ( int  num)

Definition at line 1168 of file campaigntreeview.cpp.

void campaign_tree_view::drop_mission ( int  m,
CPoint  point 

Definition at line 993 of file campaigntreeview.cpp.

void campaign_tree_view::free_links ( )

Definition at line 355 of file campaigntreeview.cpp.

int campaign_tree_view::get_root_mission ( )

Definition at line 1190 of file campaigntreeview.cpp.

void campaign_tree_view::horizontally_align_mission ( int  num,
int  dir 

Definition at line 1135 of file campaigntreeview.cpp.

void campaign_tree_view::initialize ( )

Definition at line 331 of file campaigntreeview.cpp.

void campaign_tree_view::OnAddRepeat ( )

Definition at line 1331 of file campaigntreeview.cpp.

void campaign_tree_view::OnContextMenu ( CWnd *  pWnd,
CPoint  point 

Definition at line 1201 of file campaigntreeview.cpp.

int campaign_tree_view::OnCreate ( LPCREATESTRUCT  lpCreateStruct)

Definition at line 74 of file campaigntreeview.cpp.

void campaign_tree_view::OnDeleteRow ( )

Definition at line 1282 of file campaigntreeview.cpp.

void campaign_tree_view::OnDraw ( CDC *  pDC)

Definition at line 82 of file campaigntreeview.cpp.

void campaign_tree_view::OnEndOfCampaign ( )

Definition at line 1339 of file campaigntreeview.cpp.

void campaign_tree_view::OnInitialUpdate ( )

Definition at line 232 of file campaigntreeview.cpp.

void campaign_tree_view::OnInsertRow ( )

Definition at line 1316 of file campaigntreeview.cpp.

void campaign_tree_view::OnLButtonDown ( UINT  nFlags,
CPoint  point 

Definition at line 495 of file campaigntreeview.cpp.

void campaign_tree_view::OnLButtonUp ( UINT  nFlags,
CPoint  point 

Definition at line 656 of file campaigntreeview.cpp.

void campaign_tree_view::OnMouseMove ( UINT  nFlags,
CPoint  point 

Definition at line 598 of file campaigntreeview.cpp.

void campaign_tree_view::OnRemoveMission ( )

Definition at line 1235 of file campaigntreeview.cpp.

int campaign_tree_view::query_alternate_pos ( const CPoint &  p)

Definition at line 796 of file campaigntreeview.cpp.

int campaign_tree_view::query_level ( const CPoint &  p)

Definition at line 772 of file campaigntreeview.cpp.

int campaign_tree_view::query_pos ( const CPoint &  p)

Definition at line 784 of file campaigntreeview.cpp.

void campaign_tree_view::realign_tree ( )

Definition at line 367 of file campaigntreeview.cpp.

void campaign_tree_view::remove_mission ( int  m)

Definition at line 1249 of file campaigntreeview.cpp.

void campaign_tree_view::sort_elements ( )

Definition at line 1089 of file campaigntreeview.cpp.

void campaign_tree_view::sort_links ( )

Definition at line 404 of file campaigntreeview.cpp.

Member Data Documentation

campaign_tree_link* campaign_tree_view::first_link

Definition at line 73 of file campaigntreeview.h.

int campaign_tree_view::total_levels

Definition at line 71 of file campaigntreeview.h.

int campaign_tree_view::total_width

Definition at line 72 of file campaigntreeview.h.

The documentation for this class was generated from the following files: