blob: db1116b2922b38e6c7733127bf2b9e2db97a5453 (
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
68
69
70
71
72
73
|
#ifndef _FILETYPESVIEW_H
#define _FILETYPESVIEW_H
#include <tqptrlist.h>
#include <tqmap.h>
#include <kconfig.h>
#include <kcmodule.h>
#include "typeslistitem.h"
class TQLabel;
class KListView;
class TQListViewItem;
class TQListBox;
class TQPushButton;
class KIconButton;
class TQLineEdit;
class TQComboBox;
class FileTypeDetails;
class FileGroupDetails;
class TQWidgetStack;
class FileTypesView : public TDECModule
{
Q_OBJECT
public:
FileTypesView(TQWidget *p = 0, const char *name = 0);
~FileTypesView();
void load();
void save();
void defaults();
protected slots:
/** fill in the various graphical elements, set up other stuff. */
void init();
void addType();
void removeType();
void updateDisplay(TQListViewItem *);
void slotDoubleClicked(TQListViewItem *);
void slotFilter(const TQString &patternFilter);
void setDirty(bool state);
void slotDatabaseChanged();
void slotEmbedMajor(const TQString &major, bool &embed);
protected:
void readFileTypes();
bool sync( TQValueList<TypesListItem *>& itemsModified );
private:
KListView *typesLV;
TQPushButton *m_removeTypeB;
TQWidgetStack * m_widgetStack;
FileTypeDetails * m_details;
FileGroupDetails * m_groupDetails;
TQLabel * m_emptyWidget;
TQLineEdit *patternFilterLE;
TQStringList removedList;
bool m_dirty;
TQMap<TQString,TypesListItem*> m_majorMap;
TQPtrList<TypesListItem> m_itemList;
TQValueList<TypesListItem *> m_itemsModified;
KSharedConfig::Ptr m_konqConfig;
};
#endif
|