diff --git a/Makefile.am b/Makefile.am
index e34b72df2..a66a8244f 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -19,7 +19,8 @@ libkpdfpart_la_SOURCES = dcop.skel error.cpp part.cpp
libkpdfpart_la_LDFLAGS = -module $(KDE_PLUGIN) $(all_libraries)
libkpdfpart_la_LIBADD = xpdf/xpdf/libxpdf.la conf/libkpdfconf.la core/libkpdfcore.la \
ui/libkpdfui.la ui/painter_agg2/libagg2.la $(LIB_KPARTS) \
- $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_KUTILS) -lm
+ $(LIB_KFILE) $(LIB_KDEPRINT) $(LIB_KUTILS) $(LIB_KNEWSTUFF) \
+ $(LIB_KHTML) -lm
partdesktopdir = $(kde_servicesdir)
partdesktop_DATA = kpdf_part.desktop
diff --git a/part.cpp b/part.cpp
index daa9f61ce..949b83d29 100644
--- a/part.cpp
+++ b/part.cpp
@@ -61,6 +61,7 @@
#include "ui/thumbnaillist.h"
#include "ui/side_reviews.h"
#include "ui/minibar.h"
+#include "ui/newstuff.h"
#include "ui/propertiesdialog.h"
#include "ui/presentationwidget.h"
#include "conf/preferencesdialog.h"
@@ -232,12 +233,15 @@ Part::Part(QWidget *parentWidget, const char *widgetName,
m_printPreview = KStdAction::printPreview( this, SLOT( slotPrintPreview() ), ac );
m_printPreview->setEnabled( false );
- m_showLeftPanel = new KToggleAction( i18n( "Show &left panel"), "show_side_panel", 0, this, SLOT( slotShowLeftPanel() ), ac, "show_leftpanel" );
+ m_showLeftPanel = new KToggleAction( i18n( "Show &left panel"), "show_side_panel", 0, this, SLOT( slotShowLeftPanel() ), ac, "show_leftpanel" );
m_showLeftPanel->setShortcut( "CTRL+L" );
m_showLeftPanel->setCheckedState( i18n("Hide &left panel") );
m_showLeftPanel->setChecked( Settings::showLeftPanel() );
slotShowLeftPanel();
+ KAction * ghns = new KAction(i18n("&Get new stuff"), "knewstuff", 0, this, SLOT(slotGetNewStuff()), ac, "get_new_stuff");
+ ghns->setShortcut( "G" ); // TEMP, REMOVE ME!
+
m_showProperties = new KAction(i18n("&Properties"), "info", 0, this, SLOT(slotShowProperties()), ac, "properties");
m_showProperties->setEnabled( false );
@@ -565,6 +569,14 @@ void Part::slotSaveFileAs()
}
}
+void Part::slotGetNewStuff()
+{
+ // show the modal dialog over pageview and execute it
+ NewStuffDialog * dialog = new NewStuffDialog( m_pageView );
+ dialog->exec();
+ delete dialog;
+}
+
void Part::slotPreferences()
{
// an instance the dialog could be already created and could be cached,
diff --git a/part.h b/part.h
index da4adfa59..85b8ea9f8 100644
--- a/part.h
+++ b/part.h
@@ -96,6 +96,7 @@ protected slots:
void slotFind();
void slotFindNext();
void slotSaveFileAs();
+ void slotGetNewStuff();
void slotPreferences();
void slotNewConfig();
void slotPrintPreview();
diff --git a/part.rc b/part.rc
index 2db92ac0f..95733bbfa 100644
--- a/part.rc
+++ b/part.rc
@@ -6,6 +6,8 @@
+
+