#include <vdr_remote.h>
Collaboration diagram for vdr_remoteFrame:

Public Member Functions | |
| vdr_remoteFrame (const wxString &title, const wxPoint &pos, const wxSize &pos, const long &style) | |
| Constructor, initializes the application's frame. | |
| ~vdr_remoteFrame () | |
| Destructor. | |
| void | OnQuit (wxCommandEvent &event) |
| Quit Event handler. | |
| void | OnAbout (wxCommandEvent &event) |
| Displays the about box. | |
| void | OnBtnPrefs (wxCommandEvent &event) |
| Displays the preferences dialog and handles configuration writing. | |
| void | OnSocketEvent (wxSocketEvent &event) |
| Handles all Socket Events. | |
| void | OnSpinEvent (wxSpinEvent &event) |
| Handles all Socket Events. | |
| void | OnAccelerator (wxCommandEvent &event) |
| handles keyboard input and button clicks | |
| void | ToggleStayOnTop (wxCommandEvent &event) |
| Toggles the Stay on top feature on or off. | |
| void | OnIconize (wxIconizeEvent &event) |
| Handles Minimize/Maximize Events. | |
| void | LoadPreferences () |
| Load platform-specific user preferences. | |
| void | GetDiskStat (wxCommandEvent &event) |
| Get vdr's Disk Status. | |
| void | ShowHelpDlg (wxCommandEvent &event) |
| Display online Help. | |
Protected Member Functions | |
| void | SendMessage (const char *the_msg) |
| Send a message to vdr. | |
| void | Connect () |
| Connect the socket to vdr. | |
| void | Disconnect () |
| Disconnect the socket to vdr. | |
| void | AddNumberButtons (wxFlexGridSizer *numeric_box) |
| Adds the buttons 0-9 and Ch+,Ch- to the given sizer. | |
| void | AddUserButtons (wxFlexGridSizer *userbuttons_box) |
| Adds the buttons User1-User9 to the given sizer. | |
| void | AddExtendedButtons (wxFlexGridSizer *extended_keys_box) |
| Adds the buttons Channels, Commands, ... to the given sizer. | |
| void | AddPlayerButtons (wxFlexGridSizer *player_box) |
| Adds the player buttons (Play,Record,...) to the given sizer. | |
| void | AddColourButtons (wxFlexGridSizer *col_box) |
| Adds the the four colour buttons to the given sizer. | |
| void | AddMenuButtons (wxFlexGridSizer *menu_box) |
| Adds the Menu,Back,Ok and arrow buttons to the given sizer. | |
Protected Attributes | |
| wxSocketClient * | vdr_client |
| the pointer to the socket instance | |
| wxIPV4address | vdr_adress |
| vdr adress, IP and port | |
| bool | connection_is_alive |
| flag, tells if the socket connection is valid and alive | |
| bool | show_socket_viewer |
| flag, tells if socket_viewer should be shown | |
| bool | show_player_buttons |
| flag, tells if player buttons should be shown | |
| bool | show_user_buttons |
| flag, tells if user buttons should be shown | |
| bool | socket_data_needed |
| flag, tells OnSocketEvent if it should copy incoming data to my_socket_buffer | |
| bool | socket_data_available |
| flag, signals if data is available in my_socket_buffer | |
| long | vdr_port |
| port to use for svdrp | |
| long | disk_status_timeout |
| host adress of the vdr | |
| wxString | vdr_host |
| timeout in ms for GetDiskStat() | |
| wxArrayString | my_user_button_titles |
| an array holding all custom user button tooltips | |
| wxConfig * | my_prefs |
| for platform-independent preferences handling | |
| wxTextCtrl * | socket_viewer |
| the pointer to the socket_viewer instance | |
| wxBitmapButton * | key_ok |
| we need a pointer to the ok key so focus handling / enter key works correctly on windows | |
| MyTaskbarIcon * | my_tb_icon |
| the icon used when minimized to the system tray | |
| wxPanel * | main_panel |
| Main Window panel , parent of all controls. | |
| int | num_connection_failures |
| total number of failed connections | |
| char * | my_socket_buffer |
| temporary storage buffer for returned socket data | |
Definition at line 64 of file vdr_remote.h.
|
||||||||||||||||||||
|
Constructor, initializes the application's frame.
Definition at line 75 of file vdr_remote.cpp. References AddColourButtons(), AddExtendedButtons(), AddMenuButtons(), AddNumberButtons(), AddPlayerButtons(), AddUserButtons(), connection_is_alive, key_ok, LoadPreferences(), main_panel, my_prefs, my_tb_icon, num_connection_failures, show_player_buttons, show_socket_viewer, show_user_buttons, socket_data_available, socket_data_needed, socket_viewer, and vdr_client. Here is the call graph for this function: ![]() |
|
|
Destructor. Deletes dynamically allocated systray icon and preferences Definition at line 69 of file vdr_remote.cpp. References my_prefs, and my_tb_icon. |
|
|
Adds the the four colour buttons to the given sizer. Called from vdr_remoteFrame constructor.
Definition at line 171 of file gui_setup.cpp. References main_panel. Referenced by vdr_remoteFrame(). |
|
|
Adds the buttons Channels, Commands, ... to the given sizer. Called from vdr_remoteFrame constructor.
Definition at line 109 of file gui_setup.cpp. References main_panel. Referenced by vdr_remoteFrame(). |
|
|
Adds the Menu,Back,Ok and arrow buttons to the given sizer. Called from vdr_remoteFrame constructor.
Definition at line 187 of file gui_setup.cpp. References key_ok, and main_panel. Referenced by vdr_remoteFrame(). |
|
|
Adds the buttons 0-9 and Ch+,Ch- to the given sizer. Called from vdr_remoteFrame constructor.
Definition at line 25 of file gui_setup.cpp. References main_panel. Referenced by vdr_remoteFrame(). |
|
|
Adds the player buttons (Play,Record,...) to the given sizer. Called from vdr_remoteFrame constructor.
Definition at line 140 of file gui_setup.cpp. References main_panel. Referenced by vdr_remoteFrame(). |
|
|
Adds the buttons User1-User9 to the given sizer. Called from vdr_remoteFrame constructor.
Definition at line 77 of file gui_setup.cpp. References main_panel, and my_user_button_titles. Referenced by vdr_remoteFrame(). |
|
|
Connect the socket to vdr.
Definition at line 91 of file socket.cpp. References connection_is_alive, num_connection_failures, vdr_adress, vdr_client, vdr_host, and vdr_port. Referenced by GetDiskStat(), and SendMessage(). |
|
|
Disconnect the socket to vdr.
Definition at line 123 of file socket.cpp. References SendMessage(), and vdr_client. Referenced by SendMessage(). Here is the call graph for this function: ![]() |
|
|
Get vdr's Disk Status.
Definition at line 138 of file socket.cpp. References Connect(), disk_status_timeout, my_socket_buffer, socket_data_available, socket_data_needed, and vdr_client. Here is the call graph for this function: ![]() |
|
|
Load platform-specific user preferences.
Definition at line 38 of file preferences.cpp. References my_prefs, and vdr_host. Referenced by vdr_remoteFrame(). |
|
|
Displays the about box.
|
|
|
handles keyboard input and button clicks
Definition at line 245 of file vdr_remote.cpp. References SendMessage(), and socket_data_needed. Here is the call graph for this function: ![]() |
|
|
Displays the preferences dialog and handles configuration writing.
Definition at line 91 of file preferences.cpp. References disk_status_timeout, my_prefs, my_user_button_titles, OnSpinEvent(), show_player_buttons, show_socket_viewer, show_user_buttons, vdr_host, and vdr_port. Here is the call graph for this function: ![]() |
|
|
Handles Minimize/Maximize Events.
Definition at line 45 of file gui_events.cpp. |
|
|
Quit Event handler. Deletes dynamically allocated objects |
|
|
Handles all Socket Events.
Definition at line 29 of file socket.cpp. References connection_is_alive, my_socket_buffer, show_socket_viewer, socket_data_available, socket_data_needed, socket_viewer, and vdr_client. |
|
|
Handles all Socket Events.
Definition at line 77 of file gui_events.cpp. References disk_status_timeout. Referenced by OnBtnPrefs(). |
|
|
Send a message to vdr.
Definition at line 204 of file socket.cpp. References Connect(), Disconnect(), socket_data_needed, and vdr_client. Referenced by Disconnect(), and OnAccelerator(). Here is the call graph for this function: ![]() |
|
|
Display online Help.
Definition at line 64 of file gui_events.cpp. |
|
|
Toggles the Stay on top feature on or off.
Definition at line 30 of file gui_events.cpp. |
|
|
flag, tells if the socket connection is valid and alive
Definition at line 161 of file vdr_remote.h. Referenced by Connect(), OnSocketEvent(), and vdr_remoteFrame(). |
|
|
host adress of the vdr
Definition at line 193 of file vdr_remote.h. Referenced by GetDiskStat(), OnBtnPrefs(), and OnSpinEvent(). |
|
|
we need a pointer to the ok key so focus handling / enter key works correctly on windows On windows vdr_remote insists on setting the focus on the last button clicked, so Enter doesn´t work as a hotkey. By setting focus to this key after every focus-changing action we make sure Enter always triggers the Ok key. Definition at line 229 of file vdr_remote.h. Referenced by AddMenuButtons(), and vdr_remoteFrame(). |
|
|
Main Window panel , parent of all controls.
Definition at line 239 of file vdr_remote.h. Referenced by AddColourButtons(), AddExtendedButtons(), AddMenuButtons(), AddNumberButtons(), AddPlayerButtons(), AddUserButtons(), and vdr_remoteFrame(). |
|
|
for platform-independent preferences handling
Definition at line 216 of file vdr_remote.h. Referenced by LoadPreferences(), OnBtnPrefs(), vdr_remoteFrame(), and ~vdr_remoteFrame(). |
|
|
temporary storage buffer for returned socket data Contains the data vdr returned when socket_data_available is true.
Definition at line 254 of file vdr_remote.h. Referenced by GetDiskStat(), and OnSocketEvent(). |
|
|
the icon used when minimized to the system tray
Definition at line 234 of file vdr_remote.h. Referenced by vdr_remoteFrame(), and ~vdr_remoteFrame(). |
|
|
an array holding all custom user button tooltips
Definition at line 211 of file vdr_remote.h. Referenced by AddUserButtons(), and OnBtnPrefs(). |
|
|
total number of failed connections Used to count the failed connection. Is reset to zero when
Definition at line 247 of file vdr_remote.h. Referenced by Connect(), and vdr_remoteFrame(). |
|
|
flag, tells if player buttons should be shown
Definition at line 161 of file vdr_remote.h. Referenced by OnBtnPrefs(), and vdr_remoteFrame(). |
|
|
flag, tells if socket_viewer should be shown
Definition at line 161 of file vdr_remote.h. Referenced by OnBtnPrefs(), OnSocketEvent(), and vdr_remoteFrame(). |
|
|
flag, tells if user buttons should be shown
Definition at line 161 of file vdr_remote.h. Referenced by OnBtnPrefs(), and vdr_remoteFrame(). |
|
|
flag, signals if data is available in my_socket_buffer
Definition at line 161 of file vdr_remote.h. Referenced by GetDiskStat(), OnSocketEvent(), and vdr_remoteFrame(). |
|
|
flag, tells OnSocketEvent if it should copy incoming data to my_socket_buffer
Definition at line 161 of file vdr_remote.h. Referenced by GetDiskStat(), OnAccelerator(), OnSocketEvent(), SendMessage(), and vdr_remoteFrame(). |
|
|
the pointer to the socket_viewer instance
Definition at line 223 of file vdr_remote.h. Referenced by OnSocketEvent(), and vdr_remoteFrame(). |
|
|
vdr adress, IP and port vdr_adress is used internally only Definition at line 156 of file vdr_remote.h. Referenced by Connect(). |
|
|
the pointer to the socket instance
Definition at line 150 of file vdr_remote.h. Referenced by Connect(), Disconnect(), GetDiskStat(), OnSocketEvent(), SendMessage(), and vdr_remoteFrame(). |
|
|
timeout in ms for GetDiskStat()
Definition at line 206 of file vdr_remote.h. Referenced by Connect(), LoadPreferences(), and OnBtnPrefs(). |
|
|
port to use for svdrp
Definition at line 193 of file vdr_remote.h. Referenced by Connect(), and OnBtnPrefs(). |
1.4.6