예제 #1
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e F i l e R p t                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target report file metrics data.                     //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveFileRpt(
            ToolCommonData.eToolIds crntToolId,
            ReportCore.eRptFileFmt rptFileFmt,
            ReportCore.eRptChkMarks rptChkMarks,
            Boolean flagOptRptWrap)
        {
            Int32 tmpFmt      = (Int32)rptFileFmt;
            Int32 tmpChkMarks = (Int32)rptChkMarks;

            if (crntToolId == ToolCommonData.eToolIds.MakeOverlay)
            {
                ToolMakeOverlayPersist.saveDataRpt(tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintLang)
            {
                ToolPrintLangPersist.saveDataRpt(tmpFmt, tmpChkMarks,
                                                 flagOptRptWrap);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnAnalyse)
            {
                ToolPrnAnalysePersist.saveDataRpt(tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SoftFontGenerate)
            {
                ToolSoftFontGenPersist.saveDataRpt(tmpFmt, tmpChkMarks);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.saveDataRpt(tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SymbolSetGenerate)
            {
                ToolSymbolSetGenPersist.saveDataRpt(tmpFmt);
            }
        }
예제 #2
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d F i l e R p t                                //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current target report file metrics data.                      //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsLoadFileRpt(
            ToolCommonData.eToolIds crntToolId)
        {
            Int32 tmpFmt      = 0,
                  tmpChkMarks = 0;

            Byte indxFmtNA    = (Byte)ReportCore.eRptFileFmt.NA;
            Byte indxOptChkNA = (Byte)ReportCore.eRptChkMarks.NA;

            Boolean flagNA = false;

            //----------------------------------------------------------------//

            if (crntToolId == ToolCommonData.eToolIds.MakeOverlay)
            {
                ToolMakeOverlayPersist.loadDataRpt(ref tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintLang)
            {
                ToolPrintLangPersist.loadDataRpt(ref tmpFmt, ref tmpChkMarks,
                                                 ref _flagOptRptWrap);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnAnalyse)
            {
                ToolPrnAnalysePersist.loadDataRpt(ref tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SoftFontGenerate)
            {
                ToolSoftFontGenPersist.loadDataRpt(ref tmpFmt,
                                                   ref tmpChkMarks);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.loadDataRpt(ref tmpFmt);
            }
            else if (crntToolId == ToolCommonData.eToolIds.SymbolSetGenerate)
            {
                ToolSymbolSetGenPersist.loadDataRpt(ref tmpFmt);
            }
            else
            {
                flagNA = true;
            }

            //----------------------------------------------------------------//

            if (flagNA)
            {
                tmpFmt = indxFmtNA;
            }
            else
            {
                if (tmpFmt >= indxFmtNA)
                {
                    tmpFmt = 0;
                }

                if (tmpChkMarks >= indxOptChkNA)
                {
                    tmpChkMarks = 0;
                }
            }

            _rptFileFmt  = (ReportCore.eRptFileFmt)tmpFmt;
            _rptChkMarks = (ReportCore.eRptChkMarks)tmpChkMarks;
        }
예제 #3
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s S a v e F i l e C a p t                              //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Store current target File capture metrics data.                    //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsSaveFileCapt(
            ToolCommonData.eToolIds crntToolId,
            ToolCommonData.eToolSubIds crntToolSubId,
            ToolCommonData.ePrintLang crntPDL,
            String saveFilename)
        {
            _targetType = eTarget.File;

            _saveFilename = saveFilename;

            TargetPersist.saveDataCommon((Int32)_targetType);

            //----------------------------------------------------------------//

            if (crntToolId == ToolCommonData.eToolIds.FontSample)
            {
                ToolFontSamplePersist.saveDataCapture(crntPDL,
                                                      saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.FormSample)
            {
                ToolFormSamplePersist.saveDataCapture(crntPDL,
                                                      saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.ImageBitmap)
            {
                ToolImageBitmapPersist.saveDataCapture(crntPDL,
                                                       saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintArea)
            {
                ToolPrintAreaPersist.saveDataCapture(crntPDL,
                                                     saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnPrint)
            {
                ToolPrnPrintPersist.saveDataCapture(crntPDL,
                                                    saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.saveDataCapture(crntPDL,
                                                          saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.TrayMap)
            {
                ToolTrayMapPersist.saveDataCapture(crntPDL,
                                                   saveFilename);
            }

            //----------------------------------------------------------------//

            else if (crntToolId == ToolCommonData.eToolIds.MiscSamples)
            {
                ToolMiscSamplesPersist.saveDataCapture(crntToolSubId,
                                                       crntPDL,
                                                       saveFilename);
            }

            //----------------------------------------------------------------//

            //  else
            //     Tool MakeOverlay // ***** Do DUMMY procs ? ***** //
            //     Tool PrintLang
            //     Tool PrnAnalyse
            //     Tool SoftFontGen
            //     Tool SymbolSetGen
            //     Tool XXXDiags
        }
예제 #4
0
        //--------------------------------------------------------------------//
        //                                                        M e t h o d //
        // m e t r i c s L o a d F i l e C a p t                              //
        //--------------------------------------------------------------------//
        //                                                                    //
        // Load current target File capture metrics data.                     //
        //                                                                    //
        //--------------------------------------------------------------------//

        public static void metricsLoadFileCapt(
            ToolCommonData.eToolIds crntToolId,
            ToolCommonData.eToolSubIds crntToolSubId,
            ToolCommonData.ePrintLang crntPDL)
        {
            //----------------------------------------------------------------//

            if (crntToolId == ToolCommonData.eToolIds.FontSample)
            {
                ToolFontSamplePersist.loadDataCapture(crntPDL,
                                                      ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.FormSample)
            {
                ToolFormSamplePersist.loadDataCapture(crntPDL,
                                                      ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.ImageBitmap)
            {
                ToolImageBitmapPersist.loadDataCapture(crntPDL,
                                                       ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrintArea)
            {
                ToolPrintAreaPersist.loadDataCapture(crntPDL,
                                                     ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.PrnPrint)
            {
                ToolPrnPrintPersist.loadDataCapture(crntPDL,
                                                    ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.StatusReadback)
            {
                ToolStatusReadbackPersist.loadDataCapture(crntPDL,
                                                          ref _saveFilename);
            }
            else if (crntToolId == ToolCommonData.eToolIds.TrayMap)
            {
                ToolTrayMapPersist.loadDataCapture(crntPDL,
                                                   ref _saveFilename);
            }

            //----------------------------------------------------------------//

            else if (crntToolId == ToolCommonData.eToolIds.MiscSamples)
            {
                ToolMiscSamplesPersist.loadDataCapture(
                    crntToolSubId,
                    crntPDL,
                    ref _saveFilename);
            }

            //----------------------------------------------------------------//

            else
            {
                //     Tool MakeOverlay // ***** Do DUMMY procs ? ***** //
                //     Tool PrintLang
                //     Tool PrnAnalyse
                //     Tool SoftFontGen
                //     Tool SymbolSetGen
                //     Tool XXXDiags

                _saveFilename = "";
            }
        }