/* * 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 . * * 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 { /// /// How does a user indicate that they want to edit cells? /// public enum CellEditActivateMode { /// /// 列表将不支持编辑(同时F2按键无效) /// None = 0, /// ///单击 单元格 将编辑值. ///选择该行,就像正常选择行一样。用户必须按F2键才能编辑主列。 /// SingleClick = 1, /// /// 双击子项或主列将编辑该单元格。 /// F2键将编辑主列。 /// DoubleClick = 2, /// /// 按F2键是编辑单元格的唯一方法。一旦主列被编辑, ///行中的其他单元格可以通过按Tab键进行编辑。 /// F2Only = 3, /// /// 只需单击任意单元格即可编辑值,即使是主列也是如此。 /// SingleClickAlways = 4, } /// ///这些值指定向用户显示列选择的方式 /// public enum ColumnSelectBehaviour { /// /// 不会显示任何列选择 /// None, /// ///这些列将显示在主菜单中 /// InlineMenu, /// /// 这些列将显示在子菜单中 /// Submenu, /// /// 将显示一个模式对话框,允许用户选择列 /// 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. /// /// A non-model dialog will be presented to allow the user to choose columns /// NonModelDialog * */ } } }