|
From: <edu...@us...> - 2003-07-12 21:37:30
|
Update of /cvsroot/aedgui/aedGUI/include
In directory sc8-pr-cvs1:/tmp/cvs-serv10246/include
Modified Files:
Makefile.am aedGui.h
Added Files:
aedImageButton.h
Log Message:
New aedImageButton class. This is the 0.1.6 release.
--- NEW FILE: aedImageButton.h ---
/*
* The aedImageButton class
* A nice little class that implement an image button
* Initial design by Eduardo B. Fonseca <eb...@ae...>
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Library General Public
* License as published by the Free Software Foundation; either
* version 2 of the License, or (at your option) any later version.
*
* This library 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
* Library General Public License for more details.
*
* You should have received a copy of the GNU Library General Public
* License along with this library; if not, write to the Free
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
*
*/
#ifndef AEDIMAGEBUTTON_H
#define AEDIMAGEBUTTON_H
#include "dllmacros.h"
#include "aedButton.h"
#include "aedStaticImage.h"
#include "aedThemeManager.h"
class DLLEXPORT aedImageButton:public aedButton
{
public:
aedImageButton();
virtual int wm_lbuttondown(Uint16 x, Uint16 y);
virtual int wm_lbuttonup(Uint16 x, Uint16 y);
virtual void render(SDL_Surface * screen = NULL, bool needsToBeUpdated =
true);
void setImage(aedImage img)
{
m_Image.setImage(img);
}
aedStaticImage getImage(void)
{
return m_Image;
}
protected:
aedStaticImage m_Image;
};
#endif
Index: Makefile.am
===================================================================
RCS file: /cvsroot/aedgui/aedGUI/include/Makefile.am,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** Makefile.am 12 Jul 2003 17:13:25 -0000 1.6
--- Makefile.am 12 Jul 2003 21:37:27 -0000 1.7
***************
*** 9,13 ****
aedStaticImage.h aedAnimatedImage.h \
aedThemeManager.h aedSquareButton.h aedRadioButtonGroup.h \
! aedTimer.h aedListBox.h aedLog.h
EXTRA_DIST = config.h.in
--- 9,13 ----
aedStaticImage.h aedAnimatedImage.h \
aedThemeManager.h aedSquareButton.h aedRadioButtonGroup.h \
! aedTimer.h aedListBox.h aedImageButton.h aedLog.h
EXTRA_DIST = config.h.in
Index: aedGui.h
===================================================================
RCS file: /cvsroot/aedgui/aedGUI/include/aedGui.h,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** aedGui.h 1 Jul 2003 10:54:45 -0000 1.2
--- aedGui.h 12 Jul 2003 21:37:27 -0000 1.3
***************
*** 30,32 ****
--- 30,33 ----
#include "aedSignal.h"
#include "aedListBox.h"
+ #include "aedImageButton.h"
#endif
|