zz_newPartDialog.cpp

changeset 160
edcb03f3ef75
parent 158
499286fcbf37
child 161
c9fba92c4e35
equal deleted inserted replaced
159:7afedbbefeb0 160:edcb03f3ef75
82 82
83 // ============================================================================= 83 // =============================================================================
84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * 84 // * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * *
85 // ============================================================================= 85 // =============================================================================
86 void NewPartDialog::StaticDialog () { 86 void NewPartDialog::StaticDialog () {
87 NewPartDialog dlg (g_ForgeWindow); 87 NewPartDialog dlg (g_win);
88 if (dlg.exec ()) { 88 if (dlg.exec ()) {
89 newFile (); 89 newFile ();
90 90
91 short idx; 91 short idx;
92 str zAuthor = dlg.le_author->text (); 92 str zAuthor = dlg.le_author->text ();
93 vector<LDObject*>& objs = g_CurrentFile->objects; 93 vector<LDObject*>& objs = g_curfile->m_objs;
94 94
95 idx = dlg.rb_BFC->value (); 95 idx = dlg.rb_BFC->value ();
96 const LDBFC::Type eBFCType = 96 const LDBFC::Type eBFCType =
97 (idx == BFCBOX_CCW) ? LDBFC::CertifyCCW : 97 (idx == BFCBOX_CCW) ? LDBFC::CertifyCCW :
98 (idx == BFCBOX_CW) ? LDBFC::CertifyCW : 98 (idx == BFCBOX_CW) ? LDBFC::CertifyCW :
114 114
115 objs.push_back (new LDEmpty); 115 objs.push_back (new LDEmpty);
116 objs.push_back (new LDBFC (eBFCType)); 116 objs.push_back (new LDBFC (eBFCType));
117 objs.push_back (new LDEmpty); 117 objs.push_back (new LDEmpty);
118 118
119 g_ForgeWindow->refresh (); 119 g_win->refresh ();
120 } 120 }
121 } 121 }

mercurial