[mythtv] [PATCH] New settings module to tune channel by hand

Leandro Dardini ldardini at tiscali.it
Wed Jun 4 02:21:17 EDT 2003


Hello,
1.20 am is not the best time to submit a patch... so I hope all is ok.
This new module is very simple and allow a direct edit of
mythconverg.channel as you can see at
http://pigbox.texnet.it/leandro/tune.png
Yes, the big black box in the centre let you see your tuned channel in real
time.
To add a channel, simply find a free slot and fill it with values.
To delete a channel, simply choose --- as channum.
To modify a channel, guess...

To install and test it, simply copy tunebox.h and tunebox.cpp to
mythtv/programs/mythfrontend and apply the diff against this directory.
Issue a qmake to rebuild the makefile and go with a "make && make install".
You'll find the new icon under "tv setup"

About the code... I start from manualbox.cpp and as usual throw away the
code I don't need or I don't understand and type some random key until the
correct result happens :)

Currently the name value is assigned to callsign and name table columns.

There is a thing I don't like in the code I write, so feel free to modify
it. I don't know how to intercept the focus events so I use the
changeHelpText event...

Leandro
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tunebox.h
Type: application/octet-stream
Size: 1816 bytes
Desc: not available
Url : /pipermail/attachments/20030604/65aa6521/tunebox.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tunebox.cpp
Type: application/octet-stream
Size: 16378 bytes
Desc: not available
Url : /pipermail/attachments/20030604/65aa6521/tunebox-0001.obj
-------------- next part --------------
A non-text attachment was scrubbed...
Name: tune.diff
Type: application/octet-stream
Size: 3062 bytes
Desc: not available
Url : /pipermail/attachments/20030604/65aa6521/tune.obj


More information about the mythtv-dev mailing list