RaUI/Source/ryControls/ObjectListView/Implementation/Enums.cs

104 lines
3.4 KiB
C#
Raw Normal View History

/*
* Enums - All enum definitions used in ObjectListView
*
* Author: Phillip Piper
* Date: 31-March-2011 5:53 pm
*
* Change log:
* 2011-03-31 JPP - Split into its own file
*
* Copyright (C) 2011-2014 Phillip Piper
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
* If you wish to use this code in a closed source application, please contact phillip.piper@gmail.com.
*/
using System;
using System.Collections.Generic;
using System.Text;
namespace BrightIdeasSoftware {
public partial class ObjectListView {
/// <summary>
/// How does a user indicate that they want to edit cells?
/// </summary>
public enum CellEditActivateMode {
/// <summary>
/// 列表将不支持编辑(同时F2按键无效)
/// </summary>
None = 0,
/// <summary>
///单击 <strong>单元格</strong> 将编辑值.
///选择该行就像正常选择行一样。用户必须按F2键才能编辑主列。
/// </summary>
SingleClick = 1,
/// <summary>
/// 双击子项或主列将编辑该单元格。
/// F2键将编辑主列。
/// </summary>
DoubleClick = 2,
/// <summary>
/// 按F2键是编辑单元格的唯一方法。一旦主列被编辑
///行中的其他单元格可以通过按Tab键进行编辑。
/// </summary>
F2Only = 3,
/// <summary>
/// 只需单击任意单元格即可编辑值,即使是主列也是如此。
/// </summary>
SingleClickAlways = 4,
}
/// <summary>
///这些值指定向用户显示列选择的方式
/// </summary>
public enum ColumnSelectBehaviour {
/// <summary>
/// 不会显示任何列选择
/// </summary>
None,
/// <summary>
///这些列将显示在主菜单中
/// </summary>
InlineMenu,
/// <summary>
/// 这些列将显示在子菜单中
/// </summary>
Submenu,
/// <summary>
/// 将显示一个模式对话框,允许用户选择列
/// </summary>
ModelDialog,
/*
* NonModelDialog is just a little bit tricky since the OLV can change views while the dialog is showing
* So, just comment this out for the time being.
/// <summary>
/// A non-model dialog will be presented to allow the user to choose columns
/// </summary>
NonModelDialog
*
*/
}
}
}