Examples of wasCanceled()


Examples of bdsup2sub.gui.conversion.ConversionDialog.wasCanceled()

                        }

                        ConversionDialog conversionDialog = new ConversionDialog(view);
                        conversionDialog.enableOptionMove(model.getMoveCaptions());
                        conversionDialog.setVisible(true);
                        if (!conversionDialog.wasCanceled()) {
                            Core.scanSubtitles();
                            if (model.getMoveCaptions()) {
                                Core.moveAllThreaded(view);
                            }
                            int subIndex = model.getSubIndex();
View Full Code Here

Examples of bdsup2sub.gui.conversion.ConversionDialog.wasCanceled()

            // show dialog
            ConversionDialog trans = new ConversionDialog(view);
            trans.enableOptionMove(false);
            trans.setVisible(true);

            if (!trans.wasCanceled()) {
                // create and show image
                try {
                    if (Core.isReady()) {
                        int subIndex = model.getSubIndex();
                        Core.reScanSubtitles(rOld, fpsTrgOld, delayOld, changeFpsOld, fsXOld, fsYOld);
View Full Code Here

Examples of bdsup2sub.gui.export.ExportDialog.wasCanceled()

                ExportDialog exportDialog = new ExportDialog(path, view);
                exportDialog.setVisible(true);

                String fn = exportDialog.getFilename();
                if (!exportDialog.wasCanceled() && !fn.isEmpty()) {
                    model.setSavePath(FilenameUtils.getParent(fn));
                    model.setSaveFilename(FilenameUtils.removeExtension(FilenameUtils.getName(fn)).replaceAll("_exp$",""));
                    //
                    File fi,fs;
                    if (outputMode == OutputMode.VOBSUB) {
View Full Code Here

Examples of bdsup2sub.gui.palette.DvdPaletteDialog.wasCanceled()

                currentColors[i] = Core.getCurrentDVDPalette().getColor(i+1);
                defaultColors[i] = DEFAULT_DVD_PALETTE.getColor(i+1);
            }
            DvdPaletteDialog dvdPaletteDialog = new DvdPaletteDialog(view, colorNames, currentColors, defaultColors, model.getColorProfilePath());
            dvdPaletteDialog.setVisible(true);
            if (!dvdPaletteDialog.wasCanceled()) {
                currentColors = dvdPaletteDialog.getColors();
                model.setColorProfilePath(dvdPaletteDialog.getPath());
                for (int i=0; i < currentColors.length; i++) {
                    Core.getCurrentDVDPalette().setColor(i+1, currentColors[i]);
                }
View Full Code Here

Examples of bdsup2sub.gui.palette.DvdPaletteDialog.wasCanceled()

                currentColors[i] = Core.getCurSrcDVDPalette().getColor(i);
                defaultColors[i] = Core.getDefSrcDVDPalette().getColor(i);
            }
            DvdPaletteDialog dvdPaletteDialog = new DvdPaletteDialog(view, colorNames, currentColors, defaultColors, model.getColorProfilePath());
            dvdPaletteDialog.setVisible(true);
            if (!dvdPaletteDialog.wasCanceled()) {
                currentColors = dvdPaletteDialog.getColors();
                model.setColorProfilePath(dvdPaletteDialog.getPath());
                Palette p = new Palette(currentColors.length, true);
                for (int i=0; i<currentColors.length; i++) {
                    p.setColor(i, currentColors[i]);
View Full Code Here

Examples of biz.wolschon.finance.jgnucash.AbstractScriptablePlugin.ScriptEditorPanel.wasCanceled()

        f.pack();
        f.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
        f.setVisible(true);

        // if the script was saved, return it to be run
        if (!editor.wasCanceled()
                && getMyProperties().containsKey(
                        getPluginName() + SETTINGS_PREFIX_IMPORTSCRIPT_REGEXP + maxScriptnum)) {
            return maxScriptnum;
        }
        return null;
View Full Code Here

Examples of com.GestDB.sql.SelectConexion.wasCanceled()

            // Abre una conexi�n con un gestor de BBDD
            SelectConexion sc = new SelectConexion(this,true);
            sc.setVisible(true);


            if (!sc.wasCanceled() && sc.isAbrir())
            {
                // preparado la lista de conexiones recientes
                Vector vConexionesRecientes = new Vector();
                if(propiedades.containsKey("gestor.recent_connections"))
                {
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

        gd.addNumericField("Radius (Sigma)", sigma, 1, 6, "pixels");
        gd.addNumericField("Mask Weight (0.1-0.9)", weight,2);
        gd.addPreviewCheckbox(pfr);
        gd.addDialogListener(this);
        gd.showDialog();                        //input by the user (or macro) happens here
        if (gd.wasCanceled()) return DONE;
        if (oldMacro) sigma /= 2.5;
        IJ.register(this.getClass());           //protect static class variables (parameters) from garbage collection
        return IJ.setupDialog(imp, flags);      //ask whether to process all slices of stack (if a stack)
    }
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

        gd.addChoice("Which Outliers", outlierStrings, outlierStrings[whichOutliers]);
      }
      gd.addPreviewCheckbox(pfr);    //passing pfr makes the filter ready for preview
      gd.addDialogListener(this);    //the DialogItemChanged method will be called on user input
      gd.showDialog();              //display the dialog; preview runs in the  now
      if (gd.wasCanceled()) return DONE;
      IJ.register(this.getClass());   //protect static class variables (filter parameters) from garbage collection
        }
    return IJ.setupDialog(imp, flags)//ask whether to process all slices of stack (if a stack)
    }
View Full Code Here

Examples of ij.gui.GenericDialog.wasCanceled()

    stopSlice  = imp.getStackSize();

    // Build control dialog.
    GenericDialog gd = buildControlDialog(startSlice,stopSlice);
    gd.showDialog();
    if(gd.wasCanceled()) return;

    if(!imp.lock()) return;   // exit if in use
    long tstart = System.currentTimeMillis();
    setStartSlice((int)gd.getNextNumber());
    setStopSlice((int)gd.getNextNumber());
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.