示例#1
0
		public LevelToolWindow(MainMDIForm parent, Level level)
		{
			mParent = parent;

			this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
			this.Text = level.Info.Name;
			this.KeyPreview = true;

			this.Icon = Icon.FromHandle(Resources.level_16.GetHicon());

			mLevelEditor = new LevelEditor();
			mLevelEditor.Level = level;
			
			mLevelEditor.Location = new Point(0, 0);
			Rectangle bounds = mLevelEditor.Level.Bounds;
			mLevelEditor.Size = new Size(bounds.Width, bounds.Height);

			mLevelEditor.Level.ShowAnchorsAlways = Settings.ShowAnchorsAlways;

			mLevelEditor.UpdatedRedrawed += new EventHandler(mLevelEditor_UpdatedRedrawed);
			mLevelEditor.SelectionChanged += new EventHandler(mLevelEditor_SelectionChanged);
			mLevelEditor.MouseMove += new MouseEventHandler(mLevelEditor_MouseMove);

			mTimer = new Timer();
			mTimer.Interval = 10;
			mTimer.Enabled = true;
			mTimer.Tick += new EventHandler(mTimer_Tick);

			this.Controls.Add(mLevelEditor);

			this.AutoScroll = true;
		}
示例#2
0
        public LevelToolWindow(MainMDIForm parent, Level level)
        {
            mParent = parent;

            this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
            this.Text            = level.Info.Name;
            this.KeyPreview      = true;

            this.Icon = Icon.FromHandle(Resources.level_16.GetHicon());

            mLevelEditor       = new LevelEditor();
            mLevelEditor.Level = level;

            mLevelEditor.Location = new Point(0, 0);
            Rectangle bounds = mLevelEditor.Level.Bounds;

            mLevelEditor.Size = new Size(bounds.Width, bounds.Height);

            mLevelEditor.Level.ShowAnchorsAlways = Settings.ShowAnchorsAlways;

            mLevelEditor.UpdatedRedrawed  += new EventHandler(mLevelEditor_UpdatedRedrawed);
            mLevelEditor.SelectionChanged += new EventHandler(mLevelEditor_SelectionChanged);
            mLevelEditor.MouseMove        += new MouseEventHandler(mLevelEditor_MouseMove);

            mTimer          = new Timer();
            mTimer.Interval = 10;
            mTimer.Enabled  = true;
            mTimer.Tick    += new EventHandler(mTimer_Tick);

            this.Controls.Add(mLevelEditor);

            this.AutoScroll = true;
        }
        public PropertiesToolWindow(MainMDIForm parent)
        {
            mParent = parent;

            this.Icon = Icon.FromHandle(Resources.properties_16.GetHicon());

            FormBorderStyle = FormBorderStyle.SizableToolWindow;
            Text            = "Properties";

            mPropertyGrid      = new PropertyGrid();
            mPropertyGrid.Dock = DockStyle.Fill;

            mPropertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(mPropertyGrid_PropertyValueChanged);

            Controls.Add(mPropertyGrid);
        }
		public PropertiesToolWindow(MainMDIForm parent)
		{
			mParent = parent;

			this.Icon = Icon.FromHandle(Resources.properties_16.GetHicon());

			FormBorderStyle = FormBorderStyle.SizableToolWindow;
			Text = "Properties";

			mPropertyGrid = new PropertyGrid();
			mPropertyGrid.Dock = DockStyle.Fill;

			mPropertyGrid.PropertyValueChanged += new PropertyValueChangedEventHandler(mPropertyGrid_PropertyValueChanged);

			Controls.Add(mPropertyGrid);
		}
示例#5
0
        public EntryListToolWindow(MainMDIForm parent)
        {
            mParent = parent;

            this.Icon            = Icon.FromHandle(Resources.properties_32.GetHicon());
            this.DoubleBuffered  = true;
            this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
            this.Text            = "Entry List";

            mList                = new ListBox();
            mList.Dock           = DockStyle.Fill;
            mList.IntegralHeight = false;
            mList.SelectionMode  = SelectionMode.MultiExtended;

            mList.SelectedIndexChanged += new System.EventHandler(mList_SelectedIndexChanged);

            this.Controls.Add(mList);
        }
		public EntryListToolWindow(MainMDIForm parent)
		{
			mParent = parent;

			this.Icon = Icon.FromHandle(Resources.properties_32.GetHicon());
			this.DoubleBuffered = true;
			this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
			this.Text = "Entry List";

			mList = new ListBox();
			mList.Dock = DockStyle.Fill;
			mList.IntegralHeight = false;
			mList.SelectionMode = SelectionMode.MultiExtended;

			mList.SelectedIndexChanged += new System.EventHandler(mList_SelectedIndexChanged);

			this.Controls.Add(mList);
		}
示例#7
0
        public MenuToolPanel(MainMDIForm parent)
        {
            mParent = parent;

            Text = "Menu";

            mRibbon          = new Ribbon();
            mRibbon.Location = new Point(0, 0);
            mRibbon.Width    = this.Width;
            mRibbon.Anchor   = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

            Controls.Add(mRibbon);

            InitRibbon();

            InitShortcuts();

            UpdateRecentPackFiles();

            Height = mRibbon.Height;
        }
示例#8
0
		public MenuToolPanel(MainMDIForm parent)
		{
			mParent = parent;

			Text = "Menu";

			mRibbon = new Ribbon();
			mRibbon.Location = new Point(0, 0);
			mRibbon.Width = this.Width;
			mRibbon.Anchor = AnchorStyles.Left | AnchorStyles.Right | AnchorStyles.Top;

			Controls.Add(mRibbon);

			InitRibbon();

			InitShortcuts();

			UpdateRecentPackFiles();

			Height = mRibbon.Height;
		}
		public PackExplorerToolWindow(MainMDIForm parent)
		{
			mParent = parent;

			this.DoubleBuffered = true;
			this.Icon = Icon.FromHandle(Resources.pack_explorer_16.GetHicon());

			this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
			this.Text = "Pack Explorer";

			mImageList = new ImageList();
			mImageList.ImageSize = new Size(16, 16);
			mImageList.Images.Add(Resources.folder_levels_16);
			mImageList.Images.Add(Resources.folder_images_16);
			mImageList.Images.Add(Resources.folder_challenges_16);
			mImageList.Images.Add(Resources.level_16);
			mImageList.Images.Add(Resources.image_16);

			mTreeView = new TreeView();
			mTreeView.BorderStyle = BorderStyle.None;
			mTreeView.Dock = DockStyle.Fill;

			mTreeView.ImageList = mImageList;
			mTreeView.ShowLines = false;
			mTreeView.LabelEdit = true;

			mTreeView.NodeMouseClick += new TreeNodeMouseClickEventHandler(mTreeView_NodeMouseClick);
			mTreeView.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(mTreeView_NodeMouseDoubleClick);
			mTreeView.KeyDown += new KeyEventHandler(mTreeView_KeyDown);
			mTreeView.BeforeLabelEdit += new NodeLabelEditEventHandler(mTreeView_BeforeLabelEdit);
			mTreeView.AfterLabelEdit += new NodeLabelEditEventHandler(mTreeView_AfterLabelEdit);

			mContextMenu = new ContextMenuStrip();

			this.Controls.Add(mTreeView);
		}
        public PackExplorerToolWindow(MainMDIForm parent)
        {
            mParent = parent;

            this.DoubleBuffered = true;
            this.Icon           = Icon.FromHandle(Resources.pack_explorer_16.GetHicon());

            this.FormBorderStyle = FormBorderStyle.SizableToolWindow;
            this.Text            = "Pack Explorer";

            mImageList           = new ImageList();
            mImageList.ImageSize = new Size(16, 16);
            mImageList.Images.Add(Resources.folder_levels_16);
            mImageList.Images.Add(Resources.folder_images_16);
            mImageList.Images.Add(Resources.folder_challenges_16);
            mImageList.Images.Add(Resources.level_16);
            mImageList.Images.Add(Resources.image_16);

            mTreeView             = new TreeView();
            mTreeView.BorderStyle = BorderStyle.None;
            mTreeView.Dock        = DockStyle.Fill;

            mTreeView.ImageList = mImageList;
            mTreeView.ShowLines = false;
            mTreeView.LabelEdit = true;

            mTreeView.NodeMouseClick       += new TreeNodeMouseClickEventHandler(mTreeView_NodeMouseClick);
            mTreeView.NodeMouseDoubleClick += new TreeNodeMouseClickEventHandler(mTreeView_NodeMouseDoubleClick);
            mTreeView.KeyDown         += new KeyEventHandler(mTreeView_KeyDown);
            mTreeView.BeforeLabelEdit += new NodeLabelEditEventHandler(mTreeView_BeforeLabelEdit);
            mTreeView.AfterLabelEdit  += new NodeLabelEditEventHandler(mTreeView_AfterLabelEdit);

            mContextMenu = new ContextMenuStrip();

            this.Controls.Add(mTreeView);
        }