vdk 2.4.0
|
00001 /* 00002 * =========================== 00003 * VDK Visual Development Kit 00004 * Version 2.0.3 00005 * January 2003 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-1307, USA. 00025 */ 00026 #ifndef _vdkhlbuttonbar_h 00027 // put your code below here 00028 #define _vdkhlbuttonbar_h 00029 #include <vdk/siglisthandle.h> 00030 #include <vdk/vdkhlbutton.h> 00031 #include <vdk/frame.h> 00032 #include <vdk/vdkprops.h> 00033 00034 typedef VDKList <VDKHLButton> BList; 00035 typedef VDKListIterator <VDKHLButton> ButtonListIterator; 00036 class VDKHLButtonBar: public VDKFrame 00037 { 00038 protected: 00039 BList blist; 00040 bool OnClick (VDKObject* sender); 00041 public: 00042 VDKHLButtonBar (VDKForm* owner, 00043 int mode = h_box, 00044 int shadow = shadow_none); 00045 virtual ~ VDKHLButtonBar (); 00046 BList* ButtonList() { return &blist; } 00047 void AddButton (const char** pixdata, 00048 const char* tip = NULL, 00049 const char* text = NULL); 00050 void AddButton (const char* pixfile, 00051 const char* tip = NULL, 00052 const char* text = NULL); 00053 VDKHLButton* operator[](int n); 00054 VDKReadWriteValueProp <VDKHLButtonBar, int> ButtonPressed; 00055 DECLARE_SIGNAL_LIST (VDKHLButtonBar); 00056 }; 00057 00058 // 00059 #endif 00060