Thanks Thanks:  0
Likes Likes:  0
Page 1 of 7 1234567 LastLast
Results 1 to 20 of 127

Thread: CVS Edits

  1. #1
    Member
    Join Date
    Jun 2006
    Posts
    14
    Post Thanks
    Chats
    0
    Rep Power
    0

    CVS Edits

    Okay This is like my second post here below is a modification for the neutrino.cpp that people may find useful


    the first is to change the default language of your box to english just find
    strcpy(g_settings.language, "deutsch");
    and change it to
    strcpy(g_settings.language, "english");
    so if you do get a setup menu from a virgin image it will at least be in english

    oh and it can be changed to any of the menu languages

  2. #2
    Legend for now
    Join Date
    Jun 2006
    Location
    Leatherhead
    Posts
    697
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Another mod Hidden Content

    Find the line thats similar to this:

    Code:
    mainMenu.addItem(LOCALE_MAINMENU_SLEEPTIMER...)
    and delete it. This is the sleeptimer option on the mainmenu, but it doesnt function as we would expect it to in the UK (ie, its is NOT an actual sleep timer).

    Another thing you can look out for if making a UK image:

    Code:
    settings.AddItem(LOCALE_MAINSETTINGS_LANGUAGE....
    Delete that line to remove the language option from the settings menu.
    We only need english in a UK image.

  3. #3
    Member
    Join Date
    Jun 2006
    Posts
    14
    Post Thanks
    Chats
    0
    Rep Power
    0

    Re: CVS Edits

    you can also make new menu items by using

    mainMenu.addItem(new CMenuForwarder(LOCALE_MENUITEM_TITLE, true, NULL, this, "name for acustom action"));

    and then search for

    else if(actionKey=="

    above the first found else if statement type

    else if(actionKey=="name for acustom action"){
    // input your code for the action here
    }

    hope you guys like this little toy that saves you making new CNeutrinoApp's and menu files

    [sidenote] to put in a custom locale you must put it into the locals.h and locals_intern.h files otherwise it will return a compiler error

  4. #4
    Legend for now
    Join Date
    Jun 2006
    Location
    Leatherhead
    Posts
    697
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Hidden Content Originally Posted by biglew5k99
    you can also make new menu items by using
    mainMenu.addItem(new CMenuForwarder(LOCALE_MENUITEM_TITLE, true, NULL, this, "name for acustom action"));
    and then search for
    else if(actionKey=="
    above the first found else if statement type
    else if(actionKey=="name for acustom action"){
    // input your code for the action here
    }
    hope you guys like this little toy that saves you making new CNeutrinoApp's and menu files
    [sidenote] to put in a custom locale you must put it into the locals.h and locals_intern.h files otherwise it will return a compiler error
    Wow lew I must say that I'm very impressed! You've come a long way and it looks like you're experimenting and examining the code in order to work out what does what! Hidden Content Which is exactly the way that I went.

    I must have to stress your point tho of adding the entry to the locals.h and locals_intern.h files otherwise you run into all sorts of problems. It's also a good idea to keep all locale entries in alphabetical order Hidden Content

    Nice post.

  5. #5
    Legend for now
    Join Date
    Jun 2006
    Location
    Leatherhead
    Posts
    697
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    To add to the collection, here's a random thing you can do in neutrino.cpp. Its nothing much but just that added touch that gives you the satisfaction of actually seeing your code working on-screen:


    Adding Welcome Text on Neutrino Start

    Find the following coding (its around line 3533):
    Code:
    	if (!ucodes_available())
    	{
    		/* display error message */
    		DisplayErrorMessage(g_Locale->getText(LOCALE_UCODES_FAILURE));
    
    		/* show network settings dialog */
    		networkSettings.exec(NULL, "");
    	}
    Directly underneath it, add:

    Code:
    // Display Welcome Banner
    ShowHintUTF(LOCALE_MESSAGEBOX_INFO, "Welcome to Commando v6!");
    Using the above method, you don't have to play around with the locals.h and locals_intern.h Hidden Content
    Compile the file and flash the new creation to your box. Upon Neutrino starting, you'll get a brief message on screen saying: "Welcome to XXX". Its best if you already have the uCodes and network set up at this point so it doesnt look too ugly with all the different menu's popping up Hidden Content

  6. #6
    Member
    Join Date
    Jun 2006
    Posts
    14
    Post Thanks
    Chats
    0
    Rep Power
    0

    Re: CVS Edits

    Thanx for the input m8 but you can also add non localized forwarders to menus like this by utilizing CMenuForwarderNonLocalized and alike (theres one for choosing non localized options too (CMenuOptionStringChooser).

    (example below)
    const char* name_of_text = "text_to_show";
    mainMenu.addItem(new CMenuForwarderNonLocalized(name_of_text, true, NULL, this, "name for custom action"));

    (Have A Play Hidden Content )

  7. #7
    Legend for now
    Join Date
    Jun 2006
    Location
    Leatherhead
    Posts
    697
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Hidden Content Originally Posted by biglew5k99
    Thanx for the input m8 but you can also add non localized forwarders to menus like this by utilizing CMenuForwarderNonLocalized and alike (theres one for choosing non localized options too (CMenuOptionStringChooser).
    (example below)
    const char* name_of_text = "text_to_show";
    mainMenu.addItem(new CMenuForwarderNonLocalized(name_of_text, true, NULL, this, "name for custom action"));
    (Have A Play Hidden Content )
    mainMenu.addItem(new CMenuForwarderNonLocalized("Text to Show", true, NULL, this, "action_name"));

    is alot easier Hidden Content Also do you find it easier to create seperate .cpp and .h files for new menu creations and then use the CMenuForwardNonLocalized to connect to it, or do you prefer to write everything within neutrino.cpp? Just curious really as to how other people do it.

  8. #8
    Member
    Join Date
    Jun 2006
    Posts
    14
    Post Thanks
    Chats
    0
    Rep Power
    0

    Re: CVS Edits

    all within the neutrino.cpp, I also take out and add CNeutrinoApp's and Menu Types in the menu.cpp and menu.h. I will eventually start moving on to standalone programs when I'm done playing around but for now it's just a bit of fun on a few odd evenings

  9. #9
    Member
    Join Date
    Jun 2006
    Posts
    14
    Post Thanks
    Chats
    0
    Rep Power
    0

    Re: CVS Edits

    Heres A New Trick That I Know Menu Modders Out There Will Like The CMenuOptionChooser

    declare this at the top of the neutrino.cpp
    int variable_name=0;

    Then Just Before the following "void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu," type in this

    #define MYMENU_OPTION_COUNT 2
    const CMenuOptionChooser::keyval MYMENU_OPTIONS[MYMENU_OPTION_COUNT] = {
    { 0, LOCALE_OPTIONS_OFF },
    { 1, LOCALE_OPTIONS_ON }
    };

    Just before your menu use this
    if(my_condition){
    variable_name= 1;
    }
    else {
    variable_name= 0;
    }

    CMenuOptionChooser *mywidgetname_onoff_mode = ( new CMenuOptionChooser(LOCALE_MYOPTIONCHOOSERTEXT, &variable_name, MYMENU_OPTIONS, MYMENU_OPTION_COUNT, true));
    myMenu->addItem(mywidgetname);

    then add a CMenuforwarder with an action as you were told about doing earlier on in this thread and tell the action to do things based upon the value of the variable such as the example below

    else if(actionKey == "myAction"){
    if(variable_name != 1){
    // kill the file /tmp/mtd3.img
    system("rm /tmp/mtd3.img")
    }
    else{
    // create the file /tmp/mtd3.img
    system("touch /tmp/mtd3.img")
    }
    }

  10. #10
    Legend for now
    Join Date
    Jun 2006
    Location
    Leatherhead
    Posts
    697
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Hidden Content Originally Posted by biglew5k99 Hidden Content
    Heres A New Trick That I Know Menu Modders Out There Will Like The CMenuOptionChooser
    declare this at the top of the neutrino.cpp
    int variable_name=0;
    Then Just Before the following "void CNeutrinoApp::InitMainMenu(CMenuWidget &mainMenu," type in this
    #define MYMENU_OPTION_COUNT 2
    const CMenuOptionChooser::keyval MYMENU_OPTIONS[MYMENU_OPTION_COUNT] = {
    { 0, LOCALE_OPTIONS_OFF },
    { 1, LOCALE_OPTIONS_ON }
    };
    Just before your menu use this
    if(my_condition){
    variable_name= 1;
    }
    else {
    variable_name= 0;
    }
    CMenuOptionChooser *mywidgetname_onoff_mode = ( new CMenuOptionChooser(LOCALE_MYOPTIONCHOOSERTEXT, &variable_name, MYMENU_OPTIONS, MYMENU_OPTION_COUNT, true));
    myMenu->addItem(mywidgetname);
    then add a CMenuforwarder with an action as you were told about doing earlier on in this thread and tell the action to do things based upon the value of the variable such as the example below
    else if(actionKey == "myAction"){
    if(variable_name != 1){
    // kill the file /tmp/mtd3.img
    system("rm /tmp/mtd3.img")
    }
    else{
    // create the file /tmp/mtd3.img
    system("touch /tmp/mtd3.img")
    }
    }

    You've progressed far. Think I like you! Hidden Content

  11. #11
    Legend pt-1's Avatar
    Join Date
    Jun 2006
    Age
    50
    Posts
    823
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Info merely for Image Creators/Modders

    LCars is now in Newmake:

    Hidden Content

    Only jffs2. Targets flash-lcars-jffs2-[1x,2x,all]

    Also you can build now an Image without GUI (Neutrino/Enigma)

    flash-null-jffs2-[1x,2x,all] builts Imageas without GUI

    and Barf from the Tuxbox Board created his own version of cdkinfo:

    you can now use newmake and either

    make cdkVcInfo or make flash-cdkVcInfo

    More Info here: Hidden Content

  12. #12
    Legend pt-1's Avatar
    Join Date
    Jun 2006
    Age
    50
    Posts
    823
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Menustructure has changed in the Misc settings:

    - move misc settings/boot options to a new menu in main settings
    - add option to configure epg save path
    - minor whitespace cleanup

    Source : Hidden Content

  13. #13
    Legend pt-1's Avatar
    Join Date
    Jun 2006
    Age
    50
    Posts
    823
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    New Newmake Commands:

    --enable-lirc lirc will be installed into YADD and Images.

    --enable-cdkVcInfo includes the cdkVcInfo (please pay attention to capital&lower case writing)

    --enable-ide Includes the IDE Drivers but this is still experimental as BARF cannot test this yet ;-)

    Enhanced Features of the LCD Menu now here:

    Hidden Content

  14. #14
    Legend pt-1's Avatar
    Join Date
    Jun 2006
    Age
    50
    Posts
    823
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Virtual Zap is now changed Icon/Colour for channel number

    Hidden Content

  15. #15
    Member cydine's Avatar
    Join Date
    Jul 2006
    Age
    45
    Posts
    60
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Here are the old diffs for uk netid scan / enhanced autoscan.

    For anyone who's interested. Maybe someone would like to make an attempt at updating them for the latest cvs?

  16. #16
    Member scruff1963's Avatar
    Join Date
    May 2006
    Location
    here
    Posts
    399
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Hidden Content Originally Posted by cydine Hidden Content
    Here are the old diffs for uk netid scan / enhanced autoscan.
    For anyone who's interested. Maybe someone would like to make an attempt at updating them for the latest cvs?
    For todays cvs (i hope Hidden Content )
    rename to new_diff

    don't forget to backup your tuxbox-cvs folder 1st in case it all goes pete tong Hidden Content

    also removes the expert menu so it now goes
    software update
    then
    read one partition / write one partition
    no one writes/read whole images anyway.

    it also changes the default language to english.

    copy the new_diff to tuxbox-cvs
    terminal
    cd tuxbox-cvs
    patch -p1 < new_diff

    fingers crossed you should get no errors.
    you need to make clean flash-neutrino-jffs2-all
    Last edited by scruff1963; 28-08-2006 at 10:43 PM. Reason: bad spelling as usual...

  17. #17
    Legend pt-1's Avatar
    Join Date
    Jun 2006
    Age
    50
    Posts
    823
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    I posted as usual over at Tuxboxboard:Hidden Content copy&paste

    THX again to the Donator !

    I also requested Neue Sender,Andere,Alle Kanaele to be localized and Houdini seemed at leats to be interested...

    Let's see what happens

    At least we have now the Infobar with scrolling forward ;-)

    It would be nice to include a Red Button to record TS in the Infobar as I am now used too in my Sly Box.

    Have a nice one guys !

    PT-1

  18. #18
    Member scruff1963's Avatar
    Join Date
    May 2006
    Location
    here
    Posts
    399
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    no problem, can't see them being interested
    english not german (not valid Hidden Content )
    netid (not valid Hidden Content )
    remove expert menu
    but it will be good to see maybe they can give the option to switch on switch off the expert mode and switch on switch off the read/write image as the average user doesn't use them anywhere. I can't think of time when anything other than read/write one partition will be used.

    infobar with scrolling forward any chance of a url Hidden Content

  19. #19
    Legend pt-1's Avatar
    Join Date
    Jun 2006
    Age
    50
    Posts
    823
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Infobar with scrolling forward and different color is in the CVS since days.

    You activate it in the Menu first (like before) and you then press either left or right to get the infobar up and press left or right again and you see the channel number now has a different color.

    You can now just press down and you see the next channel and so on and on..
    Only one line at present and I think the coloured button menu is no longer there when you are in the future...

    No chance to play as box was in bit's all weekend due IDE Interface

  20. #20
    Member cydine's Avatar
    Join Date
    Jul 2006
    Age
    45
    Posts
    60
    Post Thanks
    Chats
    0
    Rep Power
    18

    Re: CVS Edits

    Hidden Content Originally Posted by scruff1963 Hidden Content
    For todays cvs (i hope Hidden Content )
    rename to new_diff
    don't forget to backup your tuxbox-cvs folder 1st in case it all goes pete tong Hidden Content
    also removes the expert menu so it now goes
    software update
    then
    read one partition / write one partition
    no one writes/read whole images anyway.
    Now if only I had enough posts to see the attachment....oh well!

    Here's the diffs for enigma now/next infobar fix and front row epg. Again quite old.

Page 1 of 7 1234567 LastLast

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •