From e9ae80694875f869892f13f4fcaf1170a00dea41 Mon Sep 17 00:00:00 2001 From: toma Date: Wed, 25 Nov 2009 17:56:58 +0000 Subject: Copy the KDE 3.5 branch to branches/trinity for new KDE 3.5 features. BUG:215923 git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/kdewebdev@1054174 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- kfilereplace/kaddstringdlg.h | 75 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 75 insertions(+) create mode 100644 kfilereplace/kaddstringdlg.h (limited to 'kfilereplace/kaddstringdlg.h') diff --git a/kfilereplace/kaddstringdlg.h b/kfilereplace/kaddstringdlg.h new file mode 100644 index 00000000..f51e7f77 --- /dev/null +++ b/kfilereplace/kaddstringdlg.h @@ -0,0 +1,75 @@ +/*************************************************************************** + KAddStringDlg.h - description + ------------------- + begin : Sat Oct 16 1999 + copyright : (C) 1999 by François Dupoux + (C) 2004 Emiliano Gulmini + 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; + QListView* m_sv; + KeyValueMap m_currentMap; + bool m_wantEdit; + + public: //Constructors + KAddStringDlg(RCOptions* info, bool wantEdit, QWidget *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(QListView* lv,const QString& s, int column); + void saveViewContentIntoMap(); + void loadMapIntoView(); + void whatsThis(); +}; + +#endif // KADDSTRINGDLG_H + -- cgit v1.2.1