示例#1
0
        public Document(Gdk.Size size)
        {
            Guid = Guid.NewGuid ();

            Workspace = new DocumentWorkspace (this);
            IsDirty = false;
            HasFile = false;
            ImageSize = size;

            Layers = new List<Layer> ();

            tool_layer = CreateLayer ("Tool Layer");
            tool_layer.Hidden = true;

            selection_layer = CreateLayer ("Selection Layer");
            selection_layer.Hidden = true;

            ResetSelectionPath ();
        }
示例#2
0
文件: Document.cs 项目: msiyer/Pinta
		public Document (Gdk.Size size)
		{
		    Selection = new DocumentSelection ();

			Guid = Guid.NewGuid ();
			
			Workspace = new DocumentWorkspace (this);
			IsDirty = false;
			HasFile = false;
			HasBeenSavedInSession = false;
			ImageSize = size;

			UserLayers = new List<UserLayer>();

			tool_layer = CreateLayer ("Tool Layer");
			tool_layer.Hidden = true;

			selection_layer = CreateLayer ("Selection Layer");
			selection_layer.Hidden = true;

			ResetSelectionPaths ();
		}
 internal DocumentWorkspaceHistory(Document document, DocumentWorkspace workspace)
 {
     this.document = document;
     this.workspace = workspace;
     ListStore = new ListStore (typeof (BaseHistoryItem));
 }