#include <testimonyeditor.h>
Public Member Functions | |
| TestimonyEditor (const CharacterMap &chars, const LocationMap &locations, const BufferMap &buffers, const StringVector &testimonyIds) | |
| Constructor.   | |
| void | set_testimony (const Case::Testimony &testimony) | 
| Set a testimony to edit.   | |
| Case::Testimony | get_testimony_data () | 
| Get the current testimony data.   | |
Private Member Functions | |
| void | construct (const CharacterMap &chars, const LocationMap &locations, const BufferMap &buffers) | 
| Build the dialog's UI.   | |
| Case::TestimonyPiece | create_testimony_piece () | 
| Create a default testimony piece.   | |
| void | update () | 
| Update the dialog's widgets based on its current state.  | |
| void | on_format_title_button_clicked () | 
| void | on_prev_button_clicked () | 
| void | on_next_button_clicked () | 
| void | on_append_button_clicked () | 
| void | on_insert_button_clicked () | 
| void | on_delete_button_clicked () | 
| void | on_amend_button_clicked () | 
| void | on_id_entry_changed () | 
| void | on_text_view_populate_menu (Gtk::Menu *menu) | 
| void | on_present_toggled () | 
| void | on_list_button_pressed () | 
Private Attributes | |
| Gtk::Button * | m_FormatTitleButton | 
| Gtk::Button * | m_PrevButton | 
| Gtk::Button * | m_NextButton | 
| Gtk::Button * | m_AppendButton | 
| Gtk::Button * | m_InsertButton | 
| Gtk::Button * | m_DeleteButton | 
| Gtk::Button * | m_AmendButton | 
| Gtk::Button * | m_OKButton | 
| Gtk::Label * | m_IdLabel | 
| Gtk::Label * | m_TitleLabel | 
| Gtk::Label * | m_SpeakerLabel | 
| Gtk::Label * | m_NextBlockLabel | 
| Gtk::Label * | m_FollowLocLabel | 
| Gtk::Label * | m_XExamineBlockLabel | 
| Gtk::Label * | m_PieceLabel | 
| Gtk::Label * | m_PressLabel | 
| Gtk::Entry * | m_IdEntry | 
| Gtk::Entry * | m_TitleEntry | 
| Gtk::Entry * | m_PresentIdEntry | 
| CharComboBox * | m_SpeakerCB | 
| BlockComboBox * | m_PresentTargetCB | 
| BlockComboBox * | m_PressCB | 
| BlockComboBox * | m_NextBlockCB | 
| BlockComboBox * | m_XExamineCB | 
| LocationComboBox * | m_FollowLocCB | 
| Gtk::CheckButton * | m_HiddenCB | 
| Gtk::CheckButton * | m_PresentLabelCB | 
| Gtk::TextView * | m_TextView | 
| Gtk::ScrolledWindow * | m_SWindow | 
| Gtk::Frame * | m_PieceFrame | 
| Case::Testimony | m_Testimony | 
| The current testimony.  | |
| int | m_CurPiece | 
| Current testimony piece.  | |
| StringVector | m_Ids | 
| Record of testimony IDs.  | |
The TestimonyEditor makes use of several widgets to let the user easily manipulate and create character testimonies
| TestimonyEditor::TestimonyEditor | ( | const CharacterMap & | chars, | |
| const LocationMap & | locations, | |||
| const BufferMap & | buffers, | |||
| const StringVector & | testimonyIds | |||
| ) | 
Constructor.
| chars | Map of characters | |
| locations | Map of locations | |
| buffers | Map of text block buffers | |
| testimonyIds | Vector of present testimony IDs | 
| void TestimonyEditor::set_testimony | ( | const Case::Testimony & | testimony | ) | 
Set a testimony to edit.
| testimony | The testimony to edit | 
| Case::Testimony TestimonyEditor::get_testimony_data | ( | ) | 
Get the current testimony data.
| void TestimonyEditor::construct | ( | const CharacterMap & | chars, | |
| const LocationMap & | locations, | |||
| const BufferMap & | buffers | |||
| ) |  [private] | 
        
Build the dialog's UI.
| chars | The map of characters | |
| locations | The map of locations | |
| buffers | The map of text block buffers | 
| Case::TestimonyPiece TestimonyEditor::create_testimony_piece | ( | ) |  [private] | 
        
Create a default testimony piece.
 1.5.3