14 #include "IgnoreOrdersDlg.h"
20 static char THIS_FILE[] = __FILE__;
38 CDialog::DoDataExchange(pDX);
65 int i, default_orders, last_bottom, orders_accepted;
70 CDialog::OnInitDialog();
72 check_boxes[0].button = (CButton *)GetDlgItem( IDC_CHECK1 );
73 check_boxes[1].button = (CButton *)GetDlgItem( IDC_CHECK2 );
74 check_boxes[2].button = (CButton *)GetDlgItem( IDC_CHECK3 );
75 check_boxes[3].button = (CButton *)GetDlgItem( IDC_CHECK4 );
76 check_boxes[4].button = (CButton *)GetDlgItem( IDC_CHECK5 );
77 check_boxes[5].button = (CButton *)GetDlgItem( IDC_CHECK6 );
78 check_boxes[6].button = (CButton *)GetDlgItem( IDC_CHECK7 );
79 check_boxes[7].button = (CButton *)GetDlgItem( IDC_CHECK8 );
80 check_boxes[8].button = (CButton *)GetDlgItem( IDC_CHECK9 );
81 check_boxes[9].button = (CButton *)GetDlgItem( IDC_CHECK10 );
96 if ( default_orders == 0 )
97 default_orders = these_orders;
98 else if ( default_orders != these_orders )
106 m_num_checks_active = 0;
119 check_boxes[m_num_checks_active].button->SetWindowText(
Comm_orders[i].
name);
121 m_num_checks_active++;
127 GetWindowRect( &window_size );
135 check_boxes[
i].button->GetWindowRect( &check_size );
136 check_boxes[
i].button->ShowWindow(SW_HIDE);
139 if ( last_bottom != 0 )
140 window_size.bottom -= (last_bottom - check_size.bottom );
142 last_bottom = check_size.bottom;
147 MoveWindow( &window_size,
TRUE );
152 for ( i = 0; i < m_num_checks_active; i++ ) {
153 if ( check_boxes[i].
id & orders_accepted )
154 check_boxes[
i].button->SetCheck(1);
166 for ( i = 0; i < m_num_checks_active; i++ ) {
167 if ( check_boxes[i].
id & orders_accepted )
168 check_boxes[
i].button->SetCheck(1);
172 for ( i = 0; i < m_num_checks_active; i++ ) {
174 if ( check_boxes[i].
id & orders_accepted ) {
176 if ( !check_boxes[i].button->GetCheck() )
177 check_boxes[i].button->SetCheck(2);
180 if ( check_boxes[i].button->GetCheck() )
181 check_boxes[i].button->SetCheck(2);
191 sprintf(buf,
"Player orders accepted" );
202 int orders_accepted,
i;
223 if ( box_value == 2 )
227 if ( box_value == 1 )
245 if (button->GetCheck() == 1)
256 if (button->GetCheck() == 1)
267 if (button->GetCheck() == 1)
278 if (button->GetCheck() == 1)
289 if (button->GetCheck() == 1)
300 if (button->GetCheck() == 1)
311 if (button->GetCheck() == 1)
322 if (button->GetCheck() == 1)
333 if (button->GetCheck() == 1)
344 if (button->GetCheck() == 1)
ignore_orders_dlg(CWnd *pParent=NULL)
#define NUM_COMM_ORDER_ITEMS
virtual void DoDataExchange(CDataExchange *pDX)
#define END_OF_LIST(head)
GLenum GLuint GLenum GLsizei const GLchar * buf
check_box_info check_boxes[MAX_CHECKBOXES]
sprintf(buf,"(%f,%f,%f)", v3->xyz.x, v3->xyz.y, v3->xyz.z)
comm_order Comm_orders[NUM_COMM_ORDER_ITEMS]
GLuint const GLchar * name
SCP_vector< ship_info > Ship_info
int ship_get_default_orders_accepted(ship_info *sip)