File: advanced.h

package info (click to toggle)
kascade 1.0-beta10-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 964 kB
  • ctags: 815
  • sloc: cpp: 7,780; makefile: 39
file content (90 lines) | stat: -rw-r--r-- 2,520 bytes parent folder | download
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
79
80
81
82
83
84
85
86
87
88
89
90
/***************************************************************************
                          advanced.h  -  description
                             -------------------
    begin                : Wed May 24 2000
    copyright            : (C) 2000 by mark dufour
    email                : m.dufour@twi.tudelft.nl
 ***************************************************************************/

/***************************************************************************
 *                                                                         *
 *   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 ADVANCED_H
#define ADVANCED_H

//Generated area. DO NOT EDIT!!!(begin)
#include <qwidget.h>
#include <qgroupbox.h>
#include <qcheckbox.h>
#include <qlistbox.h>
#include <qspinbox.h>
#include <qlabel.h>
#include <qlineedit.h>
#include <qpushbutton.h>
//Generated area. DO NOT EDIT!!!(end)

#include <qwidget.h>

#include <vector>
#include <string>
using namespace std;

/**
  *@author mark dufour
  */

class advanced : public QWidget  {
   Q_OBJECT
public: 
	advanced(QWidget *parent=0, const char *name=0);
	~advanced();
	void fillListBox();

	QListBox *LBkeybindings;
	QPushButton *Bdefaultkeys, *Bvistylekeys;

	QCheckBox *CBexternalirc;
	QLineEdit *LEircclient;
	QCheckBox *CBexternalemail;
	QLineEdit *LEemailclient;
	QLineEdit *LEwebbrowser;
	QLineEdit *LEnewsclient;
	vector<int> keyBindingv;

	QSpinBox *SBtimeout;

public slots:
	void keySelected( const QString & );
	void defaultKeys();
	void vistyleKeys();

protected: 
	void initDialog();
	//Generated area. DO NOT EDIT!!!(begin)
	QGroupBox *QGroupBox_4;
	QGroupBox *QGroupBox_2;
	QLabel *QLabel_2;
	QLabel *QLabel_3;
	QLabel *QLabel_4;
	QLabel *QLabel_5;
	QGroupBox *QGroupBox_3;
	//Generated area. DO NOT EDIT!!!(end)

private:
	int getKey( string );
	void addKeyBindings( int );
	void addBinding( string, int );
	void addBinding( string, int, int, int );
	string textForKey( int );

	vector<string> textv;
	vector<int> keyv;
};

#endif