Changeset 1541 for trunk/gsinstaller/gsinstall.cpp
- Timestamp:
- 2000-09-13T05:41:01+12:00 (24 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gsinstaller/gsinstall.cpp
r1539 r1541 38 38 bool config_complete = false; 39 39 40 dirSelector *rootSelector = NULL; 41 40 42 typedef vector<dirSelector *> dirSelVector; 41 43 42 44 class GSInstall : public installManager 43 { 45 { 44 46 private: 45 47 configureFile *configFile; // the installation configure file … … 680 682 { case PSN_SETACTIVE: 681 683 { dirSelector *selector = ((dirSelector *) GetWindowLong(Dialog, GWL_USERDATA)); 684 685 // bodge to set the dialogue path to the correct value 686 if (selector != rootSelector) 687 { selector->setPath(rootSelector->selectedPath()); 688 SetDlgItemText(Dialog, dirpath_PATH, selector->selectedPath()); 689 } 690 682 691 if (selector->isFinal()) 683 692 { PropSheet_SetWizButtons(GetParent(Dialog), PSWIZB_BACK | PSWIZB_FINISH); … … 734 743 { GSInstall_dirPathData *data = new GSInstall_dirPathData; 735 744 745 // create the directory Selector 736 746 data->dirSelect = new dirSelector(prompt, optPrompt, title, installer.installPath()); 737 747 data->dirSelect->setFinal(isFinal); 738 748 749 // if there is no extant root selector, make this it 750 if (rootSelector == NULL) 751 { rootSelector = data->dirSelect; 752 } 753 754 // add this directory selector to the installer 739 755 installer.addSelectedDir(data->dirSelect); 740 756 757 // set up the rest of the page 741 758 ppage.dwSize = sizeof(PROPSHEETPAGE); 742 759 ppage.dwFlags = PSP_USETITLE; … … 788 805 } 789 806 else // cheat as the executable etc. is already installed 790 { 807 { 791 808 pshead.ppsp = &ppage[1]; 792 809 } … … 815 832 816 833 long FAR PASCAL GSInstallWindProc(HWND Window, WORD Message, WPARAM wParameter, LPARAM lParameter) 817 { 834 { 818 835 long reply = 0; 819 836 … … 830 847 831 848 case WM_USER: 832 { 849 { 833 850 // uninstall action 834 851 if (strstr(app_cmdLine, "-u") != NULL) … … 1007 1024 1008 1025 // config_init("ReTreeval"); 1009 1026 1010 1027 // accel = LoadAccelerators(Current, "ReTreevalMenu"); 1011 1028
Note:
See TracChangeset
for help on using the changeset viewer.