blob: a583f199985f5153648894c116e2b8cb6f7a5726 (
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
|
/***************************************************************************
functionsimpl.h - Function browser implementation
-------------------
copyright : (C) 2004 Michal Rudolf <[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 _HAVE_FUNCTIONSIMPL_H_
#define _HAVE_FUNCTIONSIMPL_H_
#include <tqstring.h>
#include <tqstringlist.h>
#include <tqwidget.h>
#include <tqdict.h>
#include "functions.h"
#include "specialinformation.h"
class FunctionsDialog : public FunctionsDialogBase
{
Q_OBJECT
TQ_OBJECT
public:
FunctionsDialog(TQWidget*, const TQDict<TQWidget>&, bool m_useInternalParser, char* = 0, bool = true);
~FunctionsDialog();
// Return current content of text box
TQString functionText() const;
// Return current function and parameters
TQString currentFunctionText();
public slots:
// Update list of function availabe for given group
void groupChanged(int);
// Update syntax of chosen function
void functionChanged(int);
// Copy current function and parameters into text box
void copyText();
// Show widgets for current function's parameters
void showParameters();
private:
// Calculate current parameters
TQString params();
SpecialFunction m_function;
int m_DCOP;
int m_Slots;
const TQDict<TQWidget> m_widgetList;
TQStringList m_widgetNames;
TQStringList m_widgetTypes;
bool m_useInternalParser;
TQStringList m_acceptedSlots;
TQMap<TQString, TQString> m_slotList;
};
#endif
|