kformula

formulastring.h

00001 /* This file is part of the KDE project
00002    Copyright (C) 2002 Ulrich Kuettler <ulrich.kuettler@mailbox.tu-dresden.de>
00003 
00004    This library is free software; you can redistribute it and/or
00005    modify it under the terms of the GNU Library General Public
00006    License as published by the Free Software Foundation; either
00007    version 2 of the License, or (at your option) any later version.
00008 
00009    This library is distributed in the hope that it will be useful,
00010    but WITHOUT ANY WARRANTY; without even the implied warranty of
00011    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00012    Library General Public License for more details.
00013 
00014    You should have received a copy of the GNU Library General Public License
00015    along with this library; see the file COPYING.LIB.  If not, write to
00016    the Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
00017  * Boston, MA 02110-1301, USA.
00018 */
00019 
00020 #ifndef FORMULASTRING_H
00021 #define FORMULASTRING_H
00022 
00023 #include <qvariant.h>
00024 #include <qdialog.h>
00025 
00026 class QGridLayout;
00027 class QHBoxLayout;
00028 class QLabel;
00029 class QPushButton;
00030 class QTextEdit;
00031 class QVBoxLayout;
00032 
00033 class KFormulaPartView;
00034 
00035 class FormulaString : public QDialog
00036 {
00037     Q_OBJECT
00038 
00039 public:
00040     FormulaString( KFormulaPartView* parent = 0, const char* name = 0, bool modal = FALSE, WFlags fl = 0 );
00041     ~FormulaString();
00042 
00043     QTextEdit* textWidget;
00044     QPushButton* buttonHelp;
00045     QPushButton* buttonOk;
00046     QPushButton* buttonCancel;
00047     QLabel* position;
00048 
00049 protected slots:
00050 
00051     virtual void accept ();
00052     void helpButtonClicked();
00053 
00054     void cursorPositionChanged ( int para, int pos );
00055 
00056 private:
00057     KFormulaPartView* view;
00058 };
00059 
00060 #endif // FORMULASTRING_H
KDE Home | KDE Accessibility Home | Description of Access Keys