summaryrefslogtreecommitdiffstats
path: root/kbugbuster/gui/preferencesdialog.h
blob: cd200ba4bfe5cabb9bf8681cca944058a5d2afb5 (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
74
75
76
77
78
#ifndef PREFERENCESDIALOG_H
#define PREFERENCESDIALOG_H

#include <kdialogbase.h>

class TQCheckBox;
class TQRadioButton;
class TQLineEdit;
class TQListView;
class KIntNumInput;
class ServerListView;

class PreferencesDialog : public KDialogBase
{
    TQ_OBJECT
  
  public:
    PreferencesDialog( TQWidget* parent = 0, const char* name = 0 );
    ~PreferencesDialog();

    void createServerItem( ServerListView *listView, const TQString &name,
                           const TQString &url, const TQString &version );

  public:
    void readConfig();
    void writeConfig();

  signals:
    void configChanged();

  protected slots:
    void setDefaults();
    void slotApply();
    void slotOk();
    void slotCancel();

    void addServer();
    void editServer();
    void removeServer();

    void selectServer();

  protected:
    void setupServerPage();
    void setupAdvancedPage();


  private:
    TQCheckBox *mShowClosedCheckBox;
    TQCheckBox *mShowWishesCheckBox;
    TQCheckBox *mShowVotedCheckBox;
    TQCheckBox *mSendBccCheckBox;
    KIntNumInput *mMinVotesInput;
    TQRadioButton *mKMailButton;
    TQRadioButton *mDirectButton;
    TQRadioButton *mSendmailButton;
    TQListView *mServerList;
};

class ServerListView;
class ServerItem;

class SelectServerDlg : public KDialogBase
{
    TQ_OBJECT
  
public:
    SelectServerDlg(PreferencesDialog *parent, const char */*name*/ );
    ServerItem *serverSelected();
protected slots:
    void slotDoubleClicked( TQListViewItem *);

protected:
    ServerListView *list;
};


#endif