23#ifndef __kspread_dlg_conditional__
24#define __kspread_dlg_conditional__
26#include <kdialogbase.h>
29#include "kspread_condition.h"
39class ConditionalWidget : public TQWidget
45 ConditionalWidget( TQWidget * parent = 0, const char * name = 0, WFlags fl = 0 );
48 TQComboBox * m_condition_1;
49 TQComboBox * m_style_1;
50 KLineEdit * m_firstValue_1;
51 KLineEdit * m_secondValue_1;
53 TQComboBox * m_condition_2;
54 TQComboBox * m_style_2;
55 KLineEdit * m_firstValue_2;
56 KLineEdit * m_secondValue_2;
58 TQComboBox * m_condition_3;
59 TQComboBox * m_style_3;
60 KLineEdit * m_firstValue_3;
61 KLineEdit * m_secondValue_3;
64 void slotTextChanged1( const TQString & );
65 void slotTextChanged2( const TQString & );
66 void slotTextChanged3( const TQString & );
70class ConditionalDialog : public KDialogBase
75 ConditionalDialog( View * parent, const char * name,
76 const TQRect & marker );
85 ConditionalWidget * m_dlg;
87 Conditional::Type m_result;
90 void init( Conditional const & tmp, int numCondition );
91 Conditional::Type typeOfCondition( TQComboBox const * const cb ) const;
93 bool checkInputData( KLineEdit const * const edit1,
94 KLineEdit const * const edit2 );
95 bool checkInputData();
96 bool getCondition( Conditional & newCondition, const TQComboBox * cb,
97 const KLineEdit * edit1, const KLineEdit * edit2,
98 const TQComboBox * sb, Style * style );
The Style class represents a cell style.
The View class displays a KSpread document.
|