コード例 #1
0
ファイル: PintaCore.cs プロジェクト: mfcallahan/Pinta
        static PintaCore()
        {
            // Resources and Settings are intialized first so later
            // Managers can access them as needed.
            Resources = new ResourceManager();
            Settings  = new SettingsManager();

            Actions      = new ActionManager();
            Workspace    = new WorkspaceManager();
            Layers       = new LayerManager();
            PaintBrushes = new PaintBrushManager();
            Tools        = new ToolManager();
            System       = new SystemManager();
            LivePreview  = new LivePreviewManager();
            Palette      = new PaletteManager();
            Chrome       = new ChromeManager();
            Effects      = new EffectsManager();

            Services = new ServiceManager();

            Services.AddService <IResourceService> (Resources);
            Services.AddService <ISettingsService> (Settings);
            Services.AddService(Actions);
            Services.AddService <IWorkspaceService> (Workspace);
            Services.AddService(Layers);
            Services.AddService <IPaintBrushService> (PaintBrushes);
            Services.AddService <IToolService> (Tools);
            Services.AddService(System);
            Services.AddService(LivePreview);
            Services.AddService <IPaletteService> (Palette);
            Services.AddService(Chrome);
            Services.AddService(Effects);
        }
コード例 #2
0
ファイル: PintaCore.cs プロジェクト: joehillen/Pinta
 static PintaCore()
 {
     Resources = new ResourceManager ();
     Actions = new ActionManager ();
     Workspace = new WorkspaceManager ();
     Layers = new LayerManager ();
     Tools = new ToolManager ();
     History = new HistoryManager ();
     System = new SystemManager ();
     LivePreview = new LivePreviewManager ();
     Palette = new PaletteManager ();
     Settings = new SettingsManager ();
 }
コード例 #3
0
ファイル: PintaCore.cs プロジェクト: ywscr/Pinta
 static PintaCore()
 {
     Resources    = new ResourceManager();
     Actions      = new ActionManager();
     Workspace    = new WorkspaceManager();
     Layers       = new LayerManager();
     PaintBrushes = new PaintBrushManager();
     Tools        = new ToolManager();
     History      = new HistoryManager();
     System       = new SystemManager();
     LivePreview  = new LivePreviewManager();
     Palette      = new PaletteManager();
     Settings     = new SettingsManager();
     Chrome       = new ChromeManager();
     Effects      = new EffectsManager();
 }
コード例 #4
0
ファイル: PintaCore.cs プロジェクト: asbjornu/Pinta
        public static void Initialize(Toolbar toolToolBar, Label statusTextLabel, DrawingArea drawingArea, TreeView historyStack, Window mainWindow)
        {
            Chrome = new ChromeManager ();
            Chrome.Initialize (toolToolBar, statusTextLabel, drawingArea, historyStack, mainWindow);

            Palette = new PaletteManager ();

            Actions.RegisterHandlers ();
        }
コード例 #5
0
ファイル: PintaCore.cs プロジェクト: mrolappe/Pinta
        public static void Initialize(Toolbar toolToolBar,
		                               Label statusTextLabel,
		                               DrawingArea drawingArea,
		                               TreeView historyStack,
		                               Window mainWindow,
		                               IProgressDialog progressDialog,
		                               Viewport viewport)
        {
            Chrome = new ChromeManager ();
            Chrome.Initialize (toolToolBar,
                               statusTextLabel,
                               drawingArea,
                               historyStack,
                               mainWindow,
                               progressDialog);

            Palette = new PaletteManager ();

            Workspace.Initialize (viewport);

            Actions.RegisterHandlers ();
        }