package cnp.ew.util;

/**
 * Place to put our event/facet values, so they won't collide
 * with each other. Any object that wants to use these can
 * implement this interface so they don't have to refer to
 * CpEvent directly.
 */
public interface CpEvent {

    public static final int BUTTON_PRESS = 10;
    public static final int BUTTON_PRESSING = 11;
    public static final int BUTTON_RELEASE = 12;
    public static final int BUTTON_CLICKED = 13;


    // OBJECT_CHANGED will indicate (when they hit return, or when we lost focus) if the text
    // has changed since the entry field was given focus.
    // OBJECT_CHANGING will indicate that the text is changing as the user types.
    // TEXT_ACCEPTED indicates the user hit the return key, whether or not they changed anything.
    public static final int TEXT_ACCEPTED = 20;

    public static final int SLIDER_DRAGGING = 30;
    public static final int SLIDER_PAGED = 31;

    public static final int START_DRAG_SCROLL = 40;
    public static final int END_DRAG_SCROLL = 41;

    public static final int SCROLLER_PARAMETERS_CHANGED = 50;

    // A page is about to be selected (but is not yet visible).  TBD: make sure the index
    // answer by getSelectedPageIndex() at this point will be the new page index.
    public static final int PAGE_SELECTING=60;
    // A page has been selected, and is now visible.
    public static final int PAGE_SELECTED=61;
    public static final int PAGE_ACTIVATING=62;
    public static final int PAGE_DEACTIVATING=63;
    public static final int TAB_SELECTED=64;

    public static final int LC_POPPED_DOWN=70;
    public static final int HELP_TEXT_CHANGED = 71;

    public static final int COMMAND_DONE = 80;

    public static final int DIAGRAM_SELECTION_CHANGED = 90;
    public static final int DIAGRAM_UNLOADED_CURSOR = 91;
    public static final int LC_MOVED = 92;
    public static final int LC_SIZED = 93;
    public static final int DIAGRAM_SELECTION_MOVESIZE = 94;
    public static final int LC_DELETED = 95;

    public static final int COLUMN_SELECTED = 100;
    public static final int COLUMN_SIZED = 101;

    public static final int GRID_EDIT_CELL_EVENT = 110;
    public static final int GRID_SELECTION_CHANGED = 111;
    public static final int GRID_END_EDIT = 112;

    public static final int LIST_SELECTION_CHANGED = 120;
    public static final int LIST_ITEM_EDITED = 121;

    public static final int LISTMODEL_SET_ITEMS = 130;
    public static final int LISTMODEL_INSERT = 131;
    public static final int LISTMODEL_DELETE = 132;

    public static final int COLOR_SELECTED = 150;

    public static final int CURSOR_MOVED = 160;
    public static final int TEXT_FIND = 161;

    public static final int CHART_DOUBLE_CLICK = 170;

    public static final int ATTACHMENTS_CHANGED = 180;

    public static final int OBJECT_CHANGED = 190;
    public static final int OBJECT_CHANGING = 191;

}