26#include <kdialogbase.h>
55class CSVDialog : public KDialogBase
62 enum Mode { Clipboard, File, Column };
63 enum Header { TEXT, NUMBER, DATE, CURRENCY };
65 CSVDialog( View * parent, const char * name, TQRect const & rect, Mode mode);
78 TQGridLayout* MyDialogLayout;
79 TQHBoxLayout* Layout1;
80 TQGridLayout* m_delimiterBoxLayout;
81 TQGridLayout* m_formatBoxLayout;
83 TQButtonGroup* m_delimiterBox;
84 TQRadioButton* m_radioComma;
85 TQRadioButton* m_radioSemicolon;
86 TQRadioButton* m_radioTab;
87 TQRadioButton* m_radioSpace;
88 TQRadioButton* m_radioOther;
89 TQLineEdit* m_delimiterEdit;
90 TQButtonGroup* m_formatBox;
91 TQRadioButton* m_radioNumber;
92 TQRadioButton* m_radioText;
93 TQRadioButton* m_radioCurrency;
94 TQRadioButton* m_radioDate;
95 TQComboBox* m_comboLine;
96 TQComboBox* m_comboQuote;
99 TQCheckBox * m_ignoreDuplicates;
103 void setText( int row, int col, const TQString& text);
104 void adjustRows( int iRows);
105 int getHeader( int col);
106 TQString getText( int row, int col);
112 TQString m_delimiter;
114 TQByteArray m_fileArray;
119 void returnPressed();
120 void formatClicked( int id);
121 void delimiterClicked( int id);
122 void lineSelected( const TQString& line);
123 void textquoteSelected( const TQString& mark);
124 void currentCellChanged( int, int col);
125 void textChanged ( const TQString & );
126 void ignoreDuplicatesChanged( int);
The View class displays a KSpread document.
|