~lunarcloud/+junk/qgrub2editor

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#ifndef GRUB_VARIABLES_H
#define GRUB_VARIABLES_H

#include <QtCore>

class grub_variables
{
public:
    grub_variables();

    //Variables

    // /etc/default/grub
    QString grub_default;// number, "saved", or full entry name
    int grub_hidden_timeout; //how long grub is hidden for
    bool grub_hidden_timeout_quiet;
    int grub_timeout;
    QString grub_distributor; // Automatic kernel name (to change from "Ubuntu" to Otherbuntu)
    QString grub_cmdline_linux; // Linux Alt Options
    QString grub_cmdline_linux_default; // Adds to the end of kernel line (for boot options)
    bool grub_terminal_console; // GRUB_TERMINAL=console or #GRUB_TERMINAL=console
    bool grub_disable_linux_uuid; // GRUB_DISABLE_LINUX_UUID=true or #GRUB_DISABLE_LINUX_UUID=true

    bool grub_disable_linux_recovery; //Commented or not, allows autogen single user mode
    bool grub_disable_os_prober; // DO NOT USE

    bool grub_gfxmode_toggle; //Commented or not
    QString grub_gfxmode; // 640x480, 800x600, 1024x768x32, etc...

    // /etc/grub.d/05_debian_theme

    QString color_normal; // sets normal colors
    QString color_highlighted; //sets hilighted colors

    //Colors allowed
    /*
      black
      blue
      green
      cyan
      red
      magenta
      brown
      light-gray

      foreground only (hilghlight background only):
      dark-gray
      light-blue
      light-green
      light-cyan
      light-magenta
      yellow
      white

      */

    // Karmic package reccomends grub2-splashimages

    bool wallpaper_enable; //yes or no
    bool wallpaper_set; // default or other
    QStringList wallpaper_fromdefault; //which wallpaper (in the default directory)?
    QString wallpaper_fromother; //which wallpaper (in another, nonstandard directory)?
    QString wallpaper_chosen;

    // virtual grub.cfg

    QStringList linux_entries;
    QStringList memtest_entries;
    QStringList osprober_entries;
    QStringList custom_entries;

    int custom_position; // 0=before linux : 1=before memtest : 3=before osprober : 4=after osprober

    bool linux_entries_enabled;
    bool memtest_entries_enabled;
    bool osprober_entries_enabled;

};


#endif // GRUB_VARIABLES_H