dect
/
asterisk
Archived
13
0
Fork 0
Commit Graph

23 Commits

Author SHA1 Message Date
rizzo b8fa11992d trap potential failures of SDL when SDL_WINDOWID is pointing to a
random window.

This commit is essentially a workaround for some undesirable behaviour of SDL;
we should not be doing this in the application, but in the library.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117084 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 15:47:46 +00:00
rizzo 971ffb8e85 Some fixes to the code to support running on an externally
supplied window.

SDL (at least recent 1.2.x versions) has the ability to run the
graphic output into an externally supplied window, whose ID in the
environment variable SDL_WINDOWID. Ideally, applications should
run unchanged irrespective of who creates the window. Unfortunately,
SDL does not subscribe to mouse, key and resize events on externally
supplied windows, so we need to do ask for these events explicitly.
 
On passing, also add some code to handle SDL_ACTIVEEVENT so if
the X11 window is killed while we are active, we call
"stop now" to terminate the asterisk instance.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117052 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19 14:22:04 +00:00
tilghman 701a8a40c2 Fix minor misuses of snprintf
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105841 f38db490-d61c-443f-a65b-d21fe96a405b
2008-03-04 23:10:45 +00:00
rizzo 73f0a12313 remove a wrong 'const'
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97533 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09 18:12:44 +00:00
rizzo ea322dd14c Two changes:
- support scrolling of message window;
- simplify the code for creating a message window,
  and try it using a second one in the top of
  the keypad (where we echo the dialed number).

The 'skin' that supports these two windows will be
committed separately.

 


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97530 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09 18:03:40 +00:00
rizzo 1e7077c8bd Implement keyboard handling, and use it to enter
a number to dial in the 'message' area under the
keypad.

Now you can make calls using the keypad as a regular phone
(or the keyboard for chars not present on the keypad)



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97488 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09 16:44:20 +00:00
rizzo 3b8929f929 add support for textareas, used for various dialog windows on the gui.
The main code to implement the textarea is in console_board.c,
and uses a simple png image with the font, blitting characters
on the designated areas of the main screen.
Additionally we provide some annotations in the image used
as a skin to indicate which areas are used for text messages.
(images will be committed separately).
At the moment the dialog area is only used to display a running
counter, just as a proof of concept.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97280 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-08 23:09:44 +00:00
rizzo 360dff1573 add support for cropping the keypad image while displaying it.
This way it can contain additional elements (e.g. fonts, buttons,
widgets) without having to use a zillion files to store them.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96988 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07 23:03:11 +00:00
rizzo 74ec4f4279 update comments to reflect reality (or at least planned behaviour).
minor code cleanups



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96836 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07 15:06:54 +00:00
rizzo fc37acff50 resolve a load-time problem avoiding a call to console_do_answer.
On passing, fix dialling from the keypad.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96776 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07 11:22:01 +00:00
rizzo 4ff493aff5 call directly the cli command to implement hangup.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95673 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-01 23:55:19 +00:00
rizzo 2f8edd72db virtualize the interface for video grabbers, which should
make it easier to add support for more grabbers (V4L2,
firewire, and so on).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95288 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-29 01:10:14 +00:00
rizzo 956da6a580 various rearrangements and renaming of console_video stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95262 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-28 22:37:40 +00:00
rizzo 115c729a35 more localization of gui stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94904 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 17:26:16 +00:00
rizzo 3873b83f28 more steps to decouple the gui from the rest of the code.
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94823 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 00:48:38 +00:00
rizzo 3362e1caef Enable building the code even if SDL is not present (similarly,
SDL is also detected at runtime).
Now we should be able to stream video even without a rendering device
(useful for remote monitoring).



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94822 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27 00:21:02 +00:00
rizzo 7a2d553924 more localizations around sdl_setup
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 23:40:23 +00:00
rizzo e7bc9bf26e use fread instead of mmap to read in the comment area from the keypad.
fread is simpler and more portable, and there is no performance gain
in using mmap.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94820 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 23:00:29 +00:00
rizzo 596c9a8c6a another bunch of gui localizations
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94817 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:29:45 +00:00
rizzo 8a2e9c134d more localization of sdl stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94813 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 22:10:32 +00:00
rizzo 5972f78166 move more gui stuff into console_gui.c
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94810 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 21:10:42 +00:00
rizzo 4d04a3258e more preparation for untangling of the various console_video stuff
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 20:01:16 +00:00
rizzo 7f64f70d63 Split console_video.c so that video codecs and gui functions
are in separate files (still #include'd because of tangling in the data
structures, but this is going to be cleaned up).

The video grabbing functions still need to be moved to a separate file.



git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94774 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26 10:14:11 +00:00