diff options
author | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-01-27 18:44:50 +0900 |
---|---|---|
committer | Michele Calgaro <michele.calgaro@yahoo.it> | 2015-01-27 18:44:50 +0900 |
commit | 08f2b5848ddd09e0da7e2d42a8743f0b40f1c717 (patch) | |
tree | 18bcb7a10dbea1184b4bc6f860e1a8e06ab1c819 /tdefilereplace/kaddstringdlg.h | |
parent | 3c091bf671d1802dceabd5b820290b0828abf949 (diff) | |
download | tdeutils-08f2b5848ddd09e0da7e2d42a8743f0b40f1c717.tar.gz tdeutils-08f2b5848ddd09e0da7e2d42a8743f0b40f1c717.zip |
Moved TDEFileReplace to tdeutils. This resolves bug 767.
Signed-off-by: Michele Calgaro <michele.calgaro@yahoo.it>
Diffstat (limited to 'tdefilereplace/kaddstringdlg.h')
-rw-r--r-- | tdefilereplace/kaddstringdlg.h | 76 |
1 files changed, 76 insertions, 0 deletions
diff --git a/tdefilereplace/kaddstringdlg.h b/tdefilereplace/kaddstringdlg.h new file mode 100644 index 0000000..f39c296 --- /dev/null +++ b/tdefilereplace/kaddstringdlg.h @@ -0,0 +1,76 @@ +/*************************************************************************** + 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 +{ + Q_OBJECT + + private: + RCOptions* m_option; + TQListView* m_sv; + KeyValueMap m_currentMap; + bool m_wantEdit; + + public: //Constructors + KAddStringDlg(RCOptions* info, bool wantEdit, 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(); + /** + * Deletes all the items of the view + */ + void eraseViewItems(); + /** + * Deletes all the items of the map + */ + void clearMap() { KeyValueMap m; m_option->m_mapStringsView = m; } + /** + * 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 + |