#include <kitmodel.hpp>
Public Member Functions | |
GuiState () | |
bool | is_dirty () |
void | set_dirty (bool dirty=true) |
bool | is_deleted () |
void | set_deleted (bool deleted) |
void | set_new_flag (bool flag) |
bool | is_new () |
virtual void | reset () |
resets the state of each flag to it's default. | |
Protected Attributes | |
bool | m_dirty |
bool | m_deleted |
bool | m_new |
Provides additional flags to identityf whether the object is dirty, has been deleted or is new.
Definition at line 38 of file kitmodel.hpp.
GuiState::GuiState | ( | ) | [inline] |
Definition at line 44 of file kitmodel.hpp.
bool GuiState::is_dirty | ( | ) | [inline] |
void GuiState::set_dirty | ( | bool | dirty = true |
) | [inline] |
Definition at line 46 of file kitmodel.hpp.
References m_dirty.
Referenced by KitModel::copy_items(), Service::create_category(), Service::create_item(), Service::delete_category(), Service::delete_item(), KitListGui::on_menu_cut(), ModelItem::set_checked(), and Service::update_item().
bool GuiState::is_deleted | ( | ) | [inline] |
Definition at line 47 of file kitmodel.hpp.
References m_deleted.
Referenced by XmlDao::add_category_to_dom(), XmlDao::add_item_to_dom(), KitModel::get_categories(), ModelCategory::get_items(), ModelCategory::get_model_items(), KitModel::purge(), KitListGui::refresh_category_list(), and KitModel::reset().
void GuiState::set_deleted | ( | bool | deleted | ) | [inline] |
Definition at line 48 of file kitmodel.hpp.
References m_deleted.
Referenced by Service::delete_category(), and Service::delete_item().
void GuiState::set_new_flag | ( | bool | flag | ) | [inline] |
Definition at line 49 of file kitmodel.hpp.
References m_new.
Referenced by Service::create_category(), and Service::create_item().
bool GuiState::is_new | ( | ) | [inline] |
void GuiState::reset | ( | ) | [virtual] |
resets the state of each flag to it's default.
The dirty, deleted and new flags are set to false.
Reimplemented in ModelCategory.
Definition at line 36 of file kitmodel.cpp.
References m_deleted, m_dirty, and m_new.
Referenced by KitModel::reset(), and ModelCategory::reset().
bool GuiState::m_dirty [protected] |
bool GuiState::m_deleted [protected] |
bool GuiState::m_new [protected] |