Changeset 7505
- Timestamp:
- 2004-05-31T14:47:49+12:00 (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/gli/src/org/greenstone/gatherer/gui/Preferences.java
r7483 r7505 74 74 private JCheckBox use_proxy_checkbox; 75 75 private JCheckBox view_extracted_metadata_checkbox; 76 private JCheckBox workflow_browse;77 76 private JCheckBox workflow_create; 78 77 private JCheckBox workflow_mirror; … … 81 80 private JCheckBox workflow_design; 82 81 private JCheckBox workflow_export; 83 private JCheckBox workflow_preview;84 82 private JComboBox language_combobox; 85 83 private JComboBox servlet_combobox; // GS3 … … 92 90 private JLabel proxy_host_label; 93 91 private JLabel proxy_port_label; 94 //private JLabel recursion_depth_label;95 92 private JLabel title_label; 96 93 private JPanel servlet_pane; … … 100 97 private JRadioButton systems_mode_radio_button; 101 98 private JSpinner proxy_port_field; 102 //private JSpinner recursion_depth_spinner;103 99 private JTabbedPane tab_pane; 104 100 private JTextArea mode_description_textarea; … … 461 457 } 462 458 463 // Recursion464 /*465 JPanel recursion_depth_pane = new JPanel();466 recursion_depth_label = new JLabel();467 recursion_depth_label.setPreferredSize(LABEL_SIZE);468 Dictionary.registerText(recursion_depth_label, "Preferences.General.Recursion_Depth");469 recursion_depth_spinner = new JSpinner(new SpinnerNumberModel(Gatherer.config.getInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC), 0, Integer.MAX_VALUE, 1));470 Dictionary.registerTooltip(recursion_depth_spinner, "Preferences.General.Recursion_Depth_Tooltip");471 */472 473 459 // Connect 474 460 language_combobox.addActionListener(new LanguageComboboxListener()); … … 483 469 language_pane.add(language_combobox, BorderLayout.CENTER); 484 470 485 //recursion_depth_pane.setLayout(new BorderLayout());486 //recursion_depth_pane.add(recursion_depth_label, BorderLayout.WEST);487 //recursion_depth_pane.add(recursion_depth_spinner, BorderLayout.CENTER);488 489 471 general_pane.setBorder(BorderFactory.createEmptyBorder(5,5,5,5)); 490 472 general_pane.setLayout(new GridLayout(5,1,0,5)); 491 473 general_pane.add(email_pane); 492 474 general_pane.add(language_pane); 493 //general_pane.add(recursion_depth_pane);494 475 general_pane.add(view_extracted_metadata_checkbox); 495 476 general_pane.add(show_file_size_checkbox); … … 605 586 Dictionary.registerText(title_label, "Preferences.Workflow.Title"); 606 587 607 workflow_browse = new JCheckBox();608 workflow_browse.setSelected(Gatherer.config.get("workflow.browse", false));609 workflow_browse.setPreferredSize(ROW_SIZE);610 Dictionary.registerText(workflow_browse, "Preferences.Workflow.Browse");611 612 588 workflow_mirror = new JCheckBox(); 613 589 workflow_mirror.setSelected(Gatherer.config.get("workflow.mirror", false)); … … 640 616 Dictionary.registerText(workflow_create, "Preferences.Workflow.Create"); 641 617 642 workflow_preview = new JCheckBox();643 workflow_preview.setSelected(Gatherer.config.get("workflow.preview", false));644 workflow_preview.setPreferredSize(ROW_SIZE);645 Dictionary.registerText(workflow_preview, "Preferences.Workflow.Preview");646 647 618 JPanel predefined_pane = new JPanel(); 648 619 predefined_label = new JLabel(); … … 656 627 checklist_pane.setLayout(new BoxLayout(checklist_pane, BoxLayout.Y_AXIS)); 657 628 checklist_pane.add(title_label); 658 if (Gatherer.config.get("workflow.browse", true)) {659 checklist_pane.add(workflow_browse);660 }661 629 if (Gatherer.config.get("workflow.mirror", true)) { 662 630 checklist_pane.add(workflow_mirror); … … 677 645 checklist_pane.add(workflow_create); 678 646 } 679 if (Gatherer.config.get("workflow.preview", true)) { 680 checklist_pane.add(workflow_preview); 681 } 647 682 648 predefined_pane.setLayout(new BorderLayout(5,0)); 683 649 predefined_pane.add(predefined_label, BorderLayout.WEST); … … 754 720 ClassifierManager.clearClassifierCache(); 755 721 } 756 //Gatherer.config.setInt("general.max_folder_depth", Configuration.COLLECTION_SPECIFIC, ((Integer)recursion_depth_spinner.getValue()).intValue());757 722 758 723 // Mode preferences … … 793 758 794 759 // Workflow preferences 795 // Gatherer.config.set("workflow.browse", false, workflow_browse.isSelected());796 760 // Gatherer.config.set("workflow.mirror", false, workflow_mirror.isSelected()); 797 761 // Gatherer.config.set("workflow.gather", false, workflow_gather.isSelected()); … … 800 764 // Gatherer.config.set("workflow.export", false, workflow_export.isSelected()); 801 765 // Gatherer.config.set("workflow.create", false, workflow_create.isSelected()); 802 // Gatherer.config.set("workflow.preview", false, workflow_preview.isSelected());803 // Gatherer.g_man.workflowUpdate("Hunt", workflow_browse.isSelected());804 766 // Gatherer.g_man.workflowUpdate("Mirror", workflow_mirror.isSelected()); 805 767 // Gatherer.g_man.workflowUpdate("Gather", workflow_gather.isSelected()); … … 808 770 // Gatherer.g_man.workflowUpdate("Export", workflow_export.isSelected()); 809 771 // Gatherer.g_man.workflowUpdate("Create", workflow_create.isSelected()); 810 // Gatherer.g_man.workflowUpdate("Preview", workflow_preview.isSelected()); 772 773 // Always save configuration changes immediately (in case the GLI crashes) 774 Gatherer.config.save(); 775 811 776 // Hide dialog 812 777 if(close) { … … 899 864 } 900 865 public void run() { 901 workflow_browse.setSelected(element.getEnabled("browse"));902 866 workflow_create.setSelected(element.getEnabled("create")); 903 867 workflow_mirror.setSelected(element.getEnabled("mirror")); … … 906 870 workflow_design.setSelected(element.getEnabled("design")); 907 871 workflow_export.setSelected(element.getEnabled("export")); 908 workflow_preview.setSelected(element.getEnabled("preview"));909 872 } 910 873 }
Note:
See TracChangeset
for help on using the changeset viewer.