CBEditProjPrefsDialog::CBEditProjPrefsDialog ( const JBoolean reopenTextFiles, const JBoolean doubleSpaceCompile, const JBoolean rebuildMakefileDaily, const CBProjectTable::DropFileAction dropFileAction ) : JXDialogDirector(CBGetApplication(), kJTrue) { BuildWindow(reopenTextFiles, doubleSpaceCompile, rebuildMakefileDaily, dropFileAction); ListenTo(this); }
CBEditTextPrefsDialog::CBEditTextPrefsDialog ( CBTextDocument* doc ) : JXDialogDirector(CBGetApplication(), kJTrue) { itsDoc = doc; itsChooseColorDialog = NULL; itsOrigEmulatorIndex = itsEmulatorIndex = kEmulatorToMenuIndex[ CBGetPrefsManager()->GetEmulator() ]; BuildWindow(doc); ListenTo(this); }
void CBEditProjPrefsDialog::UpdateSettings() { (CBGetApplication())->DisplayBusyCursor(); const JBoolean reopenTextFiles = itsReopenTextFilesCB->IsChecked(); const JBoolean doubleSpaceCompile = itsDoubleSpaceCB->IsChecked(); const JBoolean rebuildMakefileDaily = itsRebuildMakefileDailyCB->IsChecked(); const CBProjectTable::DropFileAction dropFileAction = (CBProjectTable::DropFileAction) itsDropFileActionRG->GetSelectedItem(); CBDocumentManager* docMgr = CBGetDocumentManager(); JPtrArray<CBProjectDocument>* docList = docMgr->GetProjectDocList(); const JSize docCount = docList->GetElementCount(); for (JIndex i=1; i<=docCount; i++) { (docList->NthElement(i))-> SetProjectPrefs(reopenTextFiles, doubleSpaceCompile, rebuildMakefileDaily, dropFileAction); } }