|
From: <edu...@us...> - 2003-10-19 18:49:23
|
Update of /cvsroot/aedgui/aedGUI/include
In directory sc8-pr-cvs1:/tmp/cvs-serv12059/include
Modified Files:
Makefile.am
Added Files:
aedBoxSizer.h aedSizer.h
Log Message:
A very simple example of a possible aedSizer. Buggy!
--- NEW FILE: aedBoxSizer.h ---
#ifndef AEDBOXSIZER_H
#define AEDBOXSIZER_H
#include "aedSizer.h"
enum boxType
{
aedVERTICAL,
aedHORIZONTAL
};
class aedBoxSizer : public aedSizer
{
public:
aedBoxSizer(aedWindow *parent, boxType type);
virtual void calculateSize(void);
private:
boxType m_BoxType;
};
#endif
--- NEW FILE: aedSizer.h ---
#ifndef AEDSIZER_H
#define AEDSIZER_H
#include "aedWindow.h"
class aedSizer
{
public:
aedSizer();
aedSizer(aedWindow *parent);
virtual ~aedSizer();
void addWidget(aedWindow *widget);
virtual void calculateSize(void) = 0;
protected:
aedWindow *m_Parent;
std::vector<aedWindow *> m_Widgets;
};
#endif
Index: Makefile.am
===================================================================
RCS file: /cvsroot/aedgui/aedGUI/include/Makefile.am,v
retrieving revision 1.25
retrieving revision 1.26
diff -C2 -d -r1.25 -r1.26
*** Makefile.am 28 Sep 2003 03:09:50 -0000 1.25
--- Makefile.am 19 Oct 2003 16:47:11 -0000 1.26
***************
*** 37,41 ****
aedSpinner.h \
aedCursor.h \
! aedLog.h
# rint.h is included in the distribution, but not installed
--- 37,43 ----
aedSpinner.h \
aedCursor.h \
! aedLog.h \
! aedSizer.h \
! aedBoxSizer.h
# rint.h is included in the distribution, but not installed
|