Main Page | Class Hierarchy | Alphabetical List | Class List | File List | Class Members | Related Pages

vdkcsortlist.h

00001 /* 00002 * =========================== 00003 * VDK Visual Development Kit 00004 * Version 0.4 00005 * October 1998 00006 * =========================== 00007 * 00008 * Copyright (C) 1998, Mario Motta 00009 * Developed by Mario Motta <mmotta@guest.net> 00010 * 00011 * This library is free software; you can redistribute it and/or 00012 * modify it under the terms of the GNU Library General Public 00013 * License as published by the Free Software Foundation; either 00014 * version 2 of the License, or (at your option) any later version. 00015 * 00016 * This library is distributed in the hope that it will be useful, 00017 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00018 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00019 * Library General Public License for more details. 00020 * 00021 * You should have received a copy of the GNU Library General Public 00022 * License along with this library; if not, write to the Free Software 00023 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00024 * 02111-130 00025 */ 00026 00027 #ifndef VDKCSORTLIST_H 00028 #define VDKCSORTLIST_H 00029 #include <vdk/vdkclist.h> 00030 00043 class VDKCustomSortedList: public VDKCustomList 00044 { 00045 protected: 00046 int keypos; 00047 char *oldkey; 00048 public: 00049 // properties 00054 bool Unique; 00062 VDKCustomSortedList(VDKForm* owner, 00063 int keyPos, 00064 int columns = 1, 00065 char **titles = NULL, 00066 GtkSelectionMode mode = GTK_SELECTION_SINGLE); 00070 ~VDKCustomSortedList() {} 00077 bool AddKey(char **s, char** pixdata = NULL, int col = 0); 00085 void UpdateKey(const char* key, char** s, 00086 char** pixdata = NULL, int col = 0); 00093 void UpdateCellKey(const char* key, int col, 00094 const char* s, char** pixdata = NULL); 00099 void RemoveKey(const char* key); 00103 int FindKey(const char* key); 00107 int KeyPos() { return keypos; } 00108 }; 00109 #endif

Generated on Tue Aug 17 12:39:50 2004 for vdk 2.4.0 by doxygen 1.3.7