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 * Modify by Salmaso Raffaele <r.salmaso@flashnet.it> 10 Jan 1999 00012 * added 2 property: Caption and CaptionWrap 00013 * 00014 * This library is free software; you can redistribute it and/or 00015 * modify it under the terms of the GNU Library General Public 00016 * License as published by the Free Software Foundation; either 00017 * version 2 of the License, or (at your option) any later version. 00018 * 00019 * This library is distributed in the hope that it will be useful, 00020 * but WITHOUT ANY WARRANTY; without even the implied warranty of 00021 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU 00022 * Library General Public License for more details. 00023 * 00024 * You should have received a copy of the GNU Library General Public 00025 * License along with this library; if not, write to the Free Software 00026 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 00027 * 02111-1307, USA. 00028 */ 00029 00030 #ifndef LABEL_H 00031 #define LABEL_H 00032 00033 #include <vdk/vdkobj.h> 00040 class VDKLabel: public VDKObject 00041 { 00042 public: 00043 // 00047 VDKReadWriteValueProp<VDKLabel, GtkJustification> Justify; 00051 VDKReadWriteValueProp<VDKLabel, const char*> Caption; 00055 VDKReadWriteValueProp<VDKLabel, bool> CaptionWrap; 00062 VDKLabel(VDKForm* owner, const char* label, 00063 GtkJustification justify = GTK_JUSTIFY_LEFT); 00064 virtual ~VDKLabel(); 00065 void SetCaption (const char* str); 00066 const char* GetCaption (); 00067 void SetCaptionWrap (bool flag); 00068 bool GetCaptionWrap (); 00069 void SetJustify(GtkJustification jtype); 00070 GtkJustification GetJustify() 00071 { return Justify; } 00072 }; 00073 #endif 00074