Esempio n. 1
0
        public ExportIntroWizard(ShapeManager layman)
            : base(layman)
        {
            this.SetSizeRequest(400, 300);

            ExportIntroPage exip = new ExportIntroPage(this);
            AppendPage(exip);
            SetPageTitle(exip, "");
            SetPageType(exip, AssistantPageType.Intro);
            SetPageHeaderImage(exip, Gdk.Pixbuf.LoadFromResource("MeeGen.Resources.Wizard.meegons-intro.png"));
            SetPageComplete(exip, false);
        }
Esempio n. 2
0
        public WebExportWizard(ShapeManager manager)
            : base(manager)
        {
            SetSizeRequest(450, 300);

            ExportWebServicePage web = new ExportWebServicePage(this);
            AppendPage(web);
            SetPageTitle(web, "Export to a webservice");
            SetPageType(web, AssistantPageType.Intro);
            SetPageHeaderImage(web, Gdk.Pixbuf.LoadFromResource("MeeGen.Resources.Wizard.web.png"));
            SetPageComplete(web, false);
        }
Esempio n. 3
0
 public LocalExportWizard(ShapeManager manager)
     : base(manager)
 {
     SetSizeRequest(400, 320);
     this.Resizable = true;
     this.AllowGrow = true;
     SaveLocalPage local = new SaveLocalPage(this);
     AppendPage(local);
     SetPageTitle(local, "Save locally");
     SetPageType(local, AssistantPageType.Confirm);
     SetPageHeaderImage(local, Gdk.Pixbuf.LoadFromResource("MeeGen.Resources.document-save.png"));
     SetPageComplete(local, true);
 }
Esempio n. 4
0
        public ExportWizard(ShapeManager manager)
            : base()
        {
            this.SkipTaskbarHint = true;
            this.Resizable = true;

            Title = "ExportWizard";

            this.SetPosition(WindowPosition.CenterOnParent);
            this.Decorated = false;
            this.ModifyBg(StateType.Normal, new Gdk.Color(255, 255, 255));

            this.manager = manager;

            Cancel += new EventHandler(AssistantCancel);

            WidgetHelper.SetButtonRelief(this, ReliefStyle.None);
        }
Esempio n. 5
0
        public MainWindow(string databaseFile, string preferencesFile)
            : base(Gtk.WindowType.Toplevel)
        {
            Build();

            this.drawingarea.DoubleBuffered = true;
            this.iconview.PixbufColumn = 0;

            this.moreMenu = new MoreMenu(FillIconView);
            this.moreMenu.ShowAll();

            //this.GtkScrolledWindow.VScrollbar.ModifyBg(Gtk.StateType.Normal, new Gdk.Color(255, 255, 255));
            //this.GtkScrolledWindow.VScrollbar.ModifyFg(Gtk.StateType.Normal, new Gdk.Color(255, 255, 255));
            //this.GtkScrolledWindow.VScrollbar.ModifyBase(Gtk.StateType.Normal, new Gdk.Color(255, 255, 255));

            this.iconDict = new Dictionary<string, ListStore>();
            this.imageDict = new Dictionary<string, string[]>();

            this.shapeManager = new ShapeManager();

            try
            {
                LoadImages(databaseFile);
                FillIconView("heads");

            }catch(Exception e)
            {
                MessageBox.ShowError(e.Message);
                //Application.Quit() fails for some reason
                System.Diagnostics.Process.GetCurrentProcess().Kill();
            }

            // the drag and drop table that contains destination and source targets
            Gtk.TargetEntry[] dd_table = new Gtk.TargetEntry[]{new Gtk.TargetEntry("text/plain", 0, 0)};

            // Set up the drawingarea as a drop destination
            Gtk.Drag.DestSet(drawingarea, DestDefaults.All, dd_table, Gdk.DragAction.Copy);

            // Set up the iconview as the drag source
            Gtk.Drag.SourceSet(iconview, Gdk.ModifierType.Button1Mask, dd_table, Gdk.DragAction.Copy);

            this.preferencesFile = preferencesFile;
            this.LoadPreferences();
        }