2006-12-19 Inge Wallin Fix bug 138148: Compile error on Solaris 8 - kchart/kdchart/KDChartAxesPainter.cpp uses trunc, which is not available * kdchart/KDChartAxesPainter.cpp: trunc(): Define it, since some OSes, like Solaris, doesn't have it. We could make a complicated workaround, but this is the simplest solution. 2006-11-07 Inge Wallin Start on bug 134194: Impossible to change the data range. Step 1: Actually set and read the data area. * kchart_params.h: store the data area in the params. * kchartDataConfigPage.cpp (init): Set dataArea lineEdit. (defaults): clear it (apply): set dataArea from the lineEdit * kchartWizardSelectDataFormatPage.cpp (constructor): set dataArea lineEdit (apply): set dataArea from the lineEdit 2006-11-06 Inge Wallin Fix bug 128758: misinterpretation of the checkbox "first row as label" * kchart_part.cpp (createLabelsAndLegend): Pass parameters as references. 2006-10-29 Inge Wallin * Imported KDChart 1.1.4. 2006-10-10 Inge Wallin * kchart_params.cpp (saveOasisAxis): Add saving of axis titles. 2006-10-06 ---- Version 1.6.0 tagged ---- 2006-10-03 Inge Wallin * kchart_params.cpp (loadOasisPlotarea): Fix bug. Pie charts use only the y axis, not only the x axis. 2006-09-28 Inge Wallin * kchart_params.cpp (loadOasisPlotarea): Add support for chart:series-source (row or column): 2006-08-11 Inge Wallin Only show checkboxes in config dialog if applicable. * kchart_params.h (KChartParams::part): new method * kchartDataConfigPage.cpp: Only show the checkboxes "First row/col as headers" if we have external data. 2006-08-06 Inge Wallin Disable "First row/col as label in the data editor. * kchartDataEditor.cpp (kchartDataEditor): Disable checkboxes 2006-08-04 Inge Wallin Let the Data Editor use icons for it's buttons. * kchartDataEditor.cpp (kchartDataEditor): Make the insert / delete row / col buttons show an icon instead of text. * kchartDataEditor.cpp (addDocs): Add ToolTips to the buttons. 2006-07-18 Inge Wallin Clean up the data editor and fix bug 129553: kchart: crash / heavy load with Row=0 in KChart Data Editor * kchartDataEditor.{h,cc} (currentChanged): New method (m_insertRowButton, m_removeRowButton, m_insertRowButton, m_removeRowButton): New members * kchartDataEditor.cpp (removeCurrentRow, removeCurrentCol): Don't allow to remove a row or column if it's the first column or if there are only 2 of them. Some small cleaning. 2006-07-17 Inge Wallin Add "first row/col as legend" checkboxes to data editor. * kchartDataEditor.cpp (kchartDataEditor): Enable existing code * kchartDataEditor.cpp (setData): Enable existing code * kchartDataEditor.cpp (getData): Enable existing code Simplify paintContent(): * kchart_part.{h,cc} (createLabelsAndLegend): New function (paintContent): call createLabelsAndLegend ================================================================ KChart 1.5 released 2005-09-15 Inge Wallin Fix bug 108770: [PATCH] kchart should have a format menu * kchart.rc (Format): New menu (KChartTypes toolbar): place to the left * kchart_view.cpp (KChartView::KChartView): change strings for some actions. 2005-08-08 Inge Wallin Code cleaning. * kchartWizard.{h,cc}: cleaning 2005-07-28 Inge Wallin Fix bug 108461: Bug in generation of HiLo charts * kchart_part.cpp (paintContent): Add code to handle HiLo chart separately. General code cleaning. 2005-07-23 Inge Wallin Fix an old FIXME: Get rid of KChartPart::m_bLoading; * kchart_part.{h,cc} (m_bLoading): removed (isLoading): removed Some code cleaning (improved comments). 2005-07-?? David Faure Fix bug 10xxxx: * ?? 2005-07-03 David Faure First steps for OASIS loading of charts. Loads chart type, row and columns labels, and the data. * kchart_part.{h,cc} (loadOasisData): New method (loadOasis): New method * kchart_params.{h,cc} (loadOasis): New method Code cleaning. * kchartWizardSelectChartTypePage.{h,cc} (KChartButton): take const QPixmap& instead of QPixmap*. ================================================================ KChart 1.4 released 2005-05-10 Inge Wallin More work on bug 105356: * kdchart/KDChartParams.h (lineColor): return _lineColor again. * kdchart/KDChartParams_io.h (saveXML): Only save the line color if it is non-null. * kchart_part.cpp (setAxisDefaults): Always set lineColor to null. This compensates for the (now fixed) bug in saving when reading back old charts. 2005-05-09 Fredrik Edemar Fix bug 105356: Lines in a line chart are all black * kdchart/KDChartParams.h (lineColor()): always return an invalid QColor object in order for KDChartLinesPainter to use the current dataset color instead. 2005-05-06 Inge Wallin Fix bug 99995: KChart should be able to import CSV data * kchart_part.{h,cc} (doSetData): new method broken out of setData() (setData): Call doSetData kchart_view.cpp (importData): Get data from the dialog and call KChartPart::doSetData() Code cleaning * csvimportdialog.{h,cc} (firstRowContainHeaders, firstColContainHeaders, rows, cols, text): Follow the Qt naming convention, and don't prefix the name with get... * misc: Remove #if 0:ed stuff 2005-04-25 Inge Wallin Continue on the CSV import * csvimportdialog.{h,cc} (getFirstRowContainHeaders, getFirstColContainHeaders): new methods Fix bug 101007: Error in labels when reading back saved files. * kchart_part.{h,cc} (setAxisDefaults): New method (misc methods): call setAxisDefaults. 2005-04-17 Fredrik Edemar * KDChartBarPainter.cpp (KDChartBarPainter): Prevent the arrow to be drawn at the bottom of the lowest bar when dealing with negative numbers in a 3D bar chart. If all bars are <= 0 the bars with value 0 will still have an arrow. * kchart_part.cpp (KChartPart), kchart_params.cpp (KChartParams): Make sure the excess arrow is solid by calling setDrawSolidExcessArrows(true) after a chart has been loaded or created. 2005-04-13 Inge Wallin CSV import: Disable irrelevant formats * csvimportdialog.cpp (CSVImportDialog): Disable formats Currency and Date. Disable "Import Data" if inside KSpread * kchart_view.{h,cc} (m_importData): New member (KChartView): Disable the TDEAction if data is unchangeable. 2005-04-10 Inge Wallin Get a file name for "Import Data" and actually read data. (No new strings). * kchart_view.cpp (importData): Open a file dialog, and read data. ---------------------------------------------------------------- Start on import data from Comma Separated Values files (CSV) (Wish 99995) * csvimportdialog.{h,cc}: new files * csvimportdialogui.ui: new file * Makefile.am: Add files above * kchart.rc (File menu): Add Action import_data * kchart_view.cpp (import_data): new TDEAction (importData): new slot 2005-04-10 Inge Wallin Fix the margins on the pie config page. * kchartParameterPieConfigPage.cpp (KChartParameterPieConfigPage): Added a toplevel layout. 2005-04-07 Fredrik Edemar * kchart_part.cpp (KChartPart): Set modified when the chart type is changed. 2005-04-07 Inge Wallin * kchartWizardLabelsLegendPage.cpp (KChartWizardLabelsLegendPage): Reenable titles for X and Y axis. 2005-04-07 Fredrik Edemar * kchart_part.cpp (KChartPart): The decimal symbol and thousends separator is the same as the rest of KDE. * kchart_params.cpp (KChartParams): Revert my last change: use KDChart's default precision instead. * KDChart (KDChartAxesPainter.cpp): The axis label: Use at most 6 digits after the decimal point. ---------------------------------------------------------------- Fix bug 103267: Unreasonable precison in axis values * kchartParameterConfigPage.{h,cc} (KChartParameterConfigPage): Add settings for decimal precision for the left axis. * kchart_params.cpp (KChartParams): Set 2 as default decimal precision. * KDChart: If the totalLen property is >0, the text label should be truncated at the position of totalLen. * KDChart: Fixed an error in the documentation: KDCHART_DATA_VALUE_AUTO_DIGITS-> AXIS_LABELS_AUTO_DIGITS. 2005-04-06 Inge Wallin Enable axis titles again. * kchartParameterConfigPage.cpp (KChartParameterConfigPage): Don't disable xtitle and ytitle. ---------------------------------------------------------------- Fix line specific settings * kchartConfigDialog.{h,cc} (linepage3d): resurrected page (all members except * kchartLine3dConfigPage.cpp (lineMarkers): new method (all 3d stuff): disabled * kchartParameterConfigPage.cpp (lineMarker): moved to the line page. ---------------------------------------------------------------- Fix pie specific settings. * kchartConfigDialog.cpp (constructor): Move all type specific settings immediately after the subtype page. (constructor): disable the piepage. * kchartParameterPieConfigPage.{h,cc} (explode): new member (init, apply): set and use explode. * kchartPieConfigPage (explose): Moved to kchartParameterPieConfigPage. Code cleaning * kchartConfigDialog.cpp (constructor): order initializations logically (all): Fix indentation and other smaller stuff. * kchart_view.cpp: Remove reduntant variable actionExtraCreateTemplate. 2005-04-05 Fredrik Edemar * Use a better layout in KChartParameterPieConfigPage and KChartParameterPolarConfigPage. * Keyboard navigation when editing cells in the data editor. 2005-04-04 Fredrik Edemar * Add the "Create Template From Document" feature to the File menu. * The activate-3D property is now the same for bar charts and pie charts so that it is possible to switch between those modes without loosing the setting (this is what the user expects IMHO). * The height of the 3D effect for pie charts was not always set in the config dialog and this is fixed now. * Bar chart mode: Do not show the flat arrows at the bottom of the lowest chart when dealing with negative numbers. * KChartPart::initNullChart() will now generate an empty chart instead of a chart containing 1 cell with the value 0. * KChartView::setupPrinter will not add the printing config page if it's only a preview. * Not modifying anything in the data editor and pressing OK should not do anything. 2005-04-03 Fredrik Edemar Changes in the data editor: * If the data table only has 1 cell which is empty, the whole chart will be parsed as empty. This makes it possible for the user to clear all data. * Allow the user to set an empty string as row/column label. ---------------------------------------------------------------- * KChartPart::initTestChart() is renamed generateBarChartTemplate(). * Translate two strings in that function. * Added commented code for calling generateBarChartTemplate() when the user chooses the bar char template. The advantage of this is that the row/column labels won't be translated otherwise. This feature will be activated in KOffice 1.5/2.0 as Inge thought it is too late for such changes before KOffice 1.4. 2005-03-30 Fredrik Edemar In KChartColorConfigPage: do not crash when the OK/Apply button is pressed and disable the KColorButton when there isn't any data to config. 2005-03-25 Inge Wallin Fix bug 102414: KChart shows the startup dialog even when embedded into a spreadsheet. * kchart_part.cpp (constructor): Initialize members but don't call initDoc(). (initDoc): don't initialize members, and return immediately if called for an embedded chart. 2005-03-24 Inge Wallin Fix bug 55606: [modified] tag doesn't work correctly. * kchartDataEditor.{h,cc} (m_modified): new member (modified): new method. (tableChanged): new slot (misc): set m_modified if data changed, including headers. * kchart_part.{h,cc} (slotModified): new slot (setData): connect wizard::finished() with slotModified * kchart_view.cpp (edit, apply, wizard): call setModified() in document 2005-03-23 Inge Wallin Implement wish 45358: KChart start up dialog? * kchart_part.cpp (initNullChart): New method (initDoc): Call KoTemplateChooseDia(). * kchart_view.cpp (KChartView): Don't initialize the standard chart. ---------------------------------------------------------------- Start with some simple support for templates. * templates: new directory * templates/Makefile.am: new file * templates/BarChart.chrt: new file, example chart template. ---------------------------------------------------------------- Bug fix. * kchartDataEditor.cpp (setCols): Set width for all new columns. (misc): Code cleaning Code cleaning * kchartDataEditor.{h,cc}: Move some methods, change What's This strings, and add some comments. Documentation. * kchartDataEditor.{h,cc}: Document the reasons for the nice fix of Fredrik below. 2005-03-23 Fredrik Edemar Fix a problem with the spinboxes in the data editor: * kchartDataEditor.{h,cc} (kchartDataSpinBox): new class that inherits QSpinBox. (m_rowsSB, m_colsSB): Use kchartDataSpinBox instead of QSpinBox. 2005-03-18 Inge Wallin Improve layout for 3D bar chart parameters. * kchartParameter3dConfigPage.cpp (KChartParameter3dConfigPage): Improve layout. 2005-03-17 Inge Wallin Remove the 3D Line Parameters page from the config dialog due to general uselessness and uglyness. * kchartConfigDialog.cpp (KChartConfigDialog): Disabled 3D Line page. * kchartLine3dConfigPage.cpp (constructor): Changed layout somewhat, during the experiments. ---------------------------------------------------------------- Fix the uglyness of the font config dialog. * kchartFontConfigPage.cpp (KChartFontConfigPage): Add some stretch in suitable places. ---------------------------------------------------------------- Separate the toolbar for chart types from the actions. * kchart.rc (Actions): Renamed from Chart (Types): New toolbar. 2005-03-15 Fredrik Edemar Changes in the data editor: * Show the column names in the header column and the row names in the header row. Click on a header column/row to rename it. * Do not ask for confirmation when the user wants to remove an empty row or column. Changes in KDChart: * Fixed bug 101290 (KChart changes font for axes when Polar chart is chosen). 2005-03-14 Inge Wallin Remove more unnecessary files * kchartBarConfigPage.{h,cc}: removed * kchartGeometryConfigPage.{h,cc}: removed ---------------------------------------------------------------- Remove unused file: * kchartBarConfigDialog.{h,cc} ---------------------------------------------------------------- Don't include kchartDataEditor.h where is shouldn't be included. * kchartBarConfigDialog.cpp, kchartColorConfigPage.cpp, kchartDataConfigPage.cpp: remove it, and include koChart.h instead 2005-03-13 Inge Wallin Make the page layout dialog better looking. * kchartPageLayout.cpp (constructor): Place settings inside a button box. ---------------------------------------------------------------- Clean out old cruft from the data editor. * kchartDataEditor.{h,cc} (setLegend): removed (getLegend): removed (setXLabel): removed (getXLabel): removed * kchart_part.h (axisLabelText{short,long}): removed (m_longLabels, m_shortLabels): removed * kchart_view.cpp (edit): remove all stuff within #if 0 - #endif ---------------------------------------------------------------- Fix problem with mixed plurals/singulars in chart names. * kchart_view.cpp (KChartView): Rename some actions. The default chart is marked as modified even when it's not. * kchart_part.cpp (KChartPart): Remove call to setModified(). 2005-03-12 Inge Wallin Remove the defaults button from the config dialog. It wasn't working anyway. * kchartConfigDialog.cpp (KChartConfigDialog): Disable the Defaults button. ---------------------------------------------------------------- Grant wish 99391: Should be possible to select linear or logarithmic axes. * kchartParameterConfigPage.h (KChartParameterConfigPage::lin and log): new members * kchartParameterConfigPage.cpp (KChartParameterConfigPage): Add new widgets to the Settings buttonbox (used to be Title) (init): initialize the members from the params. (apply): store the parameters from the values of the widgets ---------------------------------------------------------------- Fix the bad layout of the title buttonbox. * kchartParameterConfigPage.cpp (KChartParameterConfigPage): Change the layout slightly, and add row and col stretch. ---------------------------------------------------------------- Load row and column headers from XML file. * kchart_part.cpp (loadXML): Get the legend and axis label strings from the KDChart parameters and store in the column and row headers. Lots of code cleaning and added comments. ---------------------------------------------------------------- Clean up the data editor and remove old cruft. * kchartDataEditor.{h,cc}: Remove all #if 0:ed code. * Makefile.am (libkchartpart_la_SOURCES): Removed parser.cpp, sheet.cpp, sheetdlg.cpp, table.cpp qttableview.cpp (noinst_HEADERS): Removed parser.h sheet.h sheetdlg.h table.h qttableview.h Files mentioned above: Removed. 2005-03-11 Inge Wallin Move Tooltips and Whatsthis help from the old data editor to the new one. * kchartDataEditor.cpp (addDocs): New method (constructor): Clean up by moving all help generation to addDocs(). ---------------------------------------------------------------- Enable "Finish" button for all pages in the wizard. * kchartWizard.cpp (KChartWizard): Enable Finish button for "Subtypes" and "Labels & Legend" pages. 2005-03-10 Inge Wallin Make the table in the data editor shrink when number of rows/cols are decreased in the spinboxes. * kchartDataEditor.cpp (askUserForConfirmation): new static function. (setRows, setCols): Handle shrinking 2005-03-09 Inge Wallin Make the table in the data editor grow when number of rows/cols are increased in the spinboxes. * kchartDataEditor.{h,cc} (setRows, setCols): new methods (constructor): connect spinboxes with new methods. Sanity checks: kchartDataEditor (constructor): make spinboxes have a min value of 1. ---------------------------------------------------------------- Make apply button in the data editor work. * kchartDataEditor.{h,cc} (applyClicked): new signal (slotApply): emit applyClicked with a parameter. * kchart_view.{h,cc} (applyEdit): new slot (edit): connect signal in data editor with slot in view. (applyEdit): new slot. ---------------------------------------------------------------- Cleaning * kchart_part.cpp (paintContent): break out common code out of an if/else construction. ---------------------------------------------------------------- More experiments with visual appearance of the data editor * kchartDataEditor.cpp (setData): Set size of the table widget to (600,300) ---------------------------------------------------------------- Experiment with visual appearance of the new data editor * kchartDataEditor.cpp (setData): Set column widths to 80. ---------------------------------------------------------------- Fix bug introduced by patch to fix bug 14971: Axes label handling in connection with KSpread was broken. * kchart_part.cpp (setData): set m_rowLabels and m_colLabels instead of storing axes labels to the params. 2005-03-08 Inge Wallin Initialize the chart in the document instead of the view. * kchart_part.{h,cc} (initTestChart): Renamed from initRandomData and enhanced to generate row and column headers as well. * kchart_view.{h,cc}: (createTempData): removed ---------------------------------------------------------------- Store labels for rows and columns separately in the document. This fixes bug 14971. * kchart_part.h (m_rowLabels, m_colLabels): new members (rowLabelTexts, colLabelTexts): new methods * kchart_part.cpp (paintContent): Paint using the new labels, both for ordinary and transposed tables. * kchartDataEditor.{h,cc} (setRowLabels): new method (getRowLabels): new method (setColLabels): new method (getColLabels): new method * kchart_view.cpp (edit): call new methods above in data editor, and don't call old methods setLegend, getLegend, setXLabel, etc. 2005-03-07 Inge Wallin Start on bug 14971: kchart data import should flip X & Y data. * kchart_part.{h,cc} (KChartAuxiliary): New struct. (auxdata): new method in KChartPart. (loadAuxiliary): new method in KChartPart. (m_auxiliary): new member in KChartPart. (paintContent): Paint data in rows or columns (labels not yet done). (saveXML): Save auxiliary data (data direction) as well. (loadXML): Call loadAuxiliary(). * kchartConfigDialog.{h,cc} (constructor): Take auxiliary data as parameter and send it to the DataConfigPage. * kchartDataConfigPage.{h,cc} (constructor): Take aux data. (apply): Set data direction in aux data (init): Read data direction from aux data ---------------------------------------------------------------- Cleaning: * kchart_part.cpp (loadOasis): remove parameter names to remove warnings. Reorder chart types to make it more logical order * kchart.rc (Toolbar): Reorder chart types * kchartWizardSelectChartTypePage.cpp (constructor): Reorder chart types into same order. 2005-03-06 Inge Wallin Begin to support the Apply button in the data editor. * kchartDataEditor.cpp (kchartDataEditor): connect applyClicked() to apply() * kchartDataEditor.{h,cc} (apply): new method. 2005-03-05 Inge Wallin Ego stroking: * kchart_aboutdata.h (newKChartAboutData): Add Inge Wallin as an author. Continue with the new data editor. * kchartDataEditor.cpp (setLegend): Always initialize the row headers, not only the first time. Start fixing default handling in the config dialog. * kchartConfigDialog.cpp (defaults): Call datapage->defaults() instead of init. * kchartDataConfigPage.{h,cc} (defaults): New method. Cleaning * kcartDataEditor.{h,cc}: make all members follow the m_ convention. 2005-03-03 Inge Wallin Start on bug 90892 - "Data editor looks bad", and bug 90878 - "KChart: Crash when creating more than 16 rows or columns". * kchartDataEditor.{h,cc}: First prototype of a new data editor. Code cleaning. * kchartFontConfigPage.cpp (class KChartFontListBoxItem): Move from kchartDataConfigPage.h. That used to be an error. 2005-02-25 Inge Wallin Fix bug 99998: KChart: 3d Depth parameter has ludicrous max value * kchartParameter3dConfigPage.cpp (KChartParameter3dConfigPage): Make the depth parameter go from 0 to 2.0 instead of 0 to 40. 2005-02-24 Inge Wallin Fix bug 99390: The background settings in the config dialog don't work. * kchartBackgroundPixmapConfigPage.{h,cc}: Remove the big unused list to the left of the page. Fix bug 99999: KChart: The wizard has settings for non-existent parameters. * kchartWizardLabelsLegendPage.{h,cc}: Remove everything that has to do with second Y axis. * kchartWizardSetupAxesPage.{h,cc}: Remove everything that has to do with second Y axis. Fix part of 99997: KChart: Configuration dialog have settings for things that don't exist. * kchartColorConfigPage.{h,cc]: Remove everything that has to do with the second Y Axis. 2005-02-23 Inge Wallin Fix bug 99715: Chart subtypes are named differently in different places. * kchartSubTypeChartPage.h (KChartBarSubTypeChartPage): Rename layer -> stacked and beside -> normal, and change the strings accordingly. 2005-02-22 Inge Wallin Fix bug 99765: "Chart Subtype" config page is missing for Pie, Ring, Box&Whisker chart types. * kchartConfigDialog.cpp (initSubtypePage): Don't create a configuration page for subtype if the type doesn't have a subtype. Applicable to Pie, Ring and Box&Whiskers. 2005-02-19 Inge Wallin Start of a new page in the config dialog for configuring Data. This is not yet finished. * kchartDataConfigPage.h: New file * kchartDataConfigPage.cpp: New file * kchartConfigDialog.h (KChartConfigDialog::m_datapage): New member * kchartConfigDialog.cpp (KChartConfigDialog): Create the data page 2005-01-07 Raphael Langerhorst Put all KChart classes into the KChart namespace * KDChart classes not changed! * QtTableView class not changed! 2005-01-06 Raphael Langerhorst Improve Data Editor usability: * sheet.cpp: Add tooltips and what's this help. * sheet.cpp: Use a different color for first row and column * sheetdlg.cpp: Add tooltips and what's this help. * sheetdlg.cpp: Change order of widget initialization (better tab order). 2004-11-16 Inge Wallin Cleanup. * kchartDataEditor.{h,cc}: Remove one constructor. * table.h (class SheetTable): Reformatting for nicer looking code. 2004-11-05 Inge Wallin Fix bug 90895: save config is not needed * kchart_view.cpp (KChartView): Remove actions "loadconfig", "saveconfig" and "defaultconfig". * kchart.rc: Remove reference to them in the definition of the Settings menu. Fix bug 90904: edit/configure is confusingly named * kchart.rc: Add a sub menu for editing only one aspect of the chart. * kchart_view.cpp: Change shortcut for Edit Data * kchart_view.cpp: Change string for Configure Chart 2004-10-07 Inge Wallin * Cleanup of the following files. Made the code more readable, fixed indentation, added some comments: - sheet.h - sheet.cpp 2004-10-06 Inge Wallin Fix bug 55603: Pressing Enter in Data Editor doesn't update any changes. * sheetdlg.cpp (SheetDlg): Make the OK button the default. * Cleanup of the following files. Made the code more readable, fixed indentation, added some comments: - parser.h - parser.cpp 2004-10-04 Inge Wallin * Cleaned the following files a little. Made the code more readable, fixed indentation, added (a few) comments: (Man, there are a lot of coding styles in there...) - kchart_part.h - kchart_part.cpp * Cleaned the following files a little. Made the code more readable, fixed indentation, added (a few) comments: - kchart.la.cpp - main.cpp - kchart_dummy.cpp - kchart_aboutdata.h - kchart_factory.h - kchart_factory.cpp - kchart_params.h - kchart_params.cpp - kchart_view.h - kchart_view.cpp