-
Notifications
You must be signed in to change notification settings - Fork 0
/
options.h
119 lines (91 loc) · 2.33 KB
/
options.h
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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
//////////////////////////////////////////////////////////////
// $Id: options.h 20671 1999-05-02 14:28:37Z coolo $
//
// Author: Toivo Pedaste
//
#ifndef OPTIONS_H
#define OPTIONS_H
#include "config.h"
// Standard Headers
#include <stdio.h>
// Qt Headers
#include <qdir.h>
#include <qwidget.h>
#include <qframe.h>
#include <qlabel.h>
#include <qfiledlg.h>
#include <qgrpbox.h>
#include <qchkbox.h>
#include <qlayout.h>
#include <qlined.h>
#include <qbttngrp.h>
#include <qradiobt.h>
#include <qtabdlg.h>
// KDE headers
#include <kapp.h>
#include <kmenubar.h>
#include <ktopwidget.h>
#include <kbuttonbox.h>
#include <kfiledialog.h>
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
class Options : public QDialog
{
Q_OBJECT
public:
Options ( QWidget *parent = 0, const char *name=0);
~Options();
void restore();
// show window, setting the buttons
private:
void readSettings();
void writeSettings();
bool verifyFL;
bool PkgRead;
int displayP, dp, DCache, dc, PCache, pc;
QTabDialog *tab;
QVBoxLayout* vl;
QVBoxLayout* vb;
QButtonGroup *bg;
QRadioButton *disp[4];
QVBoxLayout* vc;
QButtonGroup *bc;
QRadioButton *dcache[3];
QVBoxLayout* vp;
QButtonGroup *bp;
QRadioButton *pcache[3];
QVBoxLayout* vr;
QGroupBox *framer;
QCheckBox *pkgRead;
QVBoxLayout* vf;
QGroupBox *framem;
QCheckBox *valid;
public slots:
void apply_slot();
void PDisplay(int);
void PDCache(int);
void PPCache(int);
};
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
class Params
{
public:
bool VerifyFL;
// config: verify the file list
bool PkgRead;
// read information about uninstalled packages from each RPM file itself
enum {INSTALLED, UPDATED, NEW, ALL};
int DisplayP;
// which packages to display in tree
enum {ALWAYS, SESSION, NEVER};
int DCache;
// how much to cache uninstall package directories
int PCache;
// how much to cache uninstall packages
Params();
~Params();
};
//////////////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////////////
#endif