コード例 #1
0
ファイル: Wizard.cs プロジェクト: MonoBrasil/historico
        public Wizard(IList inputModel)
            : base(GettextCatalog.GetString ("Code generation"))
        {
            _inputModel = inputModel;
            _generators = new ArrayList ();

            _druid = new Gnome.Druid ();
            _start = new DruidPageEdge (Gnome.EdgePosition.Start);
            _finish = new DruidPageEdge (Gnome.EdgePosition.Finish);
            _pLanguages = new DruidPageStandard ();
            _parametersDruid = new DruidPageStandard ();

            _druid.AppendPage (_start);
            _druid.AppendPage (_pLanguages);
            _druid.AppendPage (_parametersDruid);
            _druid.AppendPage (_finish);
            _druid.Cancel += DruidCancel;

            _start.Title = GettextCatalog.GetString ("Code Generation");
            _start.Text = GettextCatalog.GetString ("In the following pages you will be able to create source code from the UML model.\n\nClick Forward to continue");

            _finish.Title = GettextCatalog.GetString ("Start code generation");
            _finish.Text = GettextCatalog.GetString ("Click Apply to proceed the code generation, when finished a dialog window will pop up.");
            _finish.FinishClicked += GenerateCode;

            CreatePLanguagesPage ();
            CreateParametersPage ();

            Add (_druid);

            SetDefaultSize (530, 250);
            Modal = true;
            WindowPosition = Gtk.WindowPosition.CenterAlways;
            LookForCodeGenerators ();
            Resize (1, 1) ;
        }
コード例 #2
0
ファイル: Wizard.cs プロジェクト: MonoBrasil/historico
        public Wizard()
            : base(GettextCatalog.GetString ("Reverse Engineering"))
        {
            _druid = new Gnome.Druid ();
            _start = new DruidPageEdge (Gnome.EdgePosition.Start);
            _finish = new DruidPageEdge (Gnome.EdgePosition.Finish);
            _pImportingLevel = new DruidPageStandard ();
            _pImportingLevelAccess = new DruidPageStandard ();
            _pImportingParameters = new DruidPageStandard ();
            _pAssemblies = new DruidPageStandard ();
            _assemblyImporter = new AssemblyImporter ();
            _importingLevel = AssemblyImporterLevel.AssemblyImport;

            _start.Title = GettextCatalog.GetString ("Reverse Engineering");
            _start.Text = GettextCatalog.GetString ("In the following pages you will be able to import .NET assemblies and then build its UML model.\n\nClick Forward to continue");

            _finish.Title = GettextCatalog.GetString ("Start reverse engineering");
            _finish.Text = GettextCatalog.GetString ("Click Apply to proceed the reverse engineering, when finished a dialog window will pop up.");
            _finish.FinishClicked += OnReverseEngineering;

            CreateAssemblies ();
            CreateImportingLevel ();
            CreateImportingParameters ();
            CreateImportingLevelAccess ();

            _druid.AppendPage (_start);
            _druid.AppendPage (_pAssemblies);
            _druid.AppendPage (_pImportingLevel);
            _druid.AppendPage (_pImportingParameters);
            _druid.AppendPage (_pImportingLevelAccess);
            _druid.AppendPage (_finish);
            _druid.Cancel += OnCancel;

            Add (_druid);

            SetDefaultSize (530, 295);
            Modal = true;
            WindowPosition = Gtk.WindowPosition.CenterAlways;
            Icon = PixbufLoader.GetIcon ("main_icon.png");
            ShowAll ();
            Resize (1, 1);
        }