[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    KDE/kdeedu/marble/src/plugins/render
From:       Utku Aydın <utkuaydin34 () gmail ! com>
Date:       2011-01-07 9:00:00
Message-ID: 20110107090000.A3FD3AC8B0 () svn ! kde ! org
[Download RAW message or body]

SVN commit 1212499 by aydin:

Add about dialogs for earthquake and APRS plugins


 M  +25 -0     aprs/AprsPlugin.cpp  
 M  +3 -0      aprs/AprsPlugin.h  
 M  +1 -1      crosshairs/CrosshairsPlugin.cpp  
 M  +30 -1     earthquake/EarthquakePlugin.cpp  
 M  +6 -1      earthquake/EarthquakePlugin.h  


--- trunk/KDE/kdeedu/marble/src/plugins/render/aprs/AprsPlugin.cpp #1212498:1212499
@@ -43,6 +43,7 @@
       m_ttyGatherer( 0 ),
       m_fileGatherer( 0 ),
       m_action( 0 ),
+      m_aboutDialog( 0 ),
       m_configDialog( 0 ),
       ui_configWidget( 0 )
 {
@@ -135,6 +136,30 @@
     return QIcon();
 }
 
+QDialog* AprsPlugin::aboutDialog() const
+{
+    if ( !m_aboutDialog )
+    {
+        // Initializing about dialog
+        m_aboutDialog = new PluginAboutDialog();
+        m_aboutDialog->setName( "APRS Plugin" );
+        m_aboutDialog->setVersion( "0.1" );
+        // FIXME: Can we store this string for all of Marble
+        m_aboutDialog->setAboutText( tr( "<br />(c) 2009, 2010 The Marble Project \
<br /><br /><a href=\"http://edu.kde.org/marble\">http://edu.kde.org/marble</a>" ) ); \
+        QList<Author> authors; +        Author hardaker;
+        
+        hardaker.name = QString::fromUtf8( "Wes Hardaker" );
+        hardaker.task = tr( "Developer" );
+        hardaker.email = "hardaker@users.sourceforge.net";
+        authors.append( hardaker );
+        m_aboutDialog->setAuthors( authors );
+        
+        m_aboutDialog->setLicense( PluginAboutDialog::License_LGPL_V2 );
+    }
+    return m_aboutDialog;
+}
+
 void AprsPlugin::stopGatherers()
 {
 
--- trunk/KDE/kdeedu/marble/src/plugins/render/aprs/AprsPlugin.h #1212498:1212499
@@ -21,6 +21,7 @@
 #include "../lib/HttpDownloadManager.h"
 #include "../lib/CacheStoragePolicy.h"
 #include "GeoDataLatLonAltBox.h"
+#include "PluginAboutDialog.h"
 
 #include "ui_AprsConfigWidget.h"
 
@@ -53,6 +54,7 @@
         QString nameId() const;
         QString description() const;
         QIcon icon () const;
+        QDialog *aboutDialog() const;
 
         void initialize ();
         bool isInitialized () const;
@@ -86,6 +88,7 @@
         QString                        m_filter;
         QAction                       *m_action;
 
+        mutable PluginAboutDialog     *m_aboutDialog;
         mutable QDialog               *m_configDialog;
         mutable Ui::AprsConfigWidget  *ui_configWidget;
         QHash<QString,QVariant>        m_settings;
--- trunk/KDE/kdeedu/marble/src/plugins/render/crosshairs/CrosshairsPlugin.cpp \
#1212498:1212499 @@ -89,7 +89,7 @@
     if ( !m_aboutDialog ) {
         // Initializing about dialog
         m_aboutDialog = new PluginAboutDialog();
-        m_aboutDialog->setName( "Compass Plugin" );
+        m_aboutDialog->setName( "Crosshairs Plugin" );
         m_aboutDialog->setVersion( "0.1" );
         // FIXME: Can we store this string for all of Marble
         m_aboutDialog->setAboutText( tr( "<br />(c) 2009, 2010 The Marble Project \
                <br /><br /><a \
                href=\"http://edu.kde.org/marble\">http://edu.kde.org/marble</a>" ) \
                );
--- trunk/KDE/kdeedu/marble/src/plugins/render/earthquake/EarthquakePlugin.cpp \
#1212498:1212499 @@ -5,7 +5,7 @@
 // find a copy of this license in LICENSE.txt in the top directory of
 // the source code.
 //
-// Copyright 2010 Utku Aydin <utkuaydin34@gmail.com>
+// Copyright 2011 Utku Aydın <utkuaydin34@gmail.com>
 //
 
 #include "EarthquakePlugin.h"
@@ -19,6 +19,7 @@
 
 EarthquakePlugin::EarthquakePlugin()
     : m_isInitialized( false ),
+      m_aboutDialog( 0 ),
       m_configDialog( 0 )
 {
     setNameId( "earthquake" );
@@ -65,6 +66,34 @@
     return QIcon();
 }
 
+QDialog* EarthquakePlugin::aboutDialog() const
+{
+    if ( !m_aboutDialog )
+    {
+        // Initializing about dialog
+        m_aboutDialog = new PluginAboutDialog();
+        m_aboutDialog->setName( "Earthquake Plugin" );
+        m_aboutDialog->setVersion( "0.1" );
+        // FIXME: Can we store this string for all of Marble
+        m_aboutDialog->setAboutText( tr( "<br />(c) 2009, 2010 The Marble Project \
<br /><br /><a href=\"http://edu.kde.org/marble\">http://edu.kde.org/marble</a>" ) ); \
+        QList<Author> authors; +        Author utku, daniel;
+        
+        utku.name = QString::fromUtf8( "Utku Aydın" );
+        utku.task = tr( "Developer" );
+        utku.email = "utkuaydin34@gmail.com";
+        authors.append( utku );
+        
+        daniel.name = QString::fromUtf8( "Daniel Marth" );
+        daniel.task = tr( "Configuration Plugin" );
+        authors.append( daniel );
+        m_aboutDialog->setAuthors( authors );
+        
+        m_aboutDialog->setLicense( PluginAboutDialog::License_LGPL_V2 );
+    }
+    return m_aboutDialog;
+}
+
 QDialog *EarthquakePlugin::configDialog() const
 {
     if ( !m_configDialog ) {
--- trunk/KDE/kdeedu/marble/src/plugins/render/earthquake/EarthquakePlugin.h \
#1212498:1212499 @@ -5,7 +5,7 @@
 // find a copy of this license in LICENSE.txt in the top directory of
 // the source code.
 //
-// Copyright 2010 Utku Aydin <utkuaydin34@gmail.com>
+// Copyright 2011 Utku Aydın <utkuaydin34@gmail.com>
 //
 
 #ifndef EARTHQUAKEPLUGIN_H
@@ -15,6 +15,8 @@
 #include "RenderPlugin.h"
 #include "RenderPluginInterface.h"
 
+#include "PluginAboutDialog.h"
+
 #include <QtCore/QHash>
 #include <QtGui/QIcon>
 #include <QtGui/QAbstractButton>
@@ -50,6 +52,8 @@
 
     QIcon icon() const;
 
+    QDialog *aboutDialog() const;
+
     QDialog *configDialog() const;
 
     /**
@@ -69,6 +73,7 @@
 
 private:
     bool m_isInitialized;
+    mutable PluginAboutDialog *m_aboutDialog;
     mutable Ui::EarthquakeConfigWidget *ui_configWidget;
     mutable QDialog *m_configDialog;
     QHash<QString,QVariant> m_settings;


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic