Changeset View
Changeset View
Standalone View
Standalone View
kmymoney/views/kbudgetview.cpp
Context not available. | |||||
57 | #include "knewbudgetdlg.h" | 57 | #include "knewbudgetdlg.h" | ||
---|---|---|---|---|---|
58 | #include "kmymoney.h" | 58 | #include "kmymoney.h" | ||
59 | #include "models.h" | 59 | #include "models.h" | ||
60 | #include <icons.h> | ||||
61 | | ||||
62 | using namespace Icons; | ||||
60 | 63 | | |||
61 | /** | 64 | /** | ||
62 | * @author Darren Gould | 65 | * @author Darren Gould | ||
Context not available. | |||||
312 | m_budgetList->setRootIsDecorated(false); | 315 | m_budgetList->setRootIsDecorated(false); | ||
313 | m_budgetList->setContextMenuPolicy(Qt::CustomContextMenu); | 316 | m_budgetList->setContextMenuPolicy(Qt::CustomContextMenu); | ||
314 | 317 | | |||
315 | KGuiItem newButtonItem(QString(""), | 318 | KGuiItem newButtonItem(QString(), | ||
316 | KMyMoneyUtils::overlayIcon("view-time-schedule-calculus", "list-add", Qt::TopRightCorner), | 319 | KMyMoneyUtils::overlayIcon(g_Icons[Icon::ViewTimeScheduleCalculus], g_Icons[Icon::ListAdd], Qt::TopRightCorner), | ||
317 | i18n("Creates a new budget"), | 320 | i18n("Creates a new budget"), | ||
318 | i18n("Use this to create a new empty budget.")); | 321 | i18n("Use this to create a new empty budget.")); | ||
319 | KGuiItem::assign(m_newButton, newButtonItem); | 322 | KGuiItem::assign(m_newButton, newButtonItem); | ||
320 | m_newButton->setToolTip(newButtonItem.toolTip()); | 323 | m_newButton->setToolTip(newButtonItem.toolTip()); | ||
321 | 324 | | |||
322 | KGuiItem renameButtonItem(QString(""), | 325 | KGuiItem renameButtonItem(QString(), | ||
323 | KMyMoneyUtils::overlayIcon("view-time-schedule-calculus", "document-edit"), | 326 | KMyMoneyUtils::overlayIcon(g_Icons[Icon::ViewTimeScheduleCalculus], g_Icons[Icon::DocumentEdit]), | ||
324 | i18n("Rename the current selected budget"), | 327 | i18n("Rename the current selected budget"), | ||
325 | i18n("Use this to start renaming the selected budget.")); | 328 | i18n("Use this to start renaming the selected budget.")); | ||
326 | KGuiItem::assign(m_renameButton, renameButtonItem); | 329 | KGuiItem::assign(m_renameButton, renameButtonItem); | ||
327 | m_renameButton->setToolTip(renameButtonItem.toolTip()); | 330 | m_renameButton->setToolTip(renameButtonItem.toolTip()); | ||
328 | 331 | | |||
329 | KGuiItem deleteButtonItem(QString(""), | 332 | KGuiItem deleteButtonItem(QString(), | ||
330 | KMyMoneyUtils::overlayIcon("view-time-schedule-calculus", "edit-delete"), | 333 | KMyMoneyUtils::overlayIcon(g_Icons[Icon::ViewTimeScheduleCalculus], g_Icons[Icon::EditDelete]), | ||
331 | i18n("Delete the current selected budget"), | 334 | i18n("Delete the current selected budget"), | ||
332 | i18n("Use this to delete the selected budget.")); | 335 | i18n("Use this to delete the selected budget.")); | ||
333 | KGuiItem::assign(m_deleteButton, deleteButtonItem); | 336 | KGuiItem::assign(m_deleteButton, deleteButtonItem); | ||
334 | m_deleteButton->setToolTip(deleteButtonItem.toolTip()); | 337 | m_deleteButton->setToolTip(deleteButtonItem.toolTip()); | ||
335 | 338 | | |||
336 | KGuiItem updateButtonItem(QString(""), | 339 | KGuiItem updateButtonItem(QString(), | ||
337 | QIcon::fromTheme("document-save"), | 340 | QIcon::fromTheme(g_Icons[Icon::DocumentSave]), | ||
338 | i18n("Accepts the entered values and stores the budget"), | 341 | i18n("Accepts the entered values and stores the budget"), | ||
339 | i18n("Use this to store the modified data.")); | 342 | i18n("Use this to store the modified data.")); | ||
340 | KGuiItem::assign(m_updateButton, updateButtonItem); | 343 | KGuiItem::assign(m_updateButton, updateButtonItem); | ||
341 | m_updateButton->setToolTip(updateButtonItem.toolTip()); | 344 | m_updateButton->setToolTip(updateButtonItem.toolTip()); | ||
342 | 345 | | |||
343 | KGuiItem resetButtonItem(QString(""), | 346 | KGuiItem resetButtonItem(QString(), | ||
344 | QIcon::fromTheme("edit-undo"), | 347 | QIcon::fromTheme(g_Icons[Icon::EditUndo]), | ||
345 | i18n("Revert budget to last saved state"), | 348 | i18n("Revert budget to last saved state"), | ||
346 | i18n("Use this to discard the modified data.")); | 349 | i18n("Use this to discard the modified data.")); | ||
347 | KGuiItem::assign(m_resetButton, resetButtonItem); | 350 | KGuiItem::assign(m_resetButton, resetButtonItem); | ||
348 | m_resetButton->setToolTip(resetButtonItem.toolTip()); | 351 | m_resetButton->setToolTip(resetButtonItem.toolTip()); | ||
349 | 352 | | |||
350 | KGuiItem collapseGuiItem("", | 353 | KGuiItem collapseGuiItem(QString(), | ||
351 | QIcon::fromTheme(QStringLiteral("zoom-out"), | 354 | QIcon::fromTheme(g_Icons[Icon::ListCollapse]), | ||
352 | QIcon::fromTheme(QStringLiteral("list-remove"))), | | |||
353 | QString(), | 355 | QString(), | ||
354 | QString()); | 356 | QString()); | ||
355 | KGuiItem expandGuiItem("", | 357 | KGuiItem expandGuiItem(QString(), | ||
356 | QIcon::fromTheme(QStringLiteral("zoom-in"), | 358 | QIcon::fromTheme(g_Icons[Icon::ListExpand]), | ||
357 | QIcon::fromTheme(QStringLiteral("list-add"))), | | |||
358 | QString(), | 359 | QString(), | ||
359 | QString()); | 360 | QString()); | ||
360 | KGuiItem::assign(m_collapseButton, collapseGuiItem); | 361 | KGuiItem::assign(m_collapseButton, collapseGuiItem); | ||
Context not available. |