kspread_dlg_formula.h
00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027 #ifndef __kspread_dlg_formula__
00028 #define __kspread_dlg_formula__
00029
00030 #include <qframe.h>
00031 #include <kdialogbase.h>
00032
00033 #include <kcompletion.h>
00034
00035 class QTextBrowser;
00036 class QTabWidget;
00037
00038 class KSpreadView;
00039 class KSpreadSheet;
00040 class KSpreadCell;
00041 class KSpreadFunctionDescription;
00042 class QLineEdit;
00043 class QLabel;
00044 class QListBox;
00045 class QComboBox;
00046 class QPushButton;
00047 class KLineEdit;
00048
00049 class KSpreadDlgFormula : public KDialogBase
00050 {
00051 Q_OBJECT
00052 public:
00053 KSpreadDlgFormula( KSpreadView* parent, const char* name,const QString& formulaName=0);
00054 ~KSpreadDlgFormula();
00055 private:
00060 QString createParameter( const QString& _text, int param );
00065 QString createFormula();
00066
00067 private slots:
00071 void slotOk();
00075 void slotClose();
00080 void slotSelected( const QString& function );
00086 void slotShowFunction( const QString& function );
00092 void slotDoubleClicked( QListBoxItem* item );
00096 void slotActivated(const QString& category );
00100 void slotChangeText(const QString& text );
00105 void slotSelectionChanged( KSpreadSheet* _sheet, const QRect& _selection );
00110 void slotSelectButton();
00114 void slotSearchText(const QString& text );
00118 void slotPressReturn();
00119
00120 public:
00124 bool eventFilter( QObject* obj, QEvent* ev );
00125 protected:
00126 virtual void closeEvent ( QCloseEvent * );
00127 private:
00128 KSpreadView* m_pView;
00129
00130 QTabWidget* m_tabwidget;
00131 QTextBrowser* m_browser;
00132 QWidget* m_input;
00133
00134 QPushButton *selectFunction;
00135 QComboBox *typeFunction;
00136 QListBox *functions;
00137 QLineEdit *result;
00138
00139 KLineEdit *searchFunct;
00140 KCompletion listFunct;
00141
00142 QLabel* label1;
00143 QLabel* label2;
00144 QLabel* label3;
00145 QLabel* label4;
00146 QLabel* label5;
00147 QLineEdit *firstElement;
00148 QLineEdit *secondElement;
00149 QLineEdit *thirdElement;
00150 QLineEdit *fourElement;
00151 QLineEdit *fiveElement;
00157 QLineEdit* m_focus;
00158
00159 int m_column;
00160 int m_row;
00161 QString m_oldText;
00162
00163 QString m_funcName;
00164 QString m_sheetName;
00165
00166 QString m_rightText;
00167 QString m_leftText;
00171 bool refresh_result;
00172
00173 KSpreadFunctionDescription* m_desc;
00174 };
00175
00176 #endif
This file is part of the documentation for kspread Library Version 1.4.2.