Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Class Members | File Members

TManageDatabaseDialog Class Reference

The database interface dialog; opening, storing, searching sequences. More...

#include <ManageDatabase.h>

List of all members.

Public Member Functions

 TManageDatabaseDialog (wxWindow *parent, wxString title, int mode=ACTION_MODE_MANAGE, TVector *_v=NULL)
 Constructor.
virtual ~TManageDatabaseDialog ()
 Destructor.
virtual void OnOK (wxCommandEvent &ev)
 "OK button" event handler
virtual void OnCancel (wxCommandEvent &ev)
 "Cancel button" event handler
virtual void OnCharHook (wxKeyEvent &event)
 Key event handler.
virtual void pdOnNew (wxCommandEvent &ev)
 "New sqlite database button" event handler
virtual void pdOnAdd (wxCommandEvent &ev)
 "Add sqlite database button" event handler
virtual void pdOnDel (wxCommandEvent &ev)
 "Delete database button" event handler
virtual void pdOnDBchange (wxCommandEvent &ev)
 "Change database" event handler
virtual void pdOnSetDefault (wxCommandEvent &ev)
 "Set as default database button" event handler
virtual void pmAddSQL (wxCommandEvent &ev)
 "Add MySQL database button" event handler
virtual void pmNewSQL (wxCommandEvent &ev)
 "New MySQL database button" event handler
virtual void pmOnListEvent (wxListEvent &ev, wxListCtrl *source, wxListCtrl *target)
 "Drag/drop" event handler
virtual void pmOnLeftListEvent (wxListEvent &ev)
 "Event in left dropdown list" event handler
virtual void pmOnRightListEvent (wxListEvent &ev)
 "Event in right dropdown list" event handler
virtual void pmOnLeftChoice (wxCommandEvent &ev)
 "Selection in left dropdown list" event handler
virtual void pmOnRightChoice (wxCommandEvent &ev)
 "Selection in right dropdown list" event handler
virtual void pmOnSave (wxCommandEvent &ev)
 "Save button" event handler
virtual void pmOnSelectLeft (wxListEvent &ev)
 "Selection in left list" event handler
virtual void pmOnSelectRight (wxListEvent &ev)
 "Selection in right list" event handler
virtual void pmOnSelect (wxListEvent &ev, wxListCtrl *side)
 Selection in a list - universal "event handler".
virtual void pmOnActivateLeft (wxListEvent &ev)
 "Left list activated" event handler
virtual void pmOnActivateRight (wxListEvent &ev)
 "Right list activated" event handler
virtual void pmOnRightClickLeft (wxListEvent &ev)
 "Context menu for left list" event handler
virtual void pmOnRightClickRight (wxListEvent &ev)
 "Context menu for right list" event handler
virtual void pmOnRightClick (wxListEvent &ev, wxListCtrl *lc, wxChoice *cc)
 "Right click" universal event handler
virtual void pmOnActivate (wxListEvent &ev, wxListCtrl *side)
 activation event handler
virtual void pmOnOpen (wxCommandEvent &ev)
 "Open item" event handler
virtual void pmOnDelete (wxCommandEvent &ev)
 "Delete item" event handler
virtual void pmOnRename (wxCommandEvent &ev)
 "Rename item" event handler
virtual void pmOnFilter (wxCommandEvent &ev)
 "Filter has changed" event handler
virtual void pmOnFilterDNA (wxCommandEvent &ev)
 "Show DNA checkbox" event handler
virtual void pmOnFilterProtein (wxCommandEvent &ev)
 "Show protein checkbox" event handler
virtual void pmOnFilterPrimer (wxCommandEvent &ev)
 "Show primer checkbox" event handler
virtual void pmOnFilterAlignments (wxCommandEvent &ev)
 "Show alignments checkbox" event handler
virtual void pmOnFilterDesc (wxCommandEvent &ev)
 "Search description checkbox" event handler
virtual void pmOnFilterSeq (wxCommandEvent &ev)
 "Search sequence checkbox" event handler
virtual void pmOnTwoPanes (wxCommandEvent &ev)
 "Toggle one/two lists" event handler
virtual bool do_copy (wxString name, wxString sdb, wxString tdb)
 Copy item "name" from source to target database.
virtual bool do_move (wxString name, wxString sdb, wxString tdb)
 Move item "name" from source to target database.
virtual void do_del (wxString name, wxString db)
 Delete item "name" from the database.
virtual void pmOpenFiles (wxArrayString &_names, wxString _db)
 Open the selected files.
virtual bool copyDNA (wxString name, wxString sdb, wxString tdb)
 Copy item "name" from source to target database.
virtual bool moveDNA (wxString name, wxString sdb, wxString tdb)
 Move item "name" from source to target database.
