Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/dialogs/kreportconfigurationfilterdlg.cpp
Show First 20 Lines • Show All 91 Lines • ▼ Show 20 Line(s) | 74 | { | |||
---|---|---|---|---|---|
92 | // | 92 | // | ||
93 | // Add new tabs | 93 | // Add new tabs | ||
94 | // | 94 | // | ||
95 | 95 | | |||
96 | m_tab1 = new kMyMoneyReportConfigTab1Decl(m_ui->m_criteriaTab); | 96 | m_tab1 = new kMyMoneyReportConfigTab1Decl(m_ui->m_criteriaTab); | ||
97 | m_tab1->setObjectName("kMyMoneyReportConfigTab1"); | 97 | m_tab1->setObjectName("kMyMoneyReportConfigTab1"); | ||
98 | m_ui->m_criteriaTab->insertTab(0, m_tab1, i18n("Report")); | 98 | m_ui->m_criteriaTab->insertTab(0, m_tab1, i18n("Report")); | ||
99 | 99 | | |||
100 | if (m_initialState.reportType() == MyMoneyReport::ePivotTable) { | 100 | if (m_initialState.reportType() == MyMoneyReport::Report::PivotTable) { | ||
101 | m_tab2 = new kMyMoneyReportConfigTab2Decl(m_ui->m_criteriaTab); | 101 | m_tab2 = new kMyMoneyReportConfigTab2Decl(m_ui->m_criteriaTab); | ||
102 | m_tab2->setObjectName("kMyMoneyReportConfigTab2"); | 102 | m_tab2->setObjectName("kMyMoneyReportConfigTab2"); | ||
103 | m_ui->m_criteriaTab->insertTab(1, m_tab2, i18n("Rows/Columns")); | 103 | m_ui->m_criteriaTab->insertTab(1, m_tab2, i18n("Rows/Columns")); | ||
104 | connect(m_tab2->findChild<KComboBox*>("m_comboRows"), SIGNAL(activated(int)), this, SLOT(slotRowTypeChanged(int))); | 104 | connect(m_tab2->findChild<KComboBox*>("m_comboRows"), SIGNAL(activated(int)), this, SLOT(slotRowTypeChanged(int))); | ||
105 | connect(m_tab2->findChild<KComboBox*>("m_comboColumns"), SIGNAL(activated(int)), this, SLOT(slotColumnTypeChanged(int))); | 105 | connect(m_tab2->findChild<KComboBox*>("m_comboColumns"), SIGNAL(activated(int)), this, SLOT(slotColumnTypeChanged(int))); | ||
106 | connect(m_tab2->findChild<KComboBox*>("m_comboRows"), SIGNAL(activated(int)), this, SLOT(slotUpdateColumnsCombo())); | 106 | connect(m_tab2->findChild<KComboBox*>("m_comboRows"), SIGNAL(activated(int)), this, SLOT(slotUpdateColumnsCombo())); | ||
107 | connect(m_tab2->findChild<KComboBox*>("m_comboColumns"), SIGNAL(activated(int)), this, SLOT(slotUpdateColumnsCombo())); | 107 | connect(m_tab2->findChild<KComboBox*>("m_comboColumns"), SIGNAL(activated(int)), this, SLOT(slotUpdateColumnsCombo())); | ||
108 | //control the state of the includeTransfer check | 108 | //control the state of the includeTransfer check | ||
109 | connect(m_ui->m_categoriesView, SIGNAL(stateChanged()), this, SLOT(slotUpdateCheckTransfers())); | 109 | connect(m_ui->m_categoriesView, SIGNAL(stateChanged()), this, SLOT(slotUpdateCheckTransfers())); | ||
110 | 110 | | |||
111 | m_tabChart = new kMyMoneyReportConfigTabChartDecl(m_ui->m_criteriaTab); | 111 | m_tabChart = new kMyMoneyReportConfigTabChartDecl(m_ui->m_criteriaTab); | ||
112 | m_tabChart->setObjectName("kMyMoneyReportConfigTabChart"); | 112 | m_tabChart->setObjectName("kMyMoneyReportConfigTabChart"); | ||
113 | m_ui->m_criteriaTab->insertTab(2, m_tabChart, i18n("Chart")); | 113 | m_ui->m_criteriaTab->insertTab(2, m_tabChart, i18n("Chart")); | ||
114 | } else if (m_initialState.reportType() == MyMoneyReport::eQueryTable) { | 114 | } else if (m_initialState.reportType() == MyMoneyReport::Report::QueryTable) { | ||
115 | // eInvestmentHoldings is a special-case report, and you cannot configure the | 115 | // eInvestmentHoldings is a special-case report, and you cannot configure the | ||
116 | // rows & columns of that report. | 116 | // rows & columns of that report. | ||
117 | if (m_initialState.rowType() < MyMoneyReport::eAccountByTopAccount) { | 117 | if (m_initialState.rowType() < MyMoneyReport::eAccountByTopAccount) { | ||
118 | m_tab3 = new kMyMoneyReportConfigTab3Decl(m_ui->m_criteriaTab); | 118 | m_tab3 = new kMyMoneyReportConfigTab3Decl(m_ui->m_criteriaTab); | ||
119 | m_tab3->setObjectName("kMyMoneyReportConfigTab3"); | 119 | m_tab3->setObjectName("kMyMoneyReportConfigTab3"); | ||
120 | m_ui->m_criteriaTab->insertTab(1, m_tab3, i18n("Rows/Columns")); | 120 | m_ui->m_criteriaTab->insertTab(1, m_tab3, i18n("Rows/Columns")); | ||
121 | } | 121 | } | ||
122 | } | 122 | } | ||
▲ Show 20 Lines • Show All 545 Lines • Show Last 20 Lines |