Sophie

Sophie

distrib > Mandriva > 2009.0 > i586 > by-pkgid > 4f23c27070572be9f0b80d659f540b78 > files > 123

motor-debug-3.4.0-2mdv2009.0.i586.rpm

#ifndef __UIGREPPER_H__
#define __UIGREPPER_H__

#include "motorcommon.h"
#include "ncursesui.h"
#include "motorgrepper.h"

__MOTOR_BEGIN_NAMESPACE

class uigrepper {
    private:
	bool initmode, replacemode;
	vector<motorui::editfile>::const_iterator currentgrep;
	string pattern, replacement;
	int grepoptions;

	bool fregexp, fcase, fwhole;
	motorgrepper::grepmode grepmode;

	bool init();
	bool go();

	bool replacego();
	bool collectgo();
	bool currentgo();

    public:
	uigrepper();
	~uigrepper();

	void grep();
	void replace();
	void again();
};

__MOTOR_END_NAMESPACE

#ifdef __MOTOR_USE_NAMESPACES

using motor::uigrepper;

#endif

extern uigrepper uigrep;

#endif