21 #include <kdateedit.h>
23 #include <tdeglobal.h>
24 #include <klineedit.h>
25 #include <tdelocale.h>
26 #include <kpushbutton.h>
27 #include <kurlrequester.h>
28 #include <tqbuttongroup.h>
29 #include <tqcombobox.h>
30 #include <tqradiobutton.h>
32 #include "csvexportdialog.h"
33 #include "reportcriteria.h"
39 : CSVExportDialogBase( parent, name )
42 case ReportCriteria::CSVTotalsExport:
43 grpDateRange->setEnabled(
false );
47 case ReportCriteria::CSVHistoryExport:
48 grpDateRange->setEnabled(
true );
58 TQString d = TDEGlobal::locale()->decimalSymbol();
59 if (
"," == d ) CSVExportDialogBase::radioSemicolon->setChecked(
true);
60 else CSVExportDialogBase::radioComma->setChecked(
true);
64 void CSVExportDialog::enableExportButton()
66 btnExport->setEnabled( !urlExportTo->lineEdit()->text().isEmpty() );
69 void CSVExportDialog::enableTasksToExportQuestion()
77 rc.
url = urlExportTo->url();
78 rc.from = dtFrom->date();
86 TQString t = grpTimeFormat->selected()->name();
87 rc.decimalMinutes = ( t == i18n(
"radioDecimal" ) );
89 TQString d = grpDelimiter->selected()->name();
90 if ( d ==
"radioComma" ) rc.delimiter =
",";
91 else if ( d ==
"radioTab" ) rc.delimiter =
"\t";
92 else if ( d ==
"radioSemicolon" ) rc.delimiter =
";";
93 else if ( d ==
"radioSpace" ) rc.delimiter =
" ";
94 else if ( d ==
"radioOther" ) rc.delimiter = txtOther->text();
97 <<
"*** CSVExportDialog::reportCriteria: Unexpected delimiter choice '"
98 << d <<
"'--defaulting to a tab" << endl;
102 rc.quote = cboQuote->currentText();
107 #include "csvexportdialog.moc"
Stores entries from export dialog.
REPORTTYPE
The different report types.
KURL url
For reports that write to a file, the filename to write to.