You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tdeutils/tdefilereplace/kaddstringdlg.h

68 lines
2.1 KiB

/***************************************************************************
KAddStringDlg.h - description
-------------------
begin : Sat Oct 16 1999
copyright : (C) 1999 by François Dupoux
(C) 2004 Emiliano Gulmini <emi_barbarossa@yahoo.it>
email : dupoux@dupoux.com
***************************************************************************/
/***************************************************************************
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
* the Free Software Foundation; either version 2 of the License, or *
* (at your option) any later version. *
* *
***************************************************************************/
#ifndef KADDSTRINGDLG_H
#define KADDSTRINGDLG_H
// local
#include "kaddstringdlgs.h"
#include "configurationclasses.h"
/**
* This is the dialog used to add a list of searching/replacing strings
*/
class KAddStringDlg : public KAddStringDlgS
{
TQ_OBJECT
private:
RCOptions* m_option;
TQListView* m_sv;
KeyValueMap m_currentMap;
public: //Constructors
KAddStringDlg(RCOptions* info, TQWidget *parent=0, const char *name=0);
private slots:
void slotOK();
void slotSearchOnly();
void slotSearchReplace();
void slotAddStringToView();
void slotDeleteStringFromView();
void slotHelp();
private:
/**
* inits... the GUI :-)
*/
void initGUI();
/**
* The view is actually a stack widget that contains two different views widget
*/
void raiseView();
/**
* Verifies whether 'lv' contains 's'
*/
bool columnContains(TQListView* lv,const TQString& s, int column);
void saveViewContentIntoMap();
void loadMapIntoView();
void whatsThis();
};
#endif // KADDSTRINGDLG_H