/*
* 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@bigfoot.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 {
///
/// This list cannot be edited. F2 does nothing.
///
None = 0,
///
/// A single click on a subitem will edit the value. Single clicking the primary column,
/// selects the row just like normal. The user must press F2 to edit the primary column.
///
SingleClick = 1,
///
/// Double clicking a subitem or the primary column will edit that cell.
/// F2 will edit the primary column.
///
DoubleClick = 2,
///
/// Pressing F2 is the only way to edit the cells. Once the primary column is being edited,
/// the other cells in the row can be edited by pressing Tab.
///
F2Only = 3
}
///
/// These values specify how column selection will be presented to the user
///
public enum ColumnSelectBehaviour {
///
/// No column selection will be presented
///
None,
///
/// The columns will be show in the main menu
///
InlineMenu,
///
/// The columns will be shown in a submenu
///
Submenu,
///
/// A model dialog will be presented to allow the user to choose columns
///
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
*
*/
}
}
}