Commit 7b8c870b authored by Laurent Montel's avatar Laurent Montel 😁

Launch my script

svn path=/trunk/KDE/kdeedu/kmplot/; revision=466888
parent 9636e2ff
......@@ -50,6 +50,7 @@
#include "xparser.h"
#include <kdebug.h>
#include <ktoolinvocation.h>
FktDlg::FktDlg( QWidget* parent, View *view ) : FktDlgData( parent, "editPlots" ), m_view(view)
{
......@@ -299,7 +300,7 @@ void FktDlg::getPlots()
void FktDlg::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
KToolInvocation::invokeHelp( "", "kmplot" );
}
bool FktDlg::isChanged()
......
......@@ -83,7 +83,7 @@ MainDlg::MainDlg(QWidget *parentWidget, const char *, QObject *parent, const cha
}
fdlg = 0;
coordsDialog = 0;
m_popupmenu = new KPopupMenu(parentWidget);
m_popupmenu = new KMenu(parentWidget);
view = new View( m_readonly, m_modified, m_popupmenu, parentWidget );
connect( view, SIGNAL( setStatusBarText(const QString &)), this, SLOT( setReadOnlyStatusBarText(const QString &) ) );
setWidget( view );
......@@ -460,7 +460,7 @@ void MainDlg::editConstants()
void MainDlg::slotNames()
{
kapp->invokeHelp( "func-predefined", "kmplot" );
KToolInvocation::invokeHelp( "func-predefined", "kmplot" );
}
void MainDlg::newFunction()
......@@ -767,6 +767,7 @@ void MainDlg::optionsConfigureToolbars()
// notable exception of the KAboutData data
#include <kaboutdata.h>
#include <klocale.h>
#include <ktoolinvocation.h>
KInstance* KmPlotPartFactory::s_instance = 0L;
KAboutData* KmPlotPartFactory::s_about = 0L;
......
......@@ -34,7 +34,7 @@
// KDE includes
#include <kaction.h>
#include <kfiledialog.h>
#include <kpopupmenu.h>
#include <kmenu.h>
#include <kstandarddirs.h>
#include <kparts/browserextension.h>
#include <kparts/part.h>
......@@ -178,7 +178,7 @@ private:
/// A dialog used by many tools-menu-items
KMinMax *minmaxdlg;
/// the popup menu shown when cling with the right mouse button on a graph in the graph widget
KPopupMenu *m_popupmenu;
KMenu *m_popupmenu;
/// Loads and saves the user's file.
KmPlotIO *kmplotio;
/// Set to true if the application is readonly
......
......@@ -48,7 +48,7 @@
#include <kiconloader.h>
#include <klocale.h>
#include <kmessagebox.h>
#include <kpopupmenu.h>
#include <kmenu.h>
#include <kprogress.h>
// local includes
......@@ -65,7 +65,7 @@ double View::xmin = 0;
double View::xmax = 0;
View::View(bool const r, bool &mo, KPopupMenu *p, QWidget* parent, const char* name ) : DCOPObject("View"), QWidget( parent, name , Qt::WStaticContents ), buffer( width(), height() ), m_popupmenu(p), m_modified(mo), m_readonly(r), m_dcop_client(KApplication::kApplication()->dcopClient())
View::View(bool const r, bool &mo, KMenu *p, QWidget* parent, const char* name ) : DCOPObject("View"), QWidget( parent, name , Qt::WStaticContents ), buffer( width(), height() ), m_popupmenu(p), m_modified(mo), m_readonly(r), m_dcop_client(KApplication::kApplication()->dcopClient())
{
m_parser = new XParser(mo);
init();
......
......@@ -40,7 +40,7 @@
#include <dcopclient.h>
#include <kactionclasses.h>
#include <kdebug.h>
#include <kpopupmenu.h>
#include <kmenu.h>
#include <kprinter.h>
#include <kprogress.h>
#include <kpushbutton.h>
......@@ -66,7 +66,7 @@ class View : public QWidget, virtual public ViewIface
Q_OBJECT
public:
/// Contructor sets up the parser, too.
View(bool, bool &, KPopupMenu *, QWidget* parent=NULL, const char* name=NULL );
View(bool, bool &, KMenu *, QWidget* parent=NULL, const char* name=NULL );
void setMinMaxDlg(KMinMax *);
virtual ~View();
......@@ -245,7 +245,7 @@ private:
///buffer the current window so all functions don't need to be re-drawed
QPixmap buffer;
/// the popup menu
KPopupMenu *m_popupmenu;
KMenu *m_popupmenu;
/// is set to true if an integral is calculated
bool isDrawing;
///status of the popup menu
......
......@@ -46,6 +46,7 @@
#include <kpushbutton.h>
#include <kdebug.h>
#include <ktoolinvocation.h>
// local includes
#include "editfunction.h"
......@@ -386,7 +387,7 @@ Ufkt * EditFunction::functionItem()
void EditFunction::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
KToolInvocation::invokeHelp( "", "kmplot" );
}
bool EditFunction::functionHas2Arguments()
......
......@@ -34,6 +34,7 @@
#include <knuminput.h>
#include <kdebug.h>
#include <ktoolinvocation.h>
// local includes
#include "keditparametric.h"
......@@ -326,7 +327,7 @@ Ufkt * KEditParametric::functionItem()
void KEditParametric::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
KToolInvocation::invokeHelp( "", "kmplot" );
}
void KEditParametric::customMinRange_toggled(bool status)
{
......
......@@ -35,6 +35,7 @@
#include <kdebug.h>
#include <ktoolinvocation.h>
// local includes
#include "keditpolar.h"
......@@ -230,7 +231,7 @@ Ufkt *KEditPolar::functionItem()
void KEditPolar::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
KToolInvocation::invokeHelp( "", "kmplot" );
}
void KEditPolar::customMinRange_toggled(bool status)
......
......@@ -63,7 +63,7 @@ KSliderWindow::KSliderWindow(QWidget* parent, int num ) :
slider->installEventFilter(this);
installEventFilter(this);
m_popupmenu = new KPopupMenu(this);
m_popupmenu = new KMenu(this);
KAction *mnuMinValue = new KAction(i18n("&Change Minimum Value") ,0,this, SLOT( mnuMinValue_clicked() ),0);
mnuMinValue->plug(m_popupmenu);
KAction *mnuMaxValue = new KAction(i18n("&Change Maximum Value") ,0,this, SLOT( mnuMaxValue_clicked() ),0 );
......
......@@ -26,7 +26,7 @@
#ifndef KSLIDERWINDOW_H
#define KSLIDERWINDOW_H
#include <kpopupmenu.h>
#include <kmenu.h>
#include "sliderwindow.h"
//Added by qt3to4:
......@@ -54,7 +54,7 @@ class KSliderWindow : public SliderWindow
private:
bool eventFilter( QObject *obj, QEvent *ev );
void closeEvent( QCloseEvent * );
KPopupMenu *m_popupmenu;
KMenu *m_popupmenu;
int m_num;
};
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment