editdialogs.h

00001 /***************************************************************************
00002  *   Copyright (C) 2007 by Mike Polan                                      *
00003  *   kanadakid@gmail.com                                                   *
00004  *                                                                         *
00005  *   This program is free software; you can redistribute it and/or modify  *
00006  *   it under the terms of the GNU General Public License as published by  *
00007  *   the Free Software Foundation; either version 2 of the License, or     *
00008  *   (at your option) any later version.                                   *
00009  *                                                                         *
00010  *   This program is distributed in the hope that it will be useful,       *
00011  *   but WITHOUT ANY WARRANTY; without even the implied warranty of        *
00012  *   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         *
00013  *   GNU General Public License for more details.                          *
00014  *                                                                         *
00015  *   You should have received a copy of the GNU General Public License     *
00016  *   along with this program; if not, write to the                         *
00017  *   Free Software Foundation, Inc.,                                       *
00018  *   59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.             *
00019  ***************************************************************************/
00020 // editdialogs.h: various Edit menu based dialogs
00021 
00022 #ifndef EDITDIALOGS_H
00023 #define EDITDIALOGS_H
00024 
00025 #include <gtkmm/button.h>
00026 #include <gtkmm/dialog.h>
00027 #include <gtkmm/entry.h>
00028 #include <gtkmm/label.h>
00029 #include <gtkmm/listviewtext.h>
00030 #include <gtkmm/scrolledwindow.h>
00031 
00032 #include "case.h"
00033 
00038 class FindDialog: public Gtk::Dialog {
00039         public:
00043                 FindDialog(const BufferMap &buffers);
00044                 
00048                 Glib::ustring get_selected() { return m_ResultsList->get_text(m_ResultsList->get_selected()[0], 0); }
00049                 
00050         private:
00052                 void construct();
00053                 
00054                 // search button click handler
00055                 void on_search_clicked();
00056                 
00057                 // query text changed handler
00058                 void on_entry_text_changed();
00059                 
00060                 // list selection change handler
00061                 void on_selection_changed();
00062                 
00063                 // selected block
00064                 Glib::ustring m_CurBlock;
00065                 
00066                 // labels
00067                 Gtk::Label *m_QueryLabel;
00068                 Gtk::Label *m_ResultsLabel;
00069                 
00070                 // buttons
00071                 Gtk::Button *m_SearchButton;
00072                 Gtk::Button *m_GoButton;
00073                 
00074                 // enties
00075                 Gtk::Entry *m_QueryEntry;
00076                 
00077                 // containers
00078                 Gtk::ScrolledWindow *m_SWindow;
00079                 
00080                 // listview for results
00081                 Gtk::ListViewText *m_ResultsList;
00082                 
00084                 BufferMap m_Buffers;
00085 };
00086 
00087 #endif

Generated on Fri Feb 22 22:34:17 2008 for Phoenix Wright Case Editor API by  doxygen 1.5.3