From owner-p4-projects Sat Sep 14 21:13:46 2002 Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 24AB137B401; Sat, 14 Sep 2002 21:13:44 -0700 (PDT) Delivered-To: perforce@freebsd.org Received: from mx1.FreeBSD.org (mx1.FreeBSD.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id C8FC937B400 for ; Sat, 14 Sep 2002 21:13:43 -0700 (PDT) Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id 7671F43E3B for ; Sat, 14 Sep 2002 21:13:43 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: from freefall.freebsd.org (perforce@localhost [127.0.0.1]) by freefall.freebsd.org (8.12.4/8.12.4) with ESMTP id g8F4DhJU098306 for ; Sat, 14 Sep 2002 21:13:43 -0700 (PDT) (envelope-from bb+lists.freebsd.perforce@cyrus.watson.org) Received: (from perforce@localhost) by freefall.freebsd.org (8.12.4/8.12.4/Submit) id g8F4DhIp098303 for perforce@freebsd.org; Sat, 14 Sep 2002 21:13:43 -0700 (PDT) Date: Sat, 14 Sep 2002 21:13:43 -0700 (PDT) Message-Id: <200209150413.g8F4DhIp098303@freefall.freebsd.org> X-Authentication-Warning: freefall.freebsd.org: perforce set sender to bb+lists.freebsd.perforce@cyrus.watson.org using -f From: Robert Watson Subject: PERFORCE change 17505 for review To: Perforce Change Reviews Sender: owner-p4-projects@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG http://people.freebsd.org/~peter/p4db/chv.cgi?CH=17505 Change 17505 by rwatson@rwatson_paprika on 2002/09/14 21:13:42 Update comments to be more suggestive about how the back-end installer should be hooked in. Affected files ... .. //depot/projects/trustedbsd/misc/kmlsinstall/kmlsinstaller.cc#2 edit Differences ... ==== //depot/projects/trustedbsd/misc/kmlsinstall/kmlsinstaller.cc#2 (text+ko) ==== @@ -97,7 +97,9 @@ wizard->setHelpEnabled(page1, FALSE); /* - * Page 2: Configuration options. + * Page 2: Configuration options. Any necessary choices regarding + * the installation process should go on this page, or pages + * inserted immediately following it. */ QVBox *page2 = new QVBox(wizard); @@ -131,7 +133,7 @@ wizard->setHelpEnabled(page2, FALSE); /* - * Page 3: Conclusion. + * Page 3: Conclusion. Last warnings issued here. */ QLabel *page3 = new QLabel(wizard); page3->setText( @@ -168,10 +170,20 @@ if (wizard->exec() == FALSE) close(); + /* + * Don't permit the window to be closed from here until the + * installation is done. + */ exit_ok = false; - /* Install happens here, I suppose. */ - + /* + * Install happens here, I suppose. Any configuration options + * selected by the user should be applied. Adjust the number + * of steps below to reflect real-world steps. Update the + * status bar if needed, or status information on the Progress + * Dialog. Presumably invoking system() is the way to go + * when calling out to scripts. + */ QProgressDialog *progressdialog = new QProgressDialog(this, "TrustedBSD MLS Installation in Progress", TRUE); progressdialog->setTotalSteps(5); @@ -191,6 +203,10 @@ QMessageBox::information(this, "MLS Installation Complete!", "MLS support is now installed; reboot the system to start MLS."); + /* + * Re-enable window closing so that we can generate an exit + * event. + */ exit_ok = true; KMainWindow::close(); To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe p4-projects" in the body of the message