Line 992... |
Line 992... |
992 |
* is 1401. But with the command ^LVE this number can be changed.
|
992 |
* is 1401. But with the command ^LVE this number can be changed.
|
993 |
*
|
993 |
*
|
994 |
* @return The event number of the listView.
|
994 |
* @return The event number of the listView.
|
995 |
*/
|
995 |
*/
|
996 |
int getListViewEventNumber() { return listEvNum; };
|
996 |
int getListViewEventNumber() { return listEvNum; };
|
- |
|
997 |
void setListViewColumns(int cols);
|
- |
|
998 |
int getListViewColumns() { return tc; }
|
- |
|
999 |
void setListViewLayout(int layout);
|
- |
|
1000 |
int getListViewLayout() { return listLayout; }
|
- |
|
1001 |
void setListViewComponent(int comp);
|
- |
|
1002 |
int getListViewComponent() { return listComponent; }
|
- |
|
1003 |
void setListViewCellheight(int height, bool percent=false);
|
- |
|
1004 |
int getListViewCellheight() { return tj; }
|
- |
|
1005 |
void setListViewP1(int p1);
|
- |
|
1006 |
int getListViewP1() { return listViewP1; }
|
- |
|
1007 |
void setListViewP2(int p2);
|
- |
|
1008 |
int getListViewP2() { return listViewP2; }
|
- |
|
1009 |
void setListViewColumnFilter(bool filter) { listViewColFiler = filter; }
|
- |
|
1010 |
bool getListViewColumnFilter() { return listViewColFiler; }
|
- |
|
1011 |
void setListViewFilterHeight(int height, bool percent=false);
|
- |
|
1012 |
int getListViewFilterHeight() { return listViewColFilterHeight; }
|
- |
|
1013 |
void setListViewAlphaScroll(bool alpha) { listAlphaScroll = alpha; }
|
- |
|
1014 |
bool getListViewAlphaScroll() { return listAlphaScroll; }
|
- |
|
1015 |
void setListViewFieldMap(const std::map<std::string,std::string>& map) { listFieldMap = map; }
|
- |
|
1016 |
std::map<std::string,std::string>& getListViewFieldMap() { return listFieldMap; }
|
- |
|
1017 |
void listViewNavigate(const std::string& command, bool select=false);
|
- |
|
1018 |
void listViewRefresh(int interval, bool force=false);
|
- |
|
1019 |
void listViewSortData(const std::vector<std::string>& columns, LIST_SORT order, const std::string& override);
|
997 |
|
1020 |
|
998 |
protected:
|
1021 |
protected:
|
999 |
BUTTONTYPE getButtonType(const std::string& bt);
|
1022 |
BUTTONTYPE getButtonType(const std::string& bt);
|
1000 |
FEEDBACK getButtonFeedback(const std::string& fb);
|
1023 |
FEEDBACK getButtonFeedback(const std::string& fb);
|
1001 |
SkBitmap drawImageButton(SkBitmap& imgRed, SkBitmap& imgMask, int width, int height, SkColor col1, SkColor col2);
|
1024 |
SkBitmap drawImageButton(SkBitmap& imgRed, SkBitmap& imgMask, int width, int height, SkColor col1, SkColor col2);
|
Line 1124... |
Line 1147... |
1124 |
std::vector<SR_T> sr; // The elements the button consists of
|
1147 |
std::vector<SR_T> sr; // The elements the button consists of
|
1125 |
// ListView settings (G5)
|
1148 |
// ListView settings (G5)
|
1126 |
std::string listSource; // Defines the data source for a list.
|
1149 |
std::string listSource; // Defines the data source for a list.
|
1127 |
int listEvNum{1401}; // ListView event number.
|
1150 |
int listEvNum{1401}; // ListView event number.
|
1128 |
std::string listFilter; // ListView filter string.
|
1151 |
std::string listFilter; // ListView filter string.
|
- |
|
1152 |
int listComponent{0}; // ListView component
|
1129 |
int listLayout{0}; // ListView layout.
|
1153 |
int listLayout{0}; // ListView layout.
|
1130 |
std::map<std::string,std::string> listFieldMap; // Maps the fields from the source to the columns of the list
|
1154 |
std::map<std::string,std::string> listFieldMap; // Maps the fields from the source to the columns of the list
|
1131 |
LIST_SORT listSort{LIST_SORT_NONE}; // ListView sort algorithm
|
1155 |
LIST_SORT listSort{LIST_SORT_NONE}; // ListView sort algorithm
|
1132 |
std::string listSortOverride; // A SQL ORDER BY command like sort option. Only valid if listStort == LIST_SORT_OVERRIDE
|
1156 |
std::string listSortOverride; // A SQL ORDER BY command like sort option. Only valid if listStort == LIST_SORT_OVERRIDE
|
1133 |
std::string listSourceUser; // The user name (optional)
|
1157 |
std::string listSourceUser; // The user name (optional)
|
1134 |
std::string listSourcePass; // The password (optional)
|
1158 |
std::string listSourcePass; // The password (optional)
|
1135 |
bool listSourceCsv{false}; // TRUE = Source of listView is in CSV data
|
1159 |
bool listSourceCsv{false}; // TRUE = Source of listView is in CSV data
|
1136 |
bool listSourceHasHeader{false}; // TRUE = The listView data has a had line which must be ignored.
|
1160 |
bool listSourceHasHeader{false}; // TRUE = The listView data has a had line which must be ignored.
|
- |
|
1161 |
int listViewP1{0}; // ListView layout percentage 1
|
- |
|
1162 |
int listViewP2{0}; // ListView layout percentage 2
|
- |
|
1163 |
bool listViewColFiler{false}; // ListView column filter state (TRUE = on)
|
- |
|
1164 |
int listViewColFilterHeight{0}; // ListView column filter height
|
- |
|
1165 |
bool listAlphaScroll{false}; // ListView alpha scroll state (TRUE = scrollbar visible)
|
1137 |
|
1166 |
|
1138 |
TPalette *mPalette{nullptr}; // The color palette
|
1167 |
TPalette *mPalette{nullptr}; // The color palette
|
1139 |
// Image management
|
1168 |
// Image management
|
1140 |
SkBitmap mLastImage; // The last calculated image
|
1169 |
SkBitmap mLastImage; // The last calculated image
|
1141 |
ulong mHandle{0}; // internal used handle to identify button
|
1170 |
ulong mHandle{0}; // internal used handle to identify button
|