Changeset 4415


Ignore:
Timestamp:
2003-05-30T12:05:46+12:00 (21 years ago)
Author:
kjdon
Message:

the modal dialog now is one of our special ModalDialogs which only block the parent, enabling the use of help files while the dialog is open. A SimpleMenuBar with help on it has been added to the dialog

Location:
trunk/gli/src/org/greenstone/gatherer/cdm
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/gli/src/org/greenstone/gatherer/cdm/ArgumentConfiguration.java

    r4366 r4415  
    8888import org.greenstone.gatherer.util.Utility;
    8989import org.greenstone.gatherer.valuetree.GValueModel;
     90import org.greenstone.gatherer.gui.SimpleMenuBar;
     91import org.greenstone.gatherer.gui.ModalDialog;
     92
    9093/** This class provides us with a dialog box which allows us to edit the arguments of either a PlugIn or a Classifier.
    9194 * @author John Thompson, Greenstone Digital Library, University of Waikato
     
    103106
    104107public class ArgumentConfiguration
    105     extends JDialog
     108    extends ModalDialog
    106109    implements ActionListener {
    107110    /** The data whose arguments we are editing. */
     
    132135    static final private Dimension LIST_SIZE = new Dimension(380, 50);
    133136    /** The size used for the dialog. */
    134     static final private Dimension SIZE = new Dimension(800, 400);
     137    static final private Dimension SIZE = new Dimension(800, 425);
    135138    /** Constructor.
    136139     * @param gatherer A reference to the <strong>Gatherer</strong>.
     
    150153    setSize(SIZE);
    151154    setTitle(get("Title"));
     155    setJMenuBar(new SimpleMenuBar("7.0")); // can we tell whether
     156    // we are doing a classifier or plugin, to make the help
     157    //more specific??   
    152158    JPanel button_pane = new JPanel();
    153159    cancel = new JButton(get("General.Cancel"));
     
    251257      */
    252258    public boolean display() {
    253     show();
     259    setVisible(true);
    254260    return success;
    255261    }
  • trunk/gli/src/org/greenstone/gatherer/cdm/TranslationManager.java

    r4366 r4415  
    8686import org.greenstone.gatherer.cdm.Language;
    8787import org.greenstone.gatherer.cdm.LanguageManager;
     88import org.greenstone.gatherer.gui.SimpleMenuBar;
     89import org.greenstone.gatherer.gui.ModalDialog;
     90
    8891/** This class provides a graphical interface to allow a user to quickly and conviently (ie all in one place) translate the text fragments associated with general metadata and indexes into each of the assigned languages in the collection. It should provide clear controls for the editing of these text fragments, plus clear indicate what languages still need further translation, which it will do through a combination of coloring and other visual indicators.
    8992 * @author John Thompson, Greenstone Digital Library, University of Waikato
     
    9194 */
    9295public class TranslationManager
    93     extends JDialog {
     96    extends ModalDialog {
    9497    /** A reference to our creator, the CollectionDesignManager. */
    9598    private CollectionDesignManager manager = null;
     
    147150    static final private Dimension FEATURE_SIZE = new Dimension(200, 400);
    148151    /** The default size of the translation dialog. */
    149     static final private Dimension SIZE = new Dimension(800, 450);
     152    static final private Dimension SIZE = new Dimension(800, 475);
    150153    /** Constructor.
    151154     * @param gatherer A reference to the <strong>Gatherer</strong>.
     
    156159     */
    157160    public TranslationManager(Gatherer gatherer, CollectionDesignManager manager) {
    158     super();
     161    super(gatherer.g_man);
    159162    this.dialog = this;
    160163    this.gatherer = gatherer;
     
    181184    setModal(true);
    182185    setSize(SIZE);
     186    setJMenuBar(new SimpleMenuBar("7.5")); 
    183187    close_button = new JButton(get("General.Close"));
    184188    content_pane = (JPanel) getContentPane();
     
    260264    }
    261265    setLocation((screen_size.width - SIZE.width) / 2, (screen_size.height - SIZE.height) / 2);
    262     show();
     266    setVisible(true);
    263267    }
    264268    /** Destructor
Note: See TracChangeset for help on using the changeset viewer.