36
36
* Shows the contents of the 2 files that KGRUBEditor edits.
37
37
* These are /boot/grub/menu.lst and /boot/grub/device.map.
38
* Moreover, it allows the editing of the files with an
39
41
class View : public KDialog, private Ui::View
44
* Default constructor. Sets the tabs' text to the filenames
45
* and shows their contents in the KTextEdit widgets.
46
* Sets up the GUI, changes the title
47
* of the tabs and shows the contents of the files.
49
* @param menulst The menulst file to show. Usually this is /boot/grub/menu.lst.
50
* @param devicemap The devicemap file to show. Usually this is /boot/grub/device.map.
47
51
* @param parent QWidget parent. Self explanatory.
49
View( QWidget *parent = 0 );
53
View( const KUrl menulst, const KUrl devicemap, QWidget *parent = 0 );
60
* Creates and configures the 'Refresh' and 'Open With'
61
* customised dialog buttons.
63
void setupDialogButtons();
65
* Connects all signals to their slots.
67
void setupConnections();
70
* Refreshes the contents of the 2 files that this dialog handles.
75
* Shows all application which are set to handle plain text files
76
* in the 'Open With' popup menu.
78
void populateOpenMenu();
80
* According to which file is currently viewed (either menulst or
81
* devicemap), opens the file in an external editor in order to
84
void open( QAction *action );