#include "LString.h"
#include FORMS_H_LOCATION
#include "form1.h"
+#include <sigc++/signal_system.h>
class LyXFindReplace;
+#ifdef SIGC_CXX_NAMESPACES
+using SigC::Object;
+using SigC::Connection;
+#endif
+
/**
The comments below are most likely not valied anymore since
the rewrite of LyXFindReplace0 and LyXFindReplace1. (Lgb)
- regex searches (I'm working on that -- dnaber, 1999-02-24)
*/
-
-class SearchForm {
+class SearchForm : public Object {
public:
///
SearchForm();
}
///
- string SearchString() const {
+ string const SearchString() const {
return fl_get_input(search_form->input_search);
}
///
void SetSearchString(string const & ls);
///
- string ReplaceString() const;
+ string const ReplaceString() const;
///
bool ValidSearchData() const { return !(SearchString().empty()); }
private:
+ /** Redraw the form (on receipt of a Signal indicating, for example,
+ that the xform colors have been re-mapped).
+ */
+ void redraw();
///
FD_form_search * search_form;
/// replace buttons enabled?
bool fReplaceEnabled;
+ /// Redraw connection.
+ Connection r_;
};
#endif