vdk 2.4.0
vdkcsortlist.h
1 /*
2  * ===========================
3  * VDK Visual Development Kit
4  * Version 0.4
5  * October 1998
6  * ===========================
7  *
8  * Copyright (C) 1998, Mario Motta
9  * Developed by Mario Motta <mmotta@guest.net>
10  *
11  * This library is free software; you can redistribute it and/or
12  * modify it under the terms of the GNU Library General Public
13  * License as published by the Free Software Foundation; either
14  * version 2 of the License, or (at your option) any later version.
15  *
16  * This library is distributed in the hope that it will be useful,
17  * but WITHOUT ANY WARRANTY; without even the implied warranty of
18  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
19  * Library General Public License for more details.
20  *
21  * You should have received a copy of the GNU Library General Public
22  * License along with this library; if not, write to the Free Software
23  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
24  * 02111-130
25  */
26 
27 #ifndef VDKCSORTLIST_H
28 #define VDKCSORTLIST_H
29 #include <vdk/vdkclist.h>
30 
44 {
45  protected:
46  int keypos;
47  char *oldkey;
48  public:
49  // properties
54  bool Unique;
63  int keyPos,
64  int columns = 1,
65  char **titles = NULL,
66  GtkSelectionMode mode = GTK_SELECTION_SINGLE);
77  bool AddKey(char **s, char** pixdata = NULL, int col = 0);
85  void UpdateKey(const char* key, char** s,
86  char** pixdata = NULL, int col = 0);
93  void UpdateCellKey(const char* key, int col,
94  const char* s, char** pixdata = NULL);
99  void RemoveKey(const char* key);
103  int FindKey(const char* key);
107  int KeyPos() { return keypos; }
108 };
109 #endif
int KeyPos()
Definition: vdkcsortlist.h:107
bool Unique
Definition: vdkcsortlist.h:54
void UpdateKey(const char *key, char **s, char **pixdata=NULL, int col=0)
Definition: vdkcsortlist.cc:65
bool AddKey(char **s, char **pixdata=NULL, int col=0)
Definition: vdkcsortlist.cc:43
void UpdateCellKey(const char *key, int col, const char *s, char **pixdata=NULL)
Definition: vdkcsortlist.cc:82
VDKForm widgets, generally the outermost widget container.
Definition: forms.h:68
This class wraps gtkclist widget.
Definition: vdkclist.h:98
void RemoveKey(const char *key)
Definition: vdkcsortlist.cc:98
int FindKey(const char *key)
Definition: vdkcsortlist.cc:112
Definition: vdkcsortlist.h:43
VDKCustomSortedList(VDKForm *owner, int keyPos, int columns=1, char **titles=NULL, GtkSelectionMode mode=GTK_SELECTION_SINGLE)
Definition: vdkcsortlist.cc:32
~VDKCustomSortedList()
Definition: vdkcsortlist.h:70