blob: 276573e1d6fa072b9b2b5d441bf9cf05c5d71aa8 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
/***************************************************************************
KAddStringDlg.h - description
-------------------
begin : Sat Oct 16 1999
copyright : (C) 1999 by François Dupoux
(C) 2004 Emiliano Gulmini <[email protected]>
email : [email protected]
***************************************************************************/
/***************************************************************************
* *
* 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;
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
|