virtual void delDNA (wxString name, wxString db)
 Delete item "name" from the database.
virtual void delProject (wxString name, wxString db)
 Remove a project from the database.
virtual bool do_load (wxString name, wxString db)
 Load an entry from the database.
virtual bool do_load_DNA (wxString name, wxString db)
 Load a sequence from the database.
virtual bool do_load_project (wxString name, wxString db)
 Load a project from the database.
virtual void do_save_DNA ()
 Save a sequence to the database.
virtual void do_save_project ()
 Save a project to the database.
virtual void initDatabases ()
 Initialize internal database list.
virtual void accessDB ()
 Access the database.
virtual void pd_loadList ()
 Loads the database.
virtual void pm_init_lists ()
 Initializes the lists.
virtual void pm_list_items (int x)
 Initializes list items.
virtual bool doesNameExist (wxString name, wxString dbname)
 Does an item "name" exist in that database?
virtual void addDatabase (wxString fn)
 Add a database to the list.
virtual wxString fixQuotes (wxString s)
 Fix quotes for storing in the database.
virtual wxString getFileName (wxString dbname)
 Returns the filename of the database.
virtual wxArrayInt getSelectedListItems (wxListCtrl *l)
 Returns the numbers of the selected items in the given list.
virtual TStoragegetTempDB (wxString filename)
 Returns a pointer to termorarily accessed database.
virtual void initCopynMove ()
 Prepare the open/store/search tab.
virtual void pmGetContext (wxListCtrl *side)
 ???
virtual void updateTwoLists ()
 Update both database lists.

Public Attributes

wxArrayString db_name
wxArrayString db_file
wxNotebook * nb
wxPanel * pDatabases
wxPanel * pCopynMove
wxStaticText * pd_db_name
wxStaticText * pd_db_file
wxListBox * pd_db
wxListCtrl * pm_left
wxListCtrl * pm_right
wxListCtrl * thetarget
wxChoice * pm_dd_l
wxChoice * pm_dd_r
wxChoice * pm_dd_save
wxTextCtrl * pm_name
wxImageList * il
int bo
int th
wxString defdb
wxString context_db
wxArrayString context_names
int actionMode
TVectorv
bool justload

Private Attributes

bool doSave
bool doLoad
bool isProject
wxString filter
wxTextCtrl * filter_txt
wxCheckBox * f_dna
wxCheckBox * f_prot
wxCheckBox * f_primer
wxCheckBox * f_align
wxCheckBox * f_twopanes
wxCheckBox * f_desc
wxCheckBox * f_seq
wxBoxSizer * v0
wxBoxSizer * v2


Detailed Description

The database interface dialog; opening, storing, searching sequences.


Constructor & Destructor Documentation

TManageDatabaseDialog::TManageDatabaseDialog wxWindow *  parent,
wxString  title,
int  mode = ACTION_MODE_MANAGE,
TVector _v = NULL
 

Constructor.

TManageDatabaseDialog::~TManageDatabaseDialog  )  [virtual]
 

Destructor.


Member Function Documentation

void TManageDatabaseDialog::accessDB  )  [virtual]
 

Access the database.

void TManageDatabaseDialog::addDatabase wxString  fn  )  [virtual]
 

Add a database to the list.

bool TManageDatabaseDialog::copyDNA wxString  name,
wxString  sdb,
wxString  tdb
[virtual]
 

Copy item "name" from source to target database.

void TManageDatabaseDialog::delDNA wxString  name,
wxString  db
[virtual]
 

Delete item "name" from the database.

void TManageDatabaseDialog::delProject wxString  name,
wxString  db
[virtual]
 

Remove a project from the database.

bool TManageDatabaseDialog::do_copy wxString  name,
wxString  sdb,
wxString  tdb
[virtual]
 

Copy item "name" from source to target database.

void TManageDatabaseDialog::do_del wxString  name,
wxString  db
[virtual]
 

Delete item "name" from the database.

bool TManageDatabaseDialog::do_load wxString  name,
wxString  db
[virtual]
 

Load an entry from the database.

bool TManageDatabaseDialog::do_load_DNA wxString  name,
wxString  db
[virtual]
 

Load a sequence from the database.

bool TManageDatabaseDialog::do_load_project wxString  name,
wxString  db
[virtual]
 

Load a project from the database.

bool TManageDatabaseDialog::do_move wxString  name,
wxString  sdb,
wxString  tdb
[virtual]
 

Move item "name" from source to target database.

void TManageDatabaseDialog::do_save_DNA  )  [virtual]
 

Save a sequence to the database.

void TManageDatabaseDialog::do_save_project  )  [virtual]
 

Save a project to the database.

bool TManageDatabaseDialog::doesNameExist wxString  name,
wxString  dbname
[virtual]
 

Does an item "name" exist in that database?

wxString TManageDatabaseDialog::fixQuotes wxString  s  )  [virtual]
 

Fix quotes for storing in the database.

wxString TManageDatabaseDialog::getFileName wxString  dbname  )  [virtual]
 

Returns the filename of the database.

wxArrayInt TManageDatabaseDialog::getSelectedListItems wxListCtrl *  l  )  [virtual]
 

Returns the numbers of the selected items in the given list.

TStorage * TManageDatabaseDialog::getTempDB wxString  filename  )  [virtual]
 

Returns a pointer to termorarily accessed database.

void TManageDatabaseDialog::initCopynMove  )  [virtual]
 

Prepare the open/store/search tab.

void TManageDatabaseDialog::initDatabases  )  [virtual]
 

Initialize internal database list.

bool TManageDatabaseDialog::moveDNA wxString  name,
wxString  sdb,
wxString  tdb
[virtual]
 

Move item "name" from source to target database.

void TManageDatabaseDialog::OnCancel wxCommandEvent &  ev  )  [virtual]
 

"Cancel button" event handler

void TManageDatabaseDialog::OnCharHook wxKeyEvent &  event  )  [virtual]
 

Key event handler.

void TManageDatabaseDialog::OnOK wxCommandEvent &  ev  )  [virtual]
 

"OK button" event handler

void TManageDatabaseDialog::pd_loadList  )  [virtual]
 

Loads the database.

void TManageDatabaseDialog::pdOnAdd wxCommandEvent &  ev  )  [virtual]
 

"Add sqlite database button" event handler

void TManageDatabaseDialog::pdOnDBchange wxCommandEvent &  ev  )  [virtual]
 

"Change database" event handler

void TManageDatabaseDialog::pdOnDel wxCommandEvent &  ev  )  [virtual]
 

"Delete database button" event handler

void TManageDatabaseDialog::pdOnNew wxCommandEvent &  ev  )  [virtual]
 

"New sqlite database button" event handler

void TManageDatabaseDialog::pdOnSetDefault wxCommandEvent &  ev  )  [virtual]
 

"Set as default database button" event handler

void TManageDatabaseDialog::pm_init_lists  )  [virtual]
 

Initializes the lists.

void TManageDatabaseDialog::pm_list_items int  x  )  [virtual]
 

Initializes list items.

void TManageDatabaseDialog::pmAddSQL wxCommandEvent &  ev  )  [virtual]
 

"Add MySQL database button" event handler

void TManageDatabaseDialog::pmGetContext wxListCtrl *  side  )  [virtual]
 

???

void TManageDatabaseDialog::pmNewSQL wxCommandEvent &  ev  )  [virtual]
 

"New MySQL database button" event handler

void TManageDatabaseDialog::pmOnActivate wxListEvent &  ev,
wxListCtrl *  side
[virtual]
 

activation event handler

void TManageDatabaseDialog::pmOnActivateLeft wxListEvent &  ev  )  [virtual]
 

"Left list activated" event handler

void TManageDatabaseDialog::pmOnActivateRight wxListEvent &  ev  )  [virtual]
 

"Right list activated" event handler

void TManageDatabaseDialog::pmOnDelete wxCommandEvent &  ev  )  [virtual]
 

"Delete item" event handler

void TManageDatabaseDialog::pmOnFilter wxCommandEvent &  ev  )  [virtual]
 

"Filter has changed" event handler

void TManageDatabaseDialog::pmOnFilterAlignments wxCommandEvent &  ev  )  [virtual]
 

"Show alignments checkbox" event handler

void TManageDatabaseDialog::pmOnFilterDesc wxCommandEvent &  ev  )  [virtual]
 

"Search description checkbox" event handler

void TManageDatabaseDialog::pmOnFilterDNA wxCommandEvent &  ev  )  [virtual]
 

"Show DNA checkbox" event handler

void TManageDatabaseDialog::pmOnFilterPrimer wxCommandEvent &  ev  )  [virtual]
 

"Show primer checkbox" event handler

void TManageDatabaseDialog::pmOnFilterProtein wxCommandEvent &  ev  )  [virtual]
 

"Show protein checkbox" event handler

void TManageDatabaseDialog::pmOnFilterSeq wxCommandEvent &  ev  )  [virtual]
 

"Search sequence checkbox" event handler

void TManageDatabaseDialog::pmOnLeftChoice wxCommandEvent &  ev  )  [virtual]
 

"Selection in left dropdown list" event handler

void TManageDatabaseDialog::pmOnLeftListEvent wxListEvent &  ev  )  [virtual]
 

"Event in left dropdown list" event handler

void TManageDatabaseDialog::pmOnListEvent wxListEvent &  ev,
wxListCtrl *  source,
wxListCtrl *  target
[virtual]
 

"Drag/drop" event handler

void TManageDatabaseDialog::pmOnOpen wxCommandEvent &  ev  )  [virtual]
 

"Open item" event handler

void TManageDatabaseDialog::pmOnRename wxCommandEvent &  ev  )  [virtual]
 

"Rename item" event handler

void TManageDatabaseDialog::pmOnRightChoice wxCommandEvent &  ev  )  [virtual]
 

"Selection in right dropdown list" event handler

void TManageDatabaseDialog::pmOnRightClick wxListEvent &  ev,
wxListCtrl *  lc,
wxChoice *  cc
[virtual]
 

"Right click" universal event handler

void TManageDatabaseDialog::pmOnRightClickLeft wxListEvent &  ev  )  [virtual]
 

"Context menu for left list" event handler

void TManageDatabaseDialog::pmOnRightClickRight wxListEvent &  ev  )  [virtual]
 

"Context menu for right list" event handler

void TManageDatabaseDialog::pmOnRightListEvent wxListEvent &  ev  )  [virtual]
 

"Event in right dropdown list" event handler

void TManageDatabaseDialog::pmOnSave wxCommandEvent &  ev  )  [virtual]
 

"Save button" event handler

void TManageDatabaseDialog::pmOnSelect wxListEvent &  ev,
wxListCtrl *  side
[virtual]
 

Selection in a list - universal "event handler".

void TManageDatabaseDialog::pmOnSelectLeft wxListEvent &  ev  )  [virtual]
 

"Selection in left list" event handler

void TManageDatabaseDialog::pmOnSelectRight wxListEvent &  ev  )  [virtual]
 

"Selection in right list" event handler

void TManageDatabaseDialog::pmOnTwoPanes wxCommandEvent &  ev  )  [virtual]
 

"Toggle one/two lists" event handler

void TManageDatabaseDialog::pmOpenFiles wxArrayString &  _names,
wxString  _db
[virtual]
 

Open the selected files.

void TManageDatabaseDialog::updateTwoLists  )  [virtual]
 

Update both database lists.


Member Data Documentation

int TManageDatabaseDialog::actionMode
 

int TManageDatabaseDialog::bo
 

wxString TManageDatabaseDialog::context_db
 

wxArrayString TManageDatabaseDialog::context_names
 

wxArrayString TManageDatabaseDialog::db_file
 

wxArrayString TManageDatabaseDialog::db_name
 

wxString TManageDatabaseDialog::defdb
 

bool TManageDatabaseDialog::doLoad [private]
 

bool TManageDatabaseDialog::doSave [private]
 

wxCheckBox * TManageDatabaseDialog::f_align [private]
 

wxCheckBox* TManageDatabaseDialog::f_desc [private]
 

wxCheckBox* TManageDatabaseDialog::f_dna [private]
 

wxCheckBox * TManageDatabaseDialog::f_primer [private]
 

wxCheckBox * TManageDatabaseDialog::f_prot [private]
 

wxCheckBox * TManageDatabaseDialog::f_seq [private]
 

wxCheckBox * TManageDatabaseDialog::f_twopanes [private]
 

wxString TManageDatabaseDialog::filter [private]
 

wxTextCtrl* TManageDatabaseDialog::filter_txt [private]
 

wxImageList* TManageDatabaseDialog::il
 

bool TManageDatabaseDialog::isProject [private]
 

bool TManageDatabaseDialog::justload
 

wxNotebook* TManageDatabaseDialog::nb
 

wxPanel * TManageDatabaseDialog::pCopynMove
 

wxListBox* TManageDatabaseDialog::pd_db
 

wxStaticText * TManageDatabaseDialog::pd_db_file
 

wxStaticText* TManageDatabaseDialog::pd_db_name
 

wxPanel* TManageDatabaseDialog::pDatabases
 

wxChoice* TManageDatabaseDialog::pm_dd_l
 

wxChoice * TManageDatabaseDialog::pm_dd_r
 

wxChoice * TManageDatabaseDialog::pm_dd_save
 

wxListCtrl* TManageDatabaseDialog::pm_left
 

wxTextCtrl* TManageDatabaseDialog::pm_name
 

wxListCtrl * TManageDatabaseDialog::pm_right
 

int TManageDatabaseDialog::th
 

wxListCtrl * TManageDatabaseDialog::thetarget
 

TVector* TManageDatabaseDialog::v
 

wxBoxSizer* TManageDatabaseDialog::v0 [private]
 

wxBoxSizer * TManageDatabaseDialog::v2 [private]
 


The documentation for this class was generated from the following files:
Generated on Fri Aug 11 16:19:48 2006 for GENtle by  doxygen 1.4.1