📄 classprop.cs
字号:
/* ---------------------------------------------------------------------------------------------------
*
* PocketUML v0.01.0016
*
*
* Written by Jie Tang.
* Bug report : jiet@msn.com
*
*
* Copyright 2002 James <jiet@msn.com>
* All rights reserved.
*
* This source file(s) may be redistributed unmodified by any means
* PROVIDING they are not sold for profit without the authors expressed
* written consent, and providing that this notice and the authors name
* and all copyright notices remain intact.
*
* Any use of the software in source or binary forms, with or without
* modification, must include, in the user documentation ("About" box and
* printed documentation) and internal comments to the code, notices to
* the end user as follows:
*
* "Portions Copyright 2002 Tang Jie
*
* An email letting me know that you are using it would be nice as well.
* That's not much to ask considering the amount of work that went into
* this.
*
* THIS SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
* EXPRESS OR IMPLIED. USE IT AT YOUT OWN RISK. THE AUTHOR ACCEPTS NO
* LIABILITY FOR ANY DATA DAMAGE/LOSS THAT THIS PRODUCT MAY CAUSE.
*
*/
//-----------------------------------------------------------------------------------------------------
// Update Information.
//-----------------------------------------------------------------------------------------------------
///
/// PocketUML Namespace
/// Class specification dialog
///
/// PocketUML v0.1
/// Created by Jie Tang 04/10/2002.
///
using System;
using System.Drawing;
using System.Collections;
using System.ComponentModel;
using System.Windows.Forms;
namespace PocketUML
{
namespace DataUI
{
using PocketUML.Data;
/// <summary>
/// Summary description for ClassProp.
/// </summary>
public class ClassProp : System.Windows.Forms.Form
{
private System.Windows.Forms.TabPage General;
private System.Windows.Forms.Label name;
private System.Windows.Forms.TextBox className;
private System.Windows.Forms.Label static1;
private System.Windows.Forms.ComboBox classStereotype;
private System.Windows.Forms.TabPage Methods;
private System.Windows.Forms.TabControl ClassTab;
private System.Windows.Forms.ListView methodsList;
private System.Windows.Forms.TabPage Properties;
private System.Windows.Forms.TabPage tabPage1;
private System.Windows.Forms.Button OK;
private System.Windows.Forms.Label test;
private System.Windows.Forms.TextBox classDoc;
private System.Windows.Forms.CheckBox checkBox1;
private System.Windows.Forms.CheckBox checkBox2;
private System.Windows.Forms.CheckBox checkBox3;
private System.Windows.Forms.ListView propertiesList;
private System.Windows.Forms.ListView relationsList;
private System.Windows.Forms.ImageList PhototypeList;
private System.Windows.Forms.ColumnHeader ItemIco;
private System.Windows.Forms.ColumnHeader StereoType;
private System.Windows.Forms.ColumnHeader Signature;
private System.Windows.Forms.ColumnHeader Class;
private System.Windows.Forms.ColumnHeader ReturnType;
private System.Windows.Forms.ColumnHeader itemIcon;
private System.Windows.Forms.ColumnHeader itemName;
private System.Windows.Forms.ColumnHeader itemClass;
private System.Windows.Forms.ColumnHeader itemType;
private System.Windows.Forms.ColumnHeader itemInitial;
private System.Windows.Forms.ColumnHeader relationsName;
private System.Windows.Forms.ColumnHeader relationsClass;
private System.Windows.Forms.ColumnHeader relationsEndClass;
private System.ComponentModel.IContainer components;
public ClassProp()
{
//
// Required for Windows Form Designer support
//
InitializeComponent();
//
// TODO: Add any constructor code after InitializeComponent call
//
}
/// <summary>
/// Clean up any resources being used.
/// </summary>
protected override void Dispose( bool disposing )
{
if( disposing )
{
if(components != null)
{
components.Dispose();
}
}
base.Dispose( disposing );
}
#region Windows Form Designer generated code
/// <summary>
/// Required method for Designer support - do not modify
/// the contents of this method with the code editor.
/// </summary>
private void InitializeComponent()
{
this.components = new System.ComponentModel.Container();
System.Resources.ResourceManager resources = new System.Resources.ResourceManager(typeof(ClassProp));
this.ClassTab = new System.Windows.Forms.TabControl();
this.General = new System.Windows.Forms.TabPage();
this.classStereotype = new System.Windows.Forms.ComboBox();
this.classDoc = new System.Windows.Forms.TextBox();
this.test = new System.Windows.Forms.Label();
this.static1 = new System.Windows.Forms.Label();
this.className = new System.Windows.Forms.TextBox();
this.name = new System.Windows.Forms.Label();
this.Methods = new System.Windows.Forms.TabPage();
this.checkBox1 = new System.Windows.Forms.CheckBox();
this.methodsList = new System.Windows.Forms.ListView();
this.ItemIco = new System.Windows.Forms.ColumnHeader();
this.StereoType = new System.Windows.Forms.ColumnHeader();
this.Signature = new System.Windows.Forms.ColumnHeader();
this.Class = new System.Windows.Forms.ColumnHeader();
this.ReturnType = new System.Windows.Forms.ColumnHeader();
this.PhototypeList = new System.Windows.Forms.ImageList(this.components);
this.Properties = new System.Windows.Forms.TabPage();
this.propertiesList = new System.Windows.Forms.ListView();
this.itemIcon = new System.Windows.Forms.ColumnHeader();
this.itemName = new System.Windows.Forms.ColumnHeader();
this.itemClass = new System.Windows.Forms.ColumnHeader();
this.itemType = new System.Windows.Forms.ColumnHeader();
this.itemInitial = new System.Windows.Forms.ColumnHeader();
this.checkBox2 = new System.Windows.Forms.CheckBox();
this.tabPage1 = new System.Windows.Forms.TabPage();
this.relationsList = new System.Windows.Forms.ListView();
this.relationsName = new System.Windows.Forms.ColumnHeader();
this.relationsClass = new System.Windows.Forms.ColumnHeader();
this.relationsEndClass = new System.Windows.Forms.ColumnHeader();
this.checkBox3 = new System.Windows.Forms.CheckBox();
this.OK = new System.Windows.Forms.Button();
this.ClassTab.SuspendLayout();
this.General.SuspendLayout();
this.Methods.SuspendLayout();
this.Properties.SuspendLayout();
this.tabPage1.SuspendLayout();
this.SuspendLayout();
//
// ClassTab
//
this.ClassTab.Appearance = System.Windows.Forms.TabAppearance.FlatButtons;
this.ClassTab.Controls.AddRange(new System.Windows.Forms.Control[] {
this.General,
this.Methods,
this.Properties,
this.tabPage1});
this.ClassTab.HotTrack = true;
this.ClassTab.Location = new System.Drawing.Point(8, 8);
this.ClassTab.Name = "ClassTab";
this.ClassTab.SelectedIndex = 0;
this.ClassTab.Size = new System.Drawing.Size(312, 328);
this.ClassTab.TabIndex = 0;
//
// General
//
this.General.Controls.AddRange(new System.Windows.Forms.Control[] {
this.classStereotype,
this.classDoc,
this.test,
this.static1,
this.className,
this.name});
this.General.Location = new System.Drawing.Point(4, 25);
this.General.Name = "General";
this.General.Size = new System.Drawing.Size(304, 299);
this.General.TabIndex = 0;
this.General.Text = "General";
//
// classStereotype
//
this.classStereotype.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList;
this.classStereotype.Items.AddRange(new object[] {
"Class",
"Struct",
"Interface"});
this.classStereotype.Location = new System.Drawing.Point(80, 48);
this.classStereotype.Name = "classStereotype";
this.classStereotype.Size = new System.Drawing.Size(216, 21);
this.classStereotype.TabIndex = 6;
//
// classDoc
//
this.classDoc.AcceptsReturn = true;
this.classDoc.AutoSize = false;
this.classDoc.Location = new System.Drawing.Point(8, 104);
this.classDoc.Multiline = true;
this.classDoc.Name = "classDoc";
this.classDoc.ReadOnly = true;
this.classDoc.Size = new System.Drawing.Size(288, 192);
this.classDoc.TabIndex = 5;
this.classDoc.Text = "";
//
// test
//
this.test.Location = new System.Drawing.Point(8, 80);
this.test.Name = "test";
this.test.Size = new System.Drawing.Size(80, 16);
this.test.TabIndex = 4;
this.test.Text = "Documentation:";
//
// static1
//
this.static1.Location = new System.Drawing.Point(8, 48);
this.static1.Name = "static1";
this.static1.Size = new System.Drawing.Size(64, 16);
this.static1.TabIndex = 2;
this.static1.Text = "Stereotype:";
//
// className
//
this.className.Location = new System.Drawing.Point(80, 16);
this.className.Name = "className";
this.className.ReadOnly = true;
this.className.Size = new System.Drawing.Size(216, 20);
this.className.TabIndex = 1;
this.className.Text = "";
//
// name
//
this.name.Location = new System.Drawing.Point(8, 16);
this.name.Name = "name";
this.name.Size = new System.Drawing.Size(48, 16);
this.name.TabIndex = 0;
this.name.Text = "Name:";
//
// Methods
//
this.Methods.Controls.AddRange(new System.Windows.Forms.Control[] {
this.checkBox1,
this.methodsList});
this.Methods.Location = new System.Drawing.Point(4, 25);
this.Methods.Name = "Methods";
this.Methods.Size = new System.Drawing.Size(304, 299);
this.Methods.TabIndex = 1;
this.Methods.Text = "Methods";
//
// checkBox1
//
this.checkBox1.Enabled = false;
this.checkBox1.Location = new System.Drawing.Point(8, 8);
this.checkBox1.Name = "checkBox1";
this.checkBox1.Size = new System.Drawing.Size(104, 16);
this.checkBox1.TabIndex = 1;
this.checkBox1.Text = "Show inherited";
//
// methodsList
//
this.methodsList.Columns.AddRange(new System.Windows.Forms.ColumnHeader[] {
this.ItemIco,
this.StereoType,
this.Signature,
this.Class,
this.ReturnType});
this.methodsList.FullRowSelect = true;
this.methodsList.GridLines = true;
this.methodsList.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.Nonclickable;
this.methodsList.HoverSelection = true;
this.methodsList.LabelWrap = false;
this.methodsList.LargeImageList = this.PhototypeList;
this.methodsList.Location = new System.Drawing.Point(8, 32);
this.methodsList.MultiSelect = false;
this.methodsList.Name = "methodsList";
this.methodsList.Size = new System.Drawing.Size(288, 264);
this.methodsList.SmallImageList = this.PhototypeList;
this.methodsList.TabIndex = 0;
this.methodsList.View = System.Windows.Forms.View.Details;
this.methodsList.DoubleClick += new System.EventHandler(this.OnMethodDBClick);
//
// ItemIco
//
this.ItemIco.Text = "";
this.ItemIco.Width = 20;
//
// StereoType
//
this.StereoType.Text = "StereoType";
this.StereoType.Width = 30;
//
// Signature
//
this.Signature.Text = "Signature";
this.Signature.Width = 90;
//
// Class
//
this.Class.Text = "Class";
this.Class.Width = 90;
//
// ReturnType
//
this.ReturnType.Text = "Return type";
//
// PhototypeList
//
this.PhototypeList.ColorDepth = System.Windows.Forms.ColorDepth.Depth16Bit;
this.PhototypeList.ImageSize = new System.Drawing.Size(16, 16);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -