00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
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
00055 void on_search_clicked();
00056
00057
00058 void on_entry_text_changed();
00059
00060
00061 void on_selection_changed();
00062
00063
00064 Glib::ustring m_CurBlock;
00065
00066
00067 Gtk::Label *m_QueryLabel;
00068 Gtk::Label *m_ResultsLabel;
00069
00070
00071 Gtk::Button *m_SearchButton;
00072 Gtk::Button *m_GoButton;
00073
00074
00075 Gtk::Entry *m_QueryEntry;
00076
00077
00078 Gtk::ScrolledWindow *m_SWindow;
00079
00080
00081 Gtk::ListViewText *m_ResultsList;
00082
00084 BufferMap m_Buffers;
00085 };
00086
00087 #endif