blob: 09e536b42d6692164b488d2a16e4157e664f1757 (
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
|
/***************************************************************************
mainwindow.h - Kommander plugin manager mainwindow class definition
-------------------
begin : Tue Aug 13 09:31:50 EST 2002
copyright : (C) 2004 by Marc Britton
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 HAVE_MAINWINDOW_H
#define HAVE_MAINWINDOW_H
#include <tdemainwindow.h>
class TDEListBox;
class PluginManager;
class MainWindow : public TDEMainWindow
{
TQ_OBJECT
public:
MainWindow( TQWidget* parent = 0, const char *name = 0, WFlags f = WType_TopLevel | WDestructiveClose );
~MainWindow();
protected slots:
// Call function asigned to tollbutton (0 = add, 1 = remove)
void toolButton( int id );
// Remove currently selected plugin
void remove();
// Show dialogbox for selecting plugin, then add it
void add();
// Add given plugin if is not added yet
void add( const TQString &plugin );
// Check whether installed plugins are valid
void verify();
private:
enum {Add, Remove, Refresh};
// Referesh plugin list
void refresh();
// ListBox of available plugins
TDEListBox *m_list;
// plugin manager
PluginManager* m_pluginManager;
};
#endif
|