ICS

QicsTable Documentation Set

QicsNamespace.h

Go to the documentation of this file.
00001 /*********************************************************************
00002 **
00003 ** Copyright (C) 2002-2006 Integrated Computer Solutions, Inc
00004 ** All rights reserved.
00005 **
00006 ** This file is part of the QicsTable Product.
00007 **
00008 **********************************************************************/
00009 
00010 #ifndef _QICSNAMESPACE_H
00011 #define _QICSNAMESPACE_H
00012 
00013 #include <qglobal.h>
00014 
00015 // Note: qicstable_version mask = N.N.N (no more, no less, N-number)
00016 // Else brakes PyQicsTable
00017 #define QICSTABLE_VERSION "qicstable_version: 2.0.0 (14-Jul-06)"
00018 
00019 // Note: numeric version to be able to use conditional compilation (using #if directive).
00020 // This macro expands a numeric value of the form 0xMMNNPP (MM = major, NN = minor, PP = patch) that 
00021 // specifies QicsTable's version number
00022 #define QICSTABLE_VERSION_NUMERIC 0x020000
00023 
00024 // Note: packaging date string
00025 #define QICSTABLE_PACKAGEDATE  "14-Jul-2006"
00026 
00027 // Note: numeric date definition to be able to use conditional compilation (using #if directive).
00028 // This macro expands a numeric value of the form 0xYYMMDD (YY = year, MM = month, DD = day) that
00029 // specifies QicsTable's packaging date.
00030 
00031 #define QICSTABLE_PACKAGEDATE_NUMERIC 0x140706
00032 
00033 #include <limits.h>
00034 #include <assert.h>
00035 
00036 #if defined(Q_WS_WIN32)
00037 #pragma warning( disable : 4251 )
00038 #pragma warning( disable : 4996 )
00039 #endif
00040 
00041 #if defined(Q_WS_WIN32)
00042 #  if defined(QICS_MAKEDLL) /* create a Qics DLL library */
00043 #    if !defined(QT_NODLL)
00044 #      define QICS_EXPORT  __declspec(dllexport)
00045 #    else
00046 #      undef QICS_MAKEDLL
00047 #    endif
00048 #  elif defined(QT_DLL)     /* use a Qics DLL library */
00049 #    if !defined(QT_NODLL)
00050 #      define QICS_EXPORT  __declspec(dllimport)
00051 #    endif
00052 #  endif
00053 #endif
00054 
00055 #ifndef QICSTABLE_EVAL
00056 #  if !defined(QICS_EXPORT)
00057 #    define QICS_EXPORT
00058 #  endif
00059 #endif
00060 
00062 
00065 
00066 
00074 class QICS_EXPORT Qics {
00075 public:
00076 
00077 #if defined(Q_WS_WIN32)
00078     enum { QicsLAST_ROW = INT_MAX };
00079     enum { QicsLAST_COLUMN = INT_MAX };
00080 #endif
00081 #if (defined(Q_WS_X11) || defined(Q_WS_MAC))
00082     static const int QicsLAST_ROW;
00083     static const int QicsLAST_COLUMN;
00084 #endif
00085 
00091     enum QicsSortMode { QicsStableSort = 0,
00092                         QicsQuickSort       };
00093 
00104     enum QicsCellOverflowBehavior { Clip = 0,
00105                     Overflow,
00106                     ToolTip };
00107 
00118     enum QicsCurrentCellStyle { Spreadsheet = 0,
00119                 NormalSelected };
00120 
00130     enum QicsGridCellClipping { AllowPartial = 0,
00131                 NoDisplayOnPartial,
00132                 UseClippedSymbol };
00133 
00140     enum QicsGridType { TableGrid = 0,
00141             RowHeaderGrid,
00142             ColumnHeaderGrid };
00143 
00150     enum QicsHeaderType { RowHeader = 0,
00151               ColumnHeader };
00152 
00153 
00160     enum QicsIndexType { RowIndex,
00161              ColumnIndex };
00162 
00170     enum QicsLineStyle { None = 0,
00171              Plain,
00172              Raised,
00173              Sunken };
00174 
00182     enum QicsRepaintBehavior { RepaintOff = 0,
00183                    RepaintOn = 1,
00184                    RepaintCalcOnly = 2 };
00185 
00194     enum QicsScrollBarMode { Auto = 0,
00195                  AlwaysOff,
00196                  AlwaysOn };
00197 
00209     enum QicsScrollDirection { ScrollNone = 0,
00210                    ScrollUp,
00211                    ScrollDown,
00212                    ScrollLeft,
00213                    ScrollRight,
00214                                ScrollToRow,
00215                                ScrollToColumn };
00216 
00228     enum QicsSelectionPolicy { SelectNone = 0,
00229                    SelectSingle,
00230                    SelectMultiple,
00231                    SelectSingleRow,
00232                    SelectMultipleRow };
00233 
00247     enum QicsSelectionType { SelectionNone = 0,
00248                  SelectionBegin,
00249                  SelectionDrag,
00250                  SelectionEnd,
00251                  SelectionExtend,
00252                  SelectionAdd };
00253 
00254 
00260     enum QicsSortOrder { Ascending = 0,
00261                  Descending };
00262 
00270     enum QicsTableDisplayOption { DisplayNever = 0,
00271                   DisplayAlways,
00272                   DisplayFirstPage };
00273 
00282     enum QicsTraversalKeyEditBehavior { TraverseWithinCell = 0,
00283                     TraverseBetweenCells };
00284 };
00285 
00286 
00287 #endif /* _QICSNAMESPACE_H */

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.