TestimonyEditor Class Reference

Dialog that provides an interface for editing testimonies. More...

#include <testimonyeditor.h>

List of all members.

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
CharComboBoxm_SpeakerCB
BlockComboBoxm_PresentTargetCB
BlockComboBoxm_PressCB
BlockComboBoxm_NextBlockCB
BlockComboBoxm_XExamineCB
LocationComboBoxm_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.


Detailed Description

Dialog that provides an interface for editing testimonies.

The TestimonyEditor makes use of several widgets to let the user easily manipulate and create character testimonies


Constructor & Destructor Documentation

TestimonyEditor::TestimonyEditor ( const CharacterMap &  chars,
const LocationMap &  locations,
const BufferMap &  buffers,
const StringVector &  testimonyIds 
)

Constructor.

Parameters:
chars Map of characters
locations Map of locations
buffers Map of text block buffers
testimonyIds Vector of present testimony IDs


Member Function Documentation

void TestimonyEditor::set_testimony ( const Case::Testimony testimony  ) 

Set a testimony to edit.

Parameters:
testimony The testimony to edit

Case::Testimony TestimonyEditor::get_testimony_data (  ) 

Get the current testimony data.

Returns:
Updated Testimony struct

void TestimonyEditor::construct ( const CharacterMap &  chars,
const LocationMap &  locations,
const BufferMap &  buffers 
) [private]

Build the dialog's UI.

Parameters:
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.

Returns:
The newly created struct


The documentation for this class was generated from the following files:
Generated on Fri Feb 22 22:34:19 2008 for Phoenix Wright Case Editor API by  doxygen 1.5.3