1
/**vim: ts=4, wrap, tw=80
3
* --- libkvistatoptions.h ---
5
* This is a plugin for KVirc 2.0 Phoenix. It allows you to see
6
* statistics of your IRC sessions - total words said etc.
7
* More features are still to come.
9
* (c) Krzysztof Godlewski <kristoff@poczta.wprost.pl>
12
* This program is FREE software. You can redistribute it and/or
13
* modify it under the terms of the GNU General Public License
14
* as published by the Free Software Foundation; either version 2
15
* of the License, or (at your opinion) any later version.
17
* This program is distributed in the HOPE that it will be USEFUL,
18
* but WITHOUT ANY WARRANTY; without even the implied warranty of
19
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
20
* See the GNU General Public License for more details.
22
* You should have received a copy of the GNU General Public License
23
* along with this program. If not, write to the Free Software Foundation,
24
* Inc. ,59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
27
#ifndef __KVISTATOPTIONS_H__
28
#define __KVISTATOPTIONS_H__
31
#include "kvirc_plugin.h"
42
// Type of stats report performed on join to a channel
43
#define ShowNoStatsOnJoin 0
44
#define ShowFullStatsOnJoin 1
45
#define ShowCustomStatsOnJoin 2
47
// indexes of Custom Stats checkboxes
48
#define ShowJoinsOnJoin 0
49
#define ShowWordsOnJoin 1
50
#define ShowKicksOnJoin 2
51
#define ShowBansOnJoin 3
52
#define ShowTopicsOnJoin 4
54
// indexes of SysTray Widget checkboxes
55
#define SysTrayEnabled 5
56
#define SysTrayShowWords 6
57
#define SysTrayShowJoins 7
58
#define SysTrayShowKicks 8
59
#define SysTrayShowBans 9
60
#define SysTrayShowTopics 10
62
#define ScrollingNever 0
63
#define ScrollingAlways 1
64
#define ScrollingWhenNeeded 2
66
class KviStatOptions : public QTabDialog
73
// Used to set the options - check/uncheck checkboxes, set correct
74
// radioButton checked
75
void setOptions( unsigned int numOfRadioBtnChecked, bool , bool ,
78
// Same as above but for SysTray widget options
79
void setSysTrayOptions( bool, bool, bool, bool, bool, bool );
81
// and for scrolling options
82
void setScrollingOptions( int, int, int, bool dir_left );
84
// Used to read the options, sets numOfRadioBtnChecked to number of
85
// radioButton checked (stats showing on join), sets the bool variables to
86
// correct values, depending on which option from "Custom stats" is chosen
87
void getOptions( int &numOfRadioBtnChecked, bool &, bool &, bool &,
90
// Similar to above, but for SysTray widget
91
void getSysTrayOptions( bool &, bool &, bool &, bool &, bool &, bool & );
94
void getScrollingOptions( int &, int &, int &, bool & );
97
// Called everytime a specific button is pressed - toggles tabs, buttons etc
99
// I need another one, with an int parameter....
100
void slotToggleScroll(int);
103
QList<QRadioButton> rbuttons;
104
QList<QCheckBox> cboxes;
105
QList<QLabel> labels;
106
QVBox *m_pCustomStatsTab;
107
QSlider *delaySlider;
108
QSlider *smoothnessSlider;
110
QComboBox *scrollBox;
113
#endif // __KVISTATOPTIONS_H__