~ubuntu-branches/ubuntu/saucy/kgrubeditor/saucy

« back to all changes in this revision

Viewing changes to src/entry.h

  • Committer: Bazaar Package Importer
  • Author(s): Steve Stalcup
  • Date: 2008-08-02 08:47:56 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080802084756-4doy9cyfc63kzaic
Tags: 0.7-0ubuntu1
* New upstream release
* bumped standards version to 3.8.0 (no change)
* Updated debian/cdbs for intrepid paths

Show diffs side-by-side

added added

removed removed

Lines of Context:
26
26
 
27
27
//KDE
28
28
#include <kassistantdialog.h>
 
29
class KMenu;
29
30
 
30
31
//Ui
31
32
#include "ui_entry_assistant_intro.h"
54
55
Q_OBJECT
55
56
public:
56
57
        /**
57
 
        * Default constructor.
 
58
        * Sets up the GUI and shows the entry.
58
59
        *
59
 
        * @param entry The entry to edit. If empty, the assistant works in Add Mode.
60
 
        * @param index When in edit mode, this int indicates the position that the entry has in the QVector of Entries.
 
60
        * @param entry The entry to create/edit.
 
61
        * @param devices A list of the devices detected.
61
62
        * @param parent QWidget parent. Self explanatory.
62
63
        */
63
 
        EntryAssistant( GRUB::ConfigFile::Entry *entry, QWidget *parent = 0 );
 
64
        EntryAssistant( GRUB::ConfigFile::Entry *entry, const QVector<GRUB::Misc::Device> &devices, QWidget *parent = 0 );
 
65
        /**
 
66
        * Desctructor.
 
67
        */
 
68
        ~EntryAssistant();
64
69
private:
65
70
        /**
 
71
        * Connects all signals to their slots.
 
72
        */
 
73
        void setupConnections();
 
74
        /**
66
75
        * Shows the GRUB maps of the entry that is edited.
67
76
        */
68
77
        void showMaps();
75
84
        * Checks whether klineedit_title is empty
76
85
        * and if not, it allows the user to procede.
77
86
        */
78
 
        void setTitlePageValid();
 
87
        void setTitlePageValid( const QString &text );
79
88
        /**
80
89
        * A suggestion was chosen from the drop-down list
81
90
        * of the kpushbutton_suggestions.
182
191
        Ui::entry_assistant_step10 ui_step10;
183
192
        Ui::entry_assistant_summary ui_summary;
184
193
 
185
 
        QMenu *menu_rootSuggestions;
186
 
        QMenu *menu_kernelSuggestions;
 
194
        KMenu *menu_rootSuggestions;
 
195
        KMenu *menu_kernelSuggestions;
187
196
        QAction *action_rootDevice;
188
197
        QAction *action_rootUuid;
189
198
        QAction *action_ro;
193
202
        KPageWidgetItem *titlePage;
194
203
        KPageWidgetItem *summaryPage;
195
204
 
 
205
        GRUB::ConfigFile::Entry *tmp_entry;
196
206
        GRUB::ConfigFile::Entry *m_entry;
197
 
        GRUB::ConfigFile::Entry tmp_entry;
 
207
        const QVector<GRUB::Misc::Device> *m_devices;
198
208
};
199
209
 
200
210
#endif