зеркало из https://github.com/mozilla/pjs.git
Add column sort indicator.
This commit is contained in:
Родитель
b417755327
Коммит
fb8a0b055c
|
@ -138,6 +138,9 @@ XmLGridXYToCellTracking(Widget widget,
|
|||
Boolean * enter, /* output only args. */
|
||||
Boolean * leave); /* output only args. */
|
||||
|
||||
void XmLGridGetSort(Widget w, int *column, unsigned char *sortType);
|
||||
void XmLGridSetSort(Widget w, int column, unsigned char sortType);
|
||||
|
||||
#ifdef XmL_CPP
|
||||
}
|
||||
#endif
|
||||
|
|
|
@ -134,13 +134,16 @@ typedef int (*XmLGridCellActionProc)();
|
|||
#define XmLGridColumnUserData (1L<<2)
|
||||
#define XmLGridColumnResizable (1L<<3)
|
||||
#define XmLGridColumnHidden (1L<<4)
|
||||
#define XmLGridColumnValueMaskLen 5
|
||||
#define XmLGridColumnSortType (1L<<5)
|
||||
#define XmLGridColumnValueMaskLen 6
|
||||
|
||||
/* flags for XmLGridCell flags member */
|
||||
#define XmLGridCellSelectedFlag (1 << 0)
|
||||
#define XmLGridCellValueSetFlag (1 << 1)
|
||||
#define XmLGridCellInRowSpanFlag (1 << 2)
|
||||
#define XmLGridCellInColumnSpanFlag (1 << 3)
|
||||
#define XmLGridCellDrawSortFlag (1 << 4)
|
||||
#define XmLGridCellSortAscendingFlag (1 << 5)
|
||||
|
||||
/* cell value mask for get/set values */
|
||||
#define XmLGridCellAlignment (1L<<0)
|
||||
|
@ -276,6 +279,7 @@ typedef struct _XmLGridColumnPart
|
|||
|
||||
/* xfe additions */
|
||||
Boolean hidden;
|
||||
unsigned char sort;
|
||||
} XmLGridColumnPart;
|
||||
|
||||
struct _XmLGridColumnRec
|
||||
|
@ -352,6 +356,8 @@ typedef struct _XmLGridPart
|
|||
int lastCursorMotionRow;
|
||||
int lastCursorMotionCol;
|
||||
|
||||
unsigned char colSortType;
|
||||
|
||||
/* private data */
|
||||
GC gc;
|
||||
Cursor hResizeCursor, vResizeCursor;
|
||||
|
|
|
@ -248,6 +248,9 @@ typedef struct
|
|||
#define XmCSingleClickActivation "SingleClickActivation"
|
||||
#define XmNuseTextWidget "useTextWidget"
|
||||
#define XmCUseTextWidget "UseTextWidget"
|
||||
#define XmNcolumnSortType "columnSortType"
|
||||
#define XmCColumnSortType "ColumnSortType"
|
||||
#define XmRColumnSortType "ColumnSortType"
|
||||
#if 0
|
||||
#define XmNhideButtonTranslations "hideButtonTranslations"
|
||||
#define XmNunhideButtonTranslations "unhideButtonTranslations"
|
||||
|
@ -484,6 +487,11 @@ typedef struct _XmLGridCallbackStruct
|
|||
#define XmALIGNMENT_BOTTOM 7
|
||||
#define XmALIGNMENT_BOTTOM_RIGHT 8
|
||||
|
||||
/* xfe additions */
|
||||
#define XmSORT_NONE 0
|
||||
#define XmSORT_ASCENDING 1
|
||||
#define XmSORT_DESCENDING 2
|
||||
|
||||
/* Progress resources */
|
||||
|
||||
#define XmNcompleteValue "completeValue"
|
||||
|
|
Загрузка…
Ссылка в новой задаче