Commit 833c2309 authored by Matthias Messmer's avatar Matthias Messmer

invoking help now

svn path=/trunk/kdeedu/kmplot/; revision=301974
parent 40e1d0a3
......@@ -26,6 +26,7 @@
#include <qcheckbox.h>
// KDE includes
#include <kapplication.h>
#include <kcolorbutton.h>
#include <knuminput.h>
#include <klineedit.h>
......@@ -66,7 +67,7 @@ void KEditFunction::clearWidgets()
min->clear();
max->clear();
kIntNumInputLineWidth->setValue( m_parser->dicke0 );
kColorButtonColor->setColor( m_parser->fktext[ m_parser->getNextIndex() ].farbe0 );
kColorButtonColor->setColor( m_parser->fktext[ m_parser->getNextIndex() ].farbe );
}
/**
......@@ -139,3 +140,8 @@ const QString KEditFunction::functionItem()
{
return kLineEditYFunction->text();
}
void KEditFunction::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
}
......@@ -46,8 +46,9 @@ class KEditFunction : public QEditFunction
XParser* m_parser;
int m_index;
protected:
protected slots:
virtual void accept();
void slotHelp();
};
#endif
......@@ -28,6 +28,7 @@
#include <qwhatsthis.h>
// KDE includes
#include <kapplication.h>
#include <kcolorbutton.h>
#include <knuminput.h>
#include <klineedit.h>
......@@ -69,7 +70,7 @@ void KEditParametric::clearWidgets()
min->clear();
max->clear();
kIntNumInputLineWidth->setValue( m_parser->dicke0 );
kColorButtonColor->setColor( m_parser->fktext[ m_parser->getNextIndex() ].farbe0 );
kColorButtonColor->setColor( m_parser->fktext[ m_parser->getNextIndex() ].farbe );
}
/**
......@@ -205,3 +206,8 @@ const QString KEditParametric::functionItem()
{
return xFunction()+";"+yFunction();
}
void KEditParametric::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
}
......@@ -50,8 +50,9 @@ class KEditParametric : public QEditParametric
XParser* m_parser;
int m_x_index, m_y_index;
protected:
protected slots:
virtual void accept();
void slotHelp();
};
#endif
......@@ -28,6 +28,7 @@
#include <qwhatsthis.h>
// KDE includes
#include <kapplication.h>
#include <kcolorbutton.h>
#include <knuminput.h>
#include <klineedit.h>
......@@ -66,7 +67,7 @@ void KEditPolar::clearWidgets()
min->clear();
max->clear();
kIntNumInputLineWidth->setValue( m_parser->dicke0 );
kColorButtonColor->setColor( m_parser->fktext[ m_parser->getNextIndex() ].farbe0 );
kColorButtonColor->setColor( m_parser->fktext[ m_parser->getNextIndex() ].farbe );
}
/**
......@@ -135,3 +136,8 @@ const QString KEditPolar::functionItem()
{
return "r" + kLineEditYFunction->text();
}
void KEditPolar::slotHelp()
{
kapp->invokeHelp( "", "kmplot" );
}
......@@ -47,8 +47,9 @@ class KEditPolar : public QEditPolar
XParser* m_parser;
int m_index;
protected:
protected slots:
virtual void accept();
void slotHelp();
};
#endif
......@@ -9,7 +9,7 @@
<x>0</x>
<y>0</y>
<width>293</width>
<height>453</height>
<height>455</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -400,6 +400,12 @@ Example: f(x)=x^2</string>
<receiver>max</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>buttonHelp</sender>
<signal>clicked()</signal>
<receiver>QEditFunction</receiver>
<slot>slotHelp()</slot>
</connection>
</connections>
<tabstops>
<tabstop>kLineEditYFunction</tabstop>
......@@ -415,6 +421,9 @@ Example: f(x)=x^2</string>
<tabstop>buttonCancel</tabstop>
<tabstop>buttonHelp</tabstop>
</tabstops>
<slots>
<slot>slotHelp()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
......
......@@ -9,7 +9,7 @@
<x>0</x>
<y>0</y>
<width>293</width>
<height>432</height>
<height>434</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -511,6 +511,12 @@ Example: sin(t)</string>
<receiver>textLabelYF</receiver>
<slot>setText(const QString&amp;)</slot>
</connection>
<connection>
<sender>buttonHelp</sender>
<signal>clicked()</signal>
<receiver>QEditParametric</receiver>
<slot>slotHelp()</slot>
</connection>
</connections>
<tabstops>
<tabstop>kLineEditName</tabstop>
......@@ -526,6 +532,9 @@ Example: sin(t)</string>
<tabstop>buttonCancel</tabstop>
<tabstop>buttonHelp</tabstop>
</tabstops>
<slots>
<slot>slotHelp()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
......
......@@ -9,7 +9,7 @@
<x>0</x>
<y>0</y>
<width>282</width>
<height>397</height>
<height>399</height>
</rect>
</property>
<property name="sizePolicy">
......@@ -377,6 +377,12 @@ Example: loop(angle)=ln(angle)</string>
<receiver>max</receiver>
<slot>setEnabled(bool)</slot>
</connection>
<connection>
<sender>buttonHelp</sender>
<signal>clicked()</signal>
<receiver>QEditPolar</receiver>
<slot>slotHelp()</slot>
</connection>
</connections>
<tabstops>
<tabstop>kLineEditYFunction</tabstop>
......@@ -390,6 +396,9 @@ Example: loop(angle)=ln(angle)</string>
<tabstop>buttonCancel</tabstop>
<tabstop>buttonHelp</tabstop>
</tabstops>
<slots>
<slot>slotHelp()</slot>
</slots>
<layoutdefaults spacing="6" margin="11"/>
<includehints>
<includehint>klineedit.h</includehint>
......
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