aboutsummaryrefslogtreecommitdiffstats
path: root/channels/console_gui.c
AgeCommit message (Collapse)AuthorFilesLines
2008-10-09(closes issue #13557)murf1-4/+4
Reported by: nickpeirson Patches: pbx.c.patch uploaded by nickpeirson (license 579) replace_bzero+bcopy.patch uploaded by nickpeirson (license 579) Tested by: nickpeirson, murf 1. replaced all refs to bzero and bcopy to memset and memmove instead. 2. added a note to the CODING-GUIDELINES 3. add two macros to asterisk.h to prevent bzero, bcopy from creeping back into the source 4. removed bzero from configure, configure.ac, autoconfig.h.in git-svn-id: http://svn.digium.com/svn/asterisk/trunk@147807 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-30implement the 'freeze' function for incoming frames;rizzo1-11/+24
fix a bug which caused a crash when a videodevice was specified after startgui=1 in the config file. This also involves a slightly different method to determine if the gui is active or not. git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126572 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-29import the recent additions for video console into trunk,rizzo1-63/+517
giving you support for up to 9 video sources (e.g. webcams, or X11 grabbers, etc.) active at once, displaying thumbnails for each of them in the main GUI window, and with the ability to switch between them on the fly during a conversation. The code also implements a 'Picture in Picture' feature, allowing you to select any source as primary or secondary, and move the PiP window by just dragging it with the mouse. The window looks like this: ________________________________________________________________ | ______ ______ ______ ______ ______ ______ ______ | | | tn.1 | | tn.2 | | tn.3 | | tn.4 | | tn.5 | | tn.6 | | tn.7 | | | |______| |______| |______| |______| |______| |______| |______| | | ______ ______ ______ ______ ______ ______ ______ | | |______| |______| |______| |______| |______| |______| |______| | | _________________ __________________ _________________ | | | | | | | | | | | | | | | | | | | | | | | | | | | remote video | | | | local video | | | | | | | | ______ | | | | | | keypad | | | PIP || | | | | | | | |______|| | | |_________________| | | |_________________| | | | | | | | | | | |__________________| | |________________________________________________________________| git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126480 f38db490-d61c-443f-a65b-d21fe96a405b
2008-06-29fix wrong argument in checking boundaries for a rectanglerizzo1-2/+3
some whitespace fixes git-svn-id: http://svn.digium.com/svn/asterisk/trunk@126448 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-21do not die on SDL_ACTIVEEVENT reporting lost focus.rizzo1-0/+2
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@117401 f38db490-d61c-443f-a65b-d21fe96a405b
2008-05-19trap potential failures of SDL when SDL_WINDOWID is pointing to arizzo1-3/+33
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-19Some fixes to the code to support running on an externallyrizzo1-0/+122
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-03-04Fix minor misuses of snprintftilghman1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@105841 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09remove a wrong 'const'rizzo1-1/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@97533 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-09Two changes:rizzo1-92/+83
- 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-09Implement keyboard handling, and use it to enterrizzo1-58/+71
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-08add support for textareas, used for various dialog windows on the gui.rizzo1-57/+79
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-07add support for cropping the keypad image while displaying it.rizzo1-34/+65
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-07update comments to reflect reality (or at least planned behaviour).rizzo1-81/+84
minor code cleanups git-svn-id: http://svn.digium.com/svn/asterisk/trunk@96836 f38db490-d61c-443f-a65b-d21fe96a405b
2008-01-07resolve a load-time problem avoiding a call to console_do_answer.rizzo1-2/+9
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-01call directly the cli command to implement hangup.rizzo1-2/+1
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95673 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-29virtualize the interface for video grabbers, which shouldrizzo1-19/+5
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-28various rearrangements and renaming of console_video stuffrizzo1-23/+29
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@95262 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27more localization of gui stuffrizzo1-10/+4
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94904 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27more steps to decouple the gui from the rest of the code.rizzo1-34/+37
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94823 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-27Enable building the code even if SDL is not present (similarly,rizzo1-6/+26
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-26more localizations around sdl_setuprizzo1-20/+35
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94821 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26use fread instead of mmap to read in the comment area from the keypad.rizzo1-62/+37
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-26another bunch of gui localizationsrizzo1-24/+26
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94817 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26more localization of sdl stuffrizzo1-22/+25
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94813 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26move more gui stuff into console_gui.crizzo1-22/+39
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94810 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26more preparation for untangling of the various console_video stuffrizzo1-68/+137
git-svn-id: http://svn.digium.com/svn/asterisk/trunk@94805 f38db490-d61c-443f-a65b-d21fe96a405b
2007-12-26Split console_video.c so that video codecs and gui functionsrizzo1-0/+880
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