Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
Education
KmPlot
Commits
8300c4a0
Commit
8300c4a0
authored
Dec 28, 2008
by
Eckhart Wörner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Move EquationEditorWidget into its own files
svn path=/trunk/KDE/kdeedu/kmplot/; revision=902528
parent
5cdd1f9f
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
72 additions
and
13 deletions
+72
-13
kmplot/CMakeLists.txt
kmplot/CMakeLists.txt
+1
-0
kmplot/equationedit.cpp
kmplot/equationedit.cpp
+1
-13
kmplot/equationeditorwidget.cpp
kmplot/equationeditorwidget.cpp
+33
-0
kmplot/equationeditorwidget.h
kmplot/equationeditorwidget.h
+37
-0
No files found.
kmplot/CMakeLists.txt
View file @
8300c4a0
...
...
@@ -14,6 +14,7 @@ set(kmplotpart_PART_SRCS
equationedit.cpp
equationeditwidget.cpp
equationhighlighter.cpp
equationeditorwidget.cpp
function.cpp
view.cpp
maindlg.cpp
...
...
kmplot/equationedit.cpp
View file @
8300c4a0
...
...
@@ -24,7 +24,6 @@
#include "equationedit.h"
#include "maindlg.h"
#include "ui_equationeditor.h"
#include "xparser.h"
#include <kacceleratormanager.h>
...
...
@@ -38,21 +37,13 @@
#include <assert.h>
#include "equationeditorwidget.h"
#include "equationeditwidget.h"
#include "equationhighlighter.h"
CharMap
EquationEdit
::
m_replaceMap
;
class
EquationEditorWidget
:
public
QWidget
,
public
Ui
::
EquationEditor
{
public:
EquationEditorWidget
(
QWidget
*
parent
=
0
)
:
QWidget
(
parent
)
{
setupUi
(
this
);
}
};
//BEGIN class EquationEdit
EquationEdit
::
EquationEdit
(
QWidget
*
parent
)
:
QWidget
(
parent
)
...
...
@@ -387,6 +378,3 @@ void EquationEditor::characterButtonClicked()
m_widget
->
edit
->
insertText
(
tb
->
text
().
remove
(
'&'
)
);
}
//END class EquationEditor
#include "equationedit.moc"
kmplot/equationeditorwidget.cpp
0 → 100644
View file @
8300c4a0
/*
* KmPlot - a math. function plotter for the KDE-Desktop
*
* Copyright (C) 2006 David Saxton <david@bluehaze.org>
*
* This file is part of the KDE Project.
* KmPlot is part of the KDE-EDU Project.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#include "equationeditorwidget.h"
EquationEditorWidget
::
EquationEditorWidget
(
QWidget
*
parent
)
:
QWidget
(
parent
)
{
setupUi
(
this
);
}
#include "equationedit.moc"
kmplot/equationeditorwidget.h
0 → 100644
View file @
8300c4a0
/*
* KmPlot - a math. function plotter for the KDE-Desktop
*
* Copyright (C) 2006 David Saxton <david@bluehaze.org>
*
* This file is part of the KDE Project.
* KmPlot is part of the KDE-EDU Project.
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
*
*/
#ifndef EQUATIONEDITORWIDGET_H
#define EQUATIONEDITORWIDGET_H
#include "ui_equationeditor.h"
class
EquationEditorWidget
:
public
QWidget
,
public
Ui
::
EquationEditor
{
public:
EquationEditorWidget
(
QWidget
*
parent
=
0
);
};
#endif
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment