paragui-cvs
[Top][All Lists]
Advanced

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

[paragui-cvs] CVS: paragui/src/core pgfilelist.cpp,NONE,1.1 Makefile.am,


From: Alexander Pipelka <address@hidden>
Subject: [paragui-cvs] CVS: paragui/src/core pgfilelist.cpp,NONE,1.1 Makefile.am,1.3,1.4 pgapplication.cpp,1.4,1.5 pgfilearchive.cpp,1.3,1.4 pgmessageobject.cpp,1.2,1.3 pgrectlist.cpp,1.1,1.2
Date: Mon, 29 Apr 2002 07:44:25 -0400

Update of /cvsroot/paragui/paragui/src/core
In directory subversions:/tmp/cvs-serv23212/src/core

Modified Files:
        Makefile.am pgapplication.cpp pgfilearchive.cpp 
        pgmessageobject.cpp pgrectlist.cpp 
Added Files:
        pgfilelist.cpp 
Log Message:
PG_MessageObject, PG_Application cleanups
added PG_FileList
added performance test to paratest



--- NEW FILE ---
#include "pgfilelist.h"

PG_FileList::PG_FileList(char** list) {
        while(*list) {
                push_back(*list);
        };
}
        
PG_FileList::~PG_FileList() {
}

Index: Makefile.am
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/Makefile.am,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** Makefile.am 27 Apr 2002 16:06:25 -0000      1.3
--- Makefile.am 29 Apr 2002 11:44:22 -0000      1.4
***************
*** 8,11 ****
--- 8,12 ----
        pgfilearchive.cpp \
        pgfile.cpp \
+       pgfilelist.cpp \
        pglog.cpp \
        pgmain.cpp \

Index: pgapplication.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgapplication.cpp,v
retrieving revision 1.4
retrieving revision 1.5
diff -C2 -r1.4 -r1.5
*** pgapplication.cpp   27 Apr 2002 15:36:55 -0000      1.4
--- pgapplication.cpp   29 Apr 2002 11:44:22 -0000      1.5
***************
*** 65,68 ****
--- 65,69 ----
  SDL_Color PG_Application::my_backcolor;
  int PG_Application::my_backmode;
+ bool PG_Application::my_quitEventLoop = false;
  
  /**
***************
*** 191,194 ****
--- 192,196 ----
                        if (SDL_PollEvent(&event) == 0) {
                                object->eventIdle();
+                               object->sigAppIdle(object);
                        } else {
                                PG_MessageObject::PumpIntoEventQueue(&event);
***************
*** 925,928 ****
--- 927,933 ----
  }
  #endif
+ 
+ void PG_Application::eventIdle() {
+ }
  
  /*

Index: pgfilearchive.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgfilearchive.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -C2 -r1.3 -r1.4
*** pgfilearchive.cpp   27 Apr 2002 16:06:25 -0000      1.3
--- pgfilearchive.cpp   29 Apr 2002 11:44:22 -0000      1.4
***************
*** 105,110 ****
  }
  
! char **PG_FileArchive::EnumerateFiles(const char *dir) {
!       return PHYSFS_enumerateFiles(dir);
  }
  
--- 105,114 ----
  }
  
! PG_FileList PG_FileArchive::EnumerateFiles(const char *dir) {
!       char** files = PHYSFS_enumerateFiles(dir);
!       PG_FileList list(files);
!       FreeList(files);
!       
!       return list;
  }
  

Index: pgmessageobject.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgmessageobject.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -r1.2 -r1.3
*** pgmessageobject.cpp 27 Apr 2002 11:57:22 -0000      1.2
--- pgmessageobject.cpp 29 Apr 2002 11:44:22 -0000      1.3
***************
*** 38,42 ****
  PG_MessageObject* PG_MessageObject::inputFocusObject = NULL;
  PG_Widget* PG_MessageObject::lastwidget = NULL;
- bool PG_MessageObject::my_quitEventLoop = false;
  
  /** constructor */
--- 38,41 ----
***************
*** 52,56 ****
  
        // init mutexes
-       my_mutexSendMessage = SDL_CreateMutex();
        my_mutexReceiveMessage = SDL_CreateMutex();
  }
--- 51,54 ----
***************
*** 61,68 ****
  PG_MessageObject::~PG_MessageObject() {
  
!       // destroy mutexes
!       SDL_DestroyMutex(my_mutexSendMessage);
!       my_mutexSendMessage = NULL;
! 
        SDL_DestroyMutex(my_mutexReceiveMessage);
        my_mutexReceiveMessage = NULL;
--- 59,63 ----
  PG_MessageObject::~PG_MessageObject() {
  
!       // destroy mutex
        SDL_DestroyMutex(my_mutexReceiveMessage);
        my_mutexReceiveMessage = NULL;
***************
*** 202,210 ****
  }
  
- bool PG_MessageObject::eventQuitModal(int id, PG_MessageObject* widget, 
unsigned long data) {
-       return false;
- }
- 
- 
  bool PG_MessageObject::eventSysWM(const SDL_SysWMEvent* syswm) {
        return false;
--- 197,200 ----
***************
*** 333,348 ****
  }
  
- 
- void PG_MessageObject::eventIdle() {
-       sigAppIdle(this);
-       SDL_Delay(1);
- }
- 
- 
  SDL_Event PG_MessageObject::WaitEvent(Uint32 delay) {
        static SDL_Event event;
  
        while(SDL_PollEvent(&event) == 0) {
-               //              eventIdle();
                if(delay > 0) {
                        SDL_Delay(delay);
--- 323,330 ----

Index: pgrectlist.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/src/core/pgrectlist.cpp,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** pgrectlist.cpp      15 Apr 2002 14:53:56 -0000      1.1
--- pgrectlist.cpp      29 Apr 2002 11:44:22 -0000      1.2
***************
*** 59,63 ****
  
                testrect = testwidget->GetClipRect();
!               if(rect->OverlapRect(*testrect)) {
                        // append the matching rectangle
                        result.Add(testwidget);
--- 59,63 ----
  
                testrect = testwidget->GetClipRect();
!               if(rect->OverlapRect(testrect)) {
                        // append the matching rectangle
                        result.Add(testwidget);




reply via email to

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