paragui-cvs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[paragui-cvs] CVS: paragui/include pgtabbar.h,NONE,1.1 Makefile.am,1.3,1


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/include pgtabbar.h,NONE,1.1 Makefile.am,1.3,1.4 pgpopupmenu.h,1.5,1.6 pgsignals.h,1.1,1.2 pgwidgetlist.h,1.5,1.6
Date: Sat, 27 Apr 2002 15:08:13 -0400

Update of /cvsroot/paragui/paragui/include
In directory subversions:/tmp/cvs-serv3041/include

Modified Files:
        Makefile.am pgpopupmenu.h pgsignals.h pgwidgetlist.h 
Added Files:
        pgtabbar.h 
Log Message:
added new PG_TabBar class
PG_Button togglemode fixes
PG_WidgetList improvements needed for PG_TabBar



--- NEW FILE ---
#ifndef PG_TABBAR_H
#define PG_TABBAR_H

#include "pgthemewidget.h"
#include "pgwidgetlistex.h"
#include "pgbutton.h"

class PG_TabBar : public PG_Widget {
public:
        
        PG_TabBar(PG_Widget* parent, const PG_Rect r, const char* style = 
"TabBar");
        ~PG_TabBar();
        
        PG_Button* AddTab(const char* text, int id);
        
        PG_SignalTabSelect sigTabSelect;
        
protected:
        
        void eventSizeWidget(Uint16 w, Uint16 h);
        
        bool handleTabClick(PG_Button* button);
        
        bool handleTabNav(PG_Button* button);
        
        PG_Button* my_selectedTab;
        
        PG_WidgetListEx* my_tabList;
        PG_Button* my_btnPrev;
        PG_Button* my_btnNext;
        
};

#endif // PG_TABBAR_H

Index: Makefile.am
===================================================================
RCS file: /cvsroot/paragui/paragui/include/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Makefile.am 27 Apr 2002 15:36:54 -0000      1.3
--- Makefile.am 27 Apr 2002 19:08:11 -0000      1.4
***************
*** 50,54 ****
        pgdatacontainer.h \
        pgpoint.h \
!       pgsignals.h
  
  EXTRA_DIST = \
--- 50,55 ----
        pgdatacontainer.h \
        pgpoint.h \
!       pgsignals.h \
!       pgtabbar.h
  
  EXTRA_DIST = \

Index: pgpopupmenu.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgpopupmenu.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** pgpopupmenu.h       27 Apr 2002 15:36:54 -0000      1.5
--- pgpopupmenu.h       27 Apr 2002 19:08:11 -0000      1.6
***************
*** 45,50 ****
  class PG_MenuItem;
  
- typedef Slot2<bool, PG_MenuItem*, PG_Pointer*> PG_MenuItemSlot;
- 
  /**
   * @author Marek Habersack
--- 45,48 ----

Index: pgsignals.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgsignals.h,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** pgsignals.h 27 Apr 2002 11:57:22 -0000      1.1
--- pgsignals.h 27 Apr 2002 19:08:11 -0000      1.2
***************
*** 1,2 ****
--- 1,30 ----
+ /*
+     ParaGUI - crossplatform widgetset
+     Copyright (C) 2000,2001,2002  Alexander Pipelka
+  
+     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
+  
+     Alexander Pipelka
+     address@hidden
+  
+     Last Update:      $Author$
+     Update Date:      $Date$
+     Source File:      $Source$
+     CVS/RCS Revision: $Revision$
+     Status:           $State$
+ */
+ 
  #ifndef PG_SIGNALS_H
  #define PG_SIGNALS_H
***************
*** 20,23 ****
--- 48,52 ----
  class PG_Application;
  class PG_MessageObject;
+ class PG_TabBar;
  
  using namespace SigC;
***************
*** 261,264 ****
--- 290,295 ----
  typedef Signal2<bool, PG_MenuItem*, PG_Pointer*> PG_SignalMenuItemSelected;
  
+ typedef Slot2<bool, PG_MenuItem*, PG_Pointer*> PG_MenuItemSlot;
+ 
  typedef PG_Signal1<PG_Window*> PG_SignalWindowClose;
  
***************
*** 271,275 ****
  typedef PG_Signal1<PG_Application*> PG_SignalAppQuit;
  
! typedef PG_Signal1 <const SDL_ResizeEvent*> PG_SignalVideoResize;
  
  #endif // PG_SIGNALS_H
--- 302,308 ----
  typedef PG_Signal1<PG_Application*> PG_SignalAppQuit;
  
! typedef PG_Signal1<const SDL_ResizeEvent*> PG_SignalVideoResize;
! 
! typedef PG_Signal2<PG_TabBar*, PG_Button*> PG_SignalTabSelect;
  
  #endif // PG_SIGNALS_H

Index: pgwidgetlist.h
===================================================================
RCS file: /cvsroot/paragui/paragui/include/pgwidgetlist.h,v
retrieving revision 1.5
retrieving revision 1.6
diff -C2 -r1.5 -r1.6
*** pgwidgetlist.h      27 Apr 2002 15:36:55 -0000      1.5
--- pgwidgetlist.h      27 Apr 2002 19:08:11 -0000      1.6
***************
*** 109,112 ****
--- 109,114 ----
        PG_Widget* FindWidget(int index);
  
+       int FindIndex(PG_Widget* widget);
+       
        /**
        Remove all widgets from the list (without deletion)
***************
*** 141,144 ****
--- 143,154 ----
        void ScrollTo(int index, int direction = PG_SB_VERTICAL);
  
+       inline Uint32 GetListWidth() {
+               return my_listwidth;
+       }
+ 
+       inline Uint32 GetListHeight() {
+               return my_listheight;
+       }
+       
  protected:
  




reply via email to

[Prev in Thread] Current Thread [Next in Thread]