Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kreportconfigurationfilterdlg.cpp
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Line(s) | 196 | } else if (m_tab3) { | |||
---|---|---|---|---|---|
232 | m_currentState.setInvestmentsOnly(m_tab3->findChild<QCheckBox*>("m_checkInvestments")->isChecked()); | 232 | m_currentState.setInvestmentsOnly(m_tab3->findChild<QCheckBox*>("m_checkInvestments")->isChecked()); | ||
233 | m_currentState.setLoansOnly(m_tab3->findChild<QCheckBox*>("m_checkLoans")->isChecked()); | 233 | m_currentState.setLoansOnly(m_tab3->findChild<QCheckBox*>("m_checkLoans")->isChecked()); | ||
234 | 234 | | |||
235 | m_currentState.setDetailLevel(m_tab3->findChild<QCheckBox*>("m_checkHideSplitDetails")->isChecked() ? | 235 | m_currentState.setDetailLevel(m_tab3->findChild<QCheckBox*>("m_checkHideSplitDetails")->isChecked() ? | ||
236 | MyMoneyReport::DetailLevel::None : MyMoneyReport::DetailLevel::All); | 236 | MyMoneyReport::DetailLevel::None : MyMoneyReport::DetailLevel::All); | ||
237 | } | 237 | } | ||
238 | 238 | | |||
239 | if (m_tabChart) { | 239 | if (m_tabChart) { | ||
240 | MyMoneyReport::EChartType ct[5] = { MyMoneyReport::eChartLine, MyMoneyReport::eChartBar, MyMoneyReport::eChartStackedBar, MyMoneyReport::eChartPie, MyMoneyReport::eChartRing }; | 240 | MyMoneyReport::Chart::Type ct[5] = { MyMoneyReport::Chart::Line, MyMoneyReport::Chart::Bar, MyMoneyReport::Chart::StackedBar, MyMoneyReport::Chart::Pie, MyMoneyReport::Chart::Ring }; | ||
241 | m_currentState.setChartType(ct[m_tabChart->findChild<KMyMoneyGeneralCombo*>("m_comboType")->currentIndex()]); | 241 | m_currentState.setChartType(ct[m_tabChart->findChild<KMyMoneyGeneralCombo*>("m_comboType")->currentIndex()]); | ||
242 | 242 | | |||
243 | m_currentState.setChartGridLines(m_tabChart->findChild<QCheckBox*>("m_checkGridLines")->isChecked()); | 243 | m_currentState.setChartGridLines(m_tabChart->findChild<QCheckBox*>("m_checkGridLines")->isChecked()); | ||
244 | m_currentState.setChartDataLabels(m_tabChart->findChild<QCheckBox*>("m_checkValues")->isChecked()); | 244 | m_currentState.setChartDataLabels(m_tabChart->findChild<QCheckBox*>("m_checkValues")->isChecked()); | ||
245 | m_currentState.setChartByDefault(m_tabChart->findChild<QCheckBox*>("m_checkShowChart")->isChecked()); | 245 | m_currentState.setChartByDefault(m_tabChart->findChild<QCheckBox*>("m_checkShowChart")->isChecked()); | ||
246 | m_currentState.setChartLineWidth(m_tabChart->findChild<QSpinBox*>("m_lineWidth")->value()); | 246 | m_currentState.setChartLineWidth(m_tabChart->findChild<QSpinBox*>("m_lineWidth")->value()); | ||
247 | } | 247 | } | ||
248 | 248 | | |||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | 393 | } else if (m_tab3) { | |||
441 | 441 | | |||
442 | m_tab3->findChild<QCheckBox*>("m_checkHideSplitDetails")->setChecked | 442 | m_tab3->findChild<QCheckBox*>("m_checkHideSplitDetails")->setChecked | ||
443 | (m_initialState.detailLevel() == MyMoneyReport::DetailLevel::None); | 443 | (m_initialState.detailLevel() == MyMoneyReport::DetailLevel::None); | ||
444 | } | 444 | } | ||
445 | 445 | | |||
446 | if (m_tabChart) { | 446 | if (m_tabChart) { | ||
447 | KMyMoneyGeneralCombo* combo = m_tabChart->findChild<KMyMoneyGeneralCombo*>("m_comboType"); | 447 | KMyMoneyGeneralCombo* combo = m_tabChart->findChild<KMyMoneyGeneralCombo*>("m_comboType"); | ||
448 | switch (m_initialState.chartType()) { | 448 | switch (m_initialState.chartType()) { | ||
449 | case MyMoneyReport::eChartNone: | 449 | case MyMoneyReport::Chart::None: | ||
450 | combo->setCurrentItem(MyMoneyReport::eChartLine); | 450 | combo->setCurrentItem(MyMoneyReport::Chart::Line); | ||
451 | break; | 451 | break; | ||
452 | case MyMoneyReport::eChartLine: | 452 | case MyMoneyReport::Chart::Line: | ||
453 | case MyMoneyReport::eChartBar: | 453 | case MyMoneyReport::Chart::Bar: | ||
454 | case MyMoneyReport::eChartStackedBar: | 454 | case MyMoneyReport::Chart::StackedBar: | ||
455 | case MyMoneyReport::eChartPie: | 455 | case MyMoneyReport::Chart::Pie: | ||
456 | case MyMoneyReport::eChartRing: | 456 | case MyMoneyReport::Chart::Ring: | ||
457 | combo->setCurrentItem(m_initialState.chartType()); | 457 | combo->setCurrentItem(m_initialState.chartType()); | ||
458 | break; | 458 | break; | ||
459 | case MyMoneyReport::eChartEnd: | 459 | case MyMoneyReport::Chart::End: | ||
460 | throw MYMONEYEXCEPTION("KReportConfigurationFilterDlg::slotReset(): Report has invalid charttype"); | 460 | throw MYMONEYEXCEPTION("KReportConfigurationFilterDlg::slotReset(): Report has invalid charttype"); | ||
461 | } | 461 | } | ||
462 | m_tabChart->findChild<QCheckBox*>("m_checkGridLines")->setChecked(m_initialState.isChartGridLines()); | 462 | m_tabChart->findChild<QCheckBox*>("m_checkGridLines")->setChecked(m_initialState.isChartGridLines()); | ||
463 | m_tabChart->findChild<QCheckBox*>("m_checkValues")->setChecked(m_initialState.isChartDataLabels()); | 463 | m_tabChart->findChild<QCheckBox*>("m_checkValues")->setChecked(m_initialState.isChartDataLabels()); | ||
464 | m_tabChart->findChild<QCheckBox*>("m_checkShowChart")->setChecked(m_initialState.isChartByDefault()); | 464 | m_tabChart->findChild<QCheckBox*>("m_checkShowChart")->setChecked(m_initialState.isChartByDefault()); | ||
465 | m_tabChart->findChild<QSpinBox*>("m_lineWidth")->setValue(m_initialState.chartLineWidth()); | 465 | m_tabChart->findChild<QSpinBox*>("m_lineWidth")->setValue(m_initialState.chartLineWidth()); | ||
466 | } | 466 | } | ||
467 | 467 | | |||
▲ Show 20 Lines • Show All 200 Lines • Show Last 20 Lines |