[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[paragui-cvs] CVS: paragui/test/keyboard main.cpp,1.1.2.1,1.1.2.2
From: |
Alexander Pipelka <address@hidden> |
Subject: |
[paragui-cvs] CVS: paragui/test/keyboard main.cpp,1.1.2.1,1.1.2.2 |
Date: |
Sun, 30 Mar 2003 11:31:00 -0500 |
Update of /cvsroot/paragui/paragui/test/keyboard
In directory subversions:/tmp/cvs-serv28134/test/keyboard
Modified Files:
Tag: devel-1-0
main.cpp
Log Message:
- converted wrong CR/LF to LF (UNIX style)
- applied patches from "H. C." <address@hidden>
access functions for PG_Application::enableAppIdleCalls
added functions to set the windowtitle of the log-console
Index: main.cpp
===================================================================
RCS file: /cvsroot/paragui/paragui/test/keyboard/Attic/main.cpp,v
retrieving revision 1.1.2.1
retrieving revision 1.1.2.2
diff -C2 -r1.1.2.1 -r1.1.2.2
*** main.cpp 14 Jul 2002 14:27:15 -0000 1.1.2.1
--- main.cpp 30 Mar 2003 16:30:58 -0000 1.1.2.2
***************
*** 1,33 ****
! #include "keyboard.h"
! #include "pgapplication.h"
!
! int main(int argc, char* argv[]) {
! char theme[20];
! strcpy(theme, "simple");
!
! // initial flags for screensurface
! Uint32 flags = SDL_SWSURFACE|SDL_HWPALETTE;
! int bpp = 0;
!
! // construct the application object
! PG_Application app;
!
! if(!app.LoadTheme(theme)) {
! printf("Unable to load theme \"%s\"", theme);
! return -1;
! }
!
! if(!app.InitScreen(640, 480, bpp, flags)){
! printf("Resolution not supported\n");
! exit(-1);
! }
!
TKeyAlpha_LineEdit edit(NULL, PG_Rect(200,300,300,25));
edit.Init();
edit.Show();
!
! app.SetEmergencyQuit(true);
! app.Run();
!
! return EXIT_SUCCESS;
! }
--- 1,33 ----
! #include "keyboard.h"
! #include "pgapplication.h"
!
! int main(int argc, char* argv[]) {
! char theme[20];
! strcpy(theme, "simple");
!
! // initial flags for screensurface
! Uint32 flags = SDL_SWSURFACE|SDL_HWPALETTE;
! int bpp = 0;
!
! // construct the application object
! PG_Application app;
!
! if(!app.LoadTheme(theme)) {
! printf("Unable to load theme \"%s\"", theme);
! return -1;
! }
!
! if(!app.InitScreen(640, 480, bpp, flags)){
! printf("Resolution not supported\n");
! exit(-1);
! }
!
TKeyAlpha_LineEdit edit(NULL, PG_Rect(200,300,300,25));
edit.Init();
edit.Show();
!
! app.SetEmergencyQuit(true);
! app.Run();
!
! return EXIT_SUCCESS;
! }
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [paragui-cvs] CVS: paragui/test/keyboard main.cpp,1.1.2.1,1.1.2.2,
Alexander Pipelka <address@hidden> <=
- Prev by Date:
[paragui-cvs] CVS: paragui/src/widgets pgdropdown.cpp,1.3,1.3.6.1 pglistboxbaseitem.cpp,1.3.6.4,1.3.6.5pgwidget.cpp,1.4.4.16,1.4.4.17
- Next by Date:
[paragui-cvs] CVS: paragui/test/fireworks blob.cpp,1.1.2.1,1.1.2.2 blob.h,1.1.2.1,1.1.2.2 main.cpp,1.1.2.1,1.1.2.2
- Previous by thread:
[paragui-cvs] CVS: paragui/src/widgets pgdropdown.cpp,1.3,1.3.6.1 pglistboxbaseitem.cpp,1.3.6.4,1.3.6.5pgwidget.cpp,1.4.4.16,1.4.4.17
- Next by thread:
[paragui-cvs] CVS: paragui/test/fireworks blob.cpp,1.1.2.1,1.1.2.2 blob.h,1.1.2.1,1.1.2.2 main.cpp,1.1.2.1,1.1.2.2
- Index(es):