~ubuntu-branches/ubuntu/warty/koffice/warty

« back to all changes in this revision

Viewing changes to kspread/kspread_dlg_conditional.h

  • Committer: Bazaar Package Importer
  • Author(s): Ben Burton
  • Date: 2004-05-09 11:33:00 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20040509113300-vfrdadqsvjfuhn3b
Tags: 1:1.3.1-1
* New upstream bugfix release.
* Built against newer imagemagick (closes: #246623).
* Made koffice-libs/kformula recommend/depend on latex-xft-fonts, which
  provides mathematical fonts that the formula editor can use.  Also
  patched the kformula part to make these fonts the default.
* Changed kword menu hint from "WordProcessors" to "Word processors"
  (closes: #246209).
* Spellchecker configuration is now fixed (closes: #221256, #227568).

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
#ifndef __kspread_dlg_conditional__
22
22
#define __kspread_dlg_conditional__
23
23
 
24
 
#include <qdialog.h>
25
 
#include <qcombobox.h>
26
 
#include <qlineedit.h>
27
 
#include <kcolorbtn.h>
28
 
#include <qpushbutton.h>
29
 
#include <qfont.h>
30
 
#include <qlabel.h>
31
 
#include "kspread_cell.h"
 
24
#include <kdialogbase.h>
 
25
#include <qwidget.h>
 
26
 
 
27
class QComboBox;
 
28
class KLineEdit;
 
29
 
 
30
class KSpreadCell;
 
31
class KSpreadStyle;
32
32
class KSpreadView;
33
 
class KSpreadTable;
34
 
 
35
 
 
36
 
class KSpreadWidgetconditional : public QWidget
 
33
 
 
34
#include "kspread_condition.h"
 
35
 
 
36
class KSpreadConditionalWidget : public QWidget
37
37
{
38
38
  Q_OBJECT
39
 
public:
40
 
  KSpreadWidgetconditional(QWidget *_parent, const QString &name);
41
 
  double getBackFirstValue();
42
 
  double getBackSecondValue();
43
 
  QFont getFont(){return font;}
44
 
  QColor getColor();
45
 
  Conditional typeOfCondition();
46
 
  void init(KSpreadConditional *tmp);
47
 
public slots:
48
 
  void changeLabelFont();
49
 
  void changeIndex(const QString &text);
50
 
  void refreshPreview();
51
 
  void disabled();
52
 
signals:
53
 
  void fontSelected();
54
 
protected:
55
 
  QComboBox *choose;
56
 
  QLineEdit *edit1;
57
 
  QLineEdit *edit2;
58
 
  KColorButton* color;
59
 
  QPushButton *fontButton;
60
 
  QFont font;
61
 
  KSpreadConditional tmpCond;
62
 
  QLineEdit *preview;
 
39
  
 
40
 public:
 
41
  KSpreadConditionalWidget( QWidget * parent = 0, const char * name = 0, WFlags fl = 0 );
 
42
  ~KSpreadConditionalWidget();
 
43
 
 
44
  QComboBox * m_condition_1;
 
45
  QComboBox * m_style_1;
 
46
  KLineEdit * m_firstValue_1;
 
47
  KLineEdit * m_secondValue_1;
 
48
  
 
49
  QComboBox * m_condition_2;
 
50
  QComboBox * m_style_2;
 
51
  KLineEdit * m_firstValue_2;
 
52
  KLineEdit * m_secondValue_2;
 
53
  
 
54
  QComboBox * m_condition_3;
 
55
  QComboBox * m_style_3;
 
56
  KLineEdit * m_firstValue_3;
 
57
  KLineEdit * m_secondValue_3;
 
58
 
 
59
 public slots:
 
60
  void slotTextChanged1( const QString & );
 
61
  void slotTextChanged2( const QString & );
 
62
  void slotTextChanged3( const QString & );
63
63
};
64
64
 
65
 
class KSpreadconditional : public QDialog
 
65
 
 
66
class KSpreadConditionalDlg : public KDialogBase
66
67
{
67
68
  Q_OBJECT
68
 
public:
69
 
KSpreadconditional(KSpreadView* parent, const char* name,const QRect &_marker );
70
 
void init();
71
 
public slots:
 
69
 public:
 
70
  KSpreadConditionalDlg( KSpreadView * parent, const char * name,
 
71
                         const QRect & marker );
 
72
 
 
73
  void init();
 
74
 
 
75
 public slots:
72
76
  void slotOk();
73
 
  void slotClose();
74
 
 
75
 
protected:
76
 
  KSpreadView* m_pView;
77
 
  QPushButton* m_pOk;
78
 
  QPushButton* m_pClose;
79
 
  QRect  marker;
80
 
  KSpreadWidgetconditional *firstCond;
81
 
  KSpreadWidgetconditional *secondCond;
82
 
  KSpreadWidgetconditional *thirdCond;
83
 
  KSpreadConditional result;
 
77
 
 
78
 protected:
 
79
  KSpreadView *              m_view;
 
80
  KSpreadConditionalWidget * m_dlg;
 
81
  QRect                      m_marker;
 
82
  KSpreadConditional         m_result;
 
83
 
 
84
 private:
 
85
  void init( KSpreadConditional const & tmp, int numCondition );
 
86
  Conditional typeOfCondition( QComboBox const * const cb ) const;
 
87
 
 
88
  bool checkInputData( KLineEdit const * const edit1,
 
89
                       KLineEdit const * const edit2 );
 
90
  bool checkInputData();
 
91
  bool getCondition( KSpreadConditional & newCondition, QComboBox const * const cb,
 
92
                     KLineEdit const * const edit1, KLineEdit const * const edit2,
 
93
                     QComboBox const * const sb, KSpreadStyle * style );
 
94
 
84
95
};
85
96
 
86
 
 
87
 
 
88
97
#endif
 
98