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

« back to all changes in this revision

Viewing changes to src/main.cpp

  • 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:
25
25
#include <kapplication.h>
26
26
#include <kaboutdata.h>
27
27
#include <kcmdlineargs.h>
 
28
#include <kurl.h>
28
29
 
29
30
//KGRUBEditor
30
31
#include "kgrubeditor.h"
 
32
#include "settings.h"
31
33
 
32
34
int main( int argc, char **argv )
33
35
{
34
 
        KAboutData about( "kgrubeditor", 0, ki18n( "KGRUBEditor" ), "0.5", ki18n( "A KDE utility, that edits GRUB's configuration files through an inituitive user interface." ), KAboutData::License_GPL, ki18n( "Copyright (C) 2008 Konstantinos Smanis" ), KLocalizedString(), "http://sourceforge.net/projects/kgrubeditor", "kon.smanis@gmail.com" );
35
 
        about.addAuthor( ki18n( "Κonstantinos Smanis" ), ki18n( "Head Developer" ), "kon.smanis@gmail.com" );
 
36
        KAboutData about( "kgrubeditor", 0, ki18n( "KGRUBEditor" ), "0.7", ki18n( "A KDE utility, that edits GRUB's configuration files through an inituitive user interface." ), KAboutData::License_GPL, ki18n( "Copyright (C) 2008 Konstantinos Smanis" ), KLocalizedString(), "http://sourceforge.net/projects/kgrubeditor", "kon.smanis@gmail.com" );
 
37
        about.addAuthor( ki18n( "Κonstantinos Smanis" ), ki18n( "Developer" ), "kon.smanis@gmail.com" );
36
38
        about.addCredit( ki18n( "Andreas Theodosiou" ), ki18n( "Application's Icon Graphics Designer" ), "andreasabu@gmail.com" );
37
39
        about.addCredit( ki18n( "JimTB (nickname)" ), ki18n( "Miscellaneous help with the project" ), "jimaras@gmail.com" );
38
40
        about.addCredit( ki18n( "prts_1 (nickname)" ), ki18n( "Tips concerning usability" ), "prts_1@e-pcmag.gr" );
39
41
        KCmdLineArgs::init( argc, argv, &about );
40
42
 
 
43
        KCmdLineOptions options;
 
44
        options.add( "+[file]", ki18n( "GRUB's configuration file to be opened for this run only." ) );
 
45
        KCmdLineArgs::addCmdLineOptions( options );
 
46
 
41
47
        KApplication app;
 
48
        KCmdLineArgs *args = KCmdLineArgs::parsedArgs();
 
49
        if( args->count() )
 
50
                Settings::setMenulst( args->url( 0 ).url() );
42
51
        KGRUBEditor *main_window = new KGRUBEditor;
43
52
        
44
53
        if ( app.isSessionRestored() )