Benoît Minisini e87e085b3e [INTERPRETER]
* BUG: Silently ignore conversion errors inside String.Upper() and 
  String.Lower() methods.
  
[GB.GTK]
* BUG: Fix the Embedder Plug & Discard methods.

[GB.QT]
* BUG: Fix an uninitialized variable in the QtXEmbedContainer class.


git-svn-id: svn://localhost/gambas/trunk@1656 867c0c6c-44f3-4631-809d-bfa615b0a4ec
2008-10-28 16:10:06 +00:00

88 lines
2.1 KiB
C

/***************************************************************************
CWidget.h
(c) 2004-2006 - Daniel Campos Fernández <dcamposf@gmail.com>
GTK+ component
Realizado para la Junta de Extremadura.
Consejería de Educación Ciencia y Tecnología.
Proyecto gnuLinEx
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation; either version 1, or (at your option)
any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU General Public License for more details.
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
***************************************************************************/
#ifndef __CWIDGET_H
#define __CWIDGET_H
#include "main.h"
#include "gcontrol.h"
#include "gplugin.h"
#ifndef __CWIDGET_CPP
extern GB_DESC CWidgetDesc[];
extern GB_DESC CPluginDesc[];
#else
#define THIS ((CWIDGET *)_object)
#define CONTROL (THIS->widget)
#define PLUGIN (((CPLUGIN*)_object)->widget)
#define CPLUGIN_PROPERTIES "*"
#endif
typedef
struct
{
GB_BASE ob;
gControl *widget;
GB_VARIANT_VALUE tag;
void *font;
}
CWIDGET;
typedef
struct
{
GB_BASE ob;
gPlugin *widget;
GB_VARIANT_VALUE tag;
void *font;
}
CPLUGIN;
void InitControl(gControl *control, CWIDGET *widget);
void DeleteControl(gControl *control);
CWIDGET *GetContainer(CWIDGET *control);
#define GetObject(_control) ((CWIDGET *)((_control) ? (_control)->hFree : NULL))
#define CWIDGET_PROPERTIES CCONTROL_PROPERTIES
#define CONTAINER(_parent) ((gContainer *)GetContainer((CWIDGET *)_parent)->widget)
DECLARE_PROPERTY(CCONTROL_action);
void CACTION_register(void *control, const char *key);
void CACTION_raise(void *control);
void CACTION_get(void *control);
#endif