summaryrefslogtreecommitdiffstats
path: root/kdict/sets.h
blob: 1baa313301f5c260b0a37b73c487b94da32f82a1 (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
/* -------------------------------------------------------------

   sets.h (part of The KDE Dictionary Client)

   Copyright (C) 2000-2001 Christian Gebauer <gebauer@kde.org>

   This file is distributed under the Artistic License.
   See LICENSE for details.

   -------------------------------------------------------------

   dbSetsDialog    dialog for editing the user defined database sets
   
 ------------------------------------------------------------- */
 
#ifndef _KDICT_SETS_H_
#define _KDICT_SETS_H_

#include <kdialogbase.h>

class TQListBox;


//*********  DbSetsDialog  ******************************************


class DbSetsDialog : public KDialogBase
{
  Q_OBJECT

public:

  DbSetsDialog(TQWidget *parent=0, const char *name=0);

signals:

  void setsChanged();
  void dialogClosed();

protected:
  void hideEvent(TQHideEvent *);

private slots:

  void newPressed();
  void deletePressed();
  void allLeftPressed();
  void leftPressed();
  void rightPressed();
  void allRightPressed();
  void closePressed();
  void transferSet();
  void activateSet(int num);
  void leftSelected(int index);
  void rightSelected(int index);
  void leftHighlighted(int index);
  void rightHighlighted(int index);

private:

  void checkButtons();

  TQComboBox *w_set;
  TQListBox *w_leftBox, *w_rightBox;
  TQPushButton *w_delete,*w_save,*w_allLeft,*w_left,*w_right,*w_allRight;
};

#endif