blob: 81d917001b95ec11e64444339dbc9ad8bec1673d (
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
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
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
|
/***************************************************************************
* Copyright (C) 2004 by ian reinhart geiser *
* geiseri@kde.org *
* *
* 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. *
* *
* This program is distributed in the hope that it will be useful, *
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
* GNU General Public License for more details. *
* *
* You should have received a copy of the GNU General Public License *
* along with this program; if not, write to the *
* Free Software Foundation, Inc., *
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
***************************************************************************/
#ifndef __DISTPART_WIDGET_H__
#define __DISTPART_WIDGET_H__
#include <qwidget.h>
#include <qstring.h>
#include "distpart_ui.h"
#include <klistbox.h>
#include <qcheckbox.h>
#include <kpushbutton.h>
#include <klineedit.h>
#include <ktextedit.h>
#include <qcombobox.h>
#include <qprogressbar.h>
class KDevProject;
class DistpartPart;
class QUrlOperator;
class KProcess;
class QTabWidget;
class SpecSupport;
namespace KParts {
class ReadOnlyPart;
}
class DistpartDialog : public distpart_ui {
Q_OBJECT
public:
DistpartDialog(DistpartPart *part, QWidget *parent);
~DistpartDialog();
signals:
void okay();
void cancel();
void help();
void createsrc();
void resetsrc();
void buildall();
void savespec();
void loadspec();
void srcrpm();
void genhtml();
void resethtml();
void upload();
void resetupload();
// Accessors and mutators to control GUI
// Connect Slots to the following widgets
public slots:
// QPushButton* okayPushButton;
void slotokayPushButtonPressed();
// QPushButton* cancelPushButton;
void slotcancelPushButtonPressed();
// QPushButton* help_PushButton;
// void slothelp_PushButtonPressed();
// QPushButton* createSrcArchPushButton;
void slotcreateSrcArchPushButtonPressed();
// QPushButton* resetSrcPushButton;
void slotresetSrcPushButtonPressed();
// QPushButton* genHTMLPushButton;
void slotgenHTMLPushButtonPressed();
// QPushButton* resetHTMLPushButton;
void slotresetHTMLPushButtonPressed();
// QToolButton* uploadAddFileToolButton;
void slotuploadAddFileToolButtonPressed();
// QToolButton* uploadRemoveToolButton;
void slotuploadRemoveToolButtonPressed();
// QPushButton* uploadSubmitPushButton;
void slotuploadSubmitPushButtonPressed();
// QPushButton* uploadResetPushButton;
void slotuploadResetPushButtonPressed();
// Connect Slots to the following widgets and add
// accessors and mutators
// QCheckBox* customProjectCheckBox;
void slotcustomProjectCheckBoxChanged();
// QCheckBox* uploadCustomCheckBox;
void slotuploadCustomCheckBoxChanged();
void slotbuildAllPushButtonPressed();
void slotexportSPECPushButtonPressed();
void slotimportSPECPushButtonPressed();
void slotsrcPackagePushButtonPressed();
void slotAddFileButtonPressed();
void slotRemoveFile(QListBoxItem *item);
public:
bool getcustomProjectCheckBoxState();
void setcustomProjectCheckBoxState(bool state);
bool getuploadCustomCheckBoxState();
void setuploadCustomCheckBoxState(bool state);
// Add accessors and mutators for the following
// QCheckBox* bzipCheckBox;
bool getbzipCheckBoxState();
void setbzipCheckBoxState(bool state);
// QCheckBox* appIconCheckBox;
bool getappIconCheckBoxState();
void setappIconCheckBoxState(bool state);
// QCheckBox* genHTMLCheckBox;
bool getgenHTMLCheckBoxState();
void setgenHTMLCheckBoxState(bool state);
// QCheckBox* useRPMInfoCheckBox;
bool getuseRPMInfoCheckBoxState();
void setuseRPMInfoCheckBoxState(bool state);
// QCheckBox* uploadAppsKDEcomCheckBox;
bool getuploadAppsKDEcomCheckBoxState();
void setuploadAppsKDEcomCheckBoxState(bool state);
// QCheckBox* uploadftpkdeorgCheckBox;
bool getuploadftpkdeorgCheckBoxState();
void setuploadftpkdeorgCheckBoxState(bool state);
// QCheckBox* devPackageCheckBox;
bool getdevPackageCheckBoxState();
void setdevPackageCheckBoxState(bool state);
// QCheckBox* docsPackageCheckBox;
bool getdocsPackageCheckBoxState();
void setdocsPackageCheckBoxState(bool state);
// QLineEdit* archNameFormatLineEdit;
QString getarchNameFormatLineEditText();
void setarchNameFormatLineEditText(QString text);
// QLineEdit* appNameLineEdit;
QString getappNameFormatLineEditText();
void setappNameFormatLineEditText(QString text);
// QLineEdit* summaryLineEdit;
QString getsummaryLineEditText();
void setsummaryLineEditText(QString text);
// QLineEdit* groupLineEdit;
QString getgroupLineEditText();
void setgroupLineEditText(QString text);
// QLineEdit* releaseLineEdit;
QString getreleaseLineEditText();
void setreleaseLineEditText(QString text);
// QLineEdit* VersionLineEdit;
QString getversionLineEditText();
void setversionLineEditText(QString text);
// QLineEdit* VendorLineEdit;
QString getvendorLineEditText();
void setvendorLineEditText(QString text);
// QLineEdit* LicenseLineEdit;
QString getlicenseLineEditText();
void setlicenseLineEditText(QString text);
// QLineEdit* uploadURLLineEdit;
QString getuploadURLLineEditText();
void setuploadURLLineEditText(QString text);
// QLineEdit* PackagerLineEdit;
QString getpackagerLineEditText();
void setpackagerLineEditText(QString text);
// QComboBox* archComboBox;
QString getarchComboBoxText();
int getarchComboBoxItem();
void setarchComboBoxItem(int item);
// QListBox* uploadFileListBox;
QString getuploadFileListBoxText();
int getuploadFileListBoxItem();
void setuploadFileListBoxItem(int item);
// QListBox* srcDistFileListBox;
QString getsrcDistFileListBoxText();
int getsrcDistFileListBoxItem();
void setsrcDistFileListBoxItem(int item);
// QMultiLineEdit* projectDescriptionMultilineEdit;
QString getprojectDescriptionMultilineEditText();
void setprojectDescriptionMultilineEditText(QString text);
QString getprojectChangelogMultilineEditText();
void setprojectChangelogMultilineEditText(QString text);
QString getSourceName();
private:
void loadSettings();
void storeSettings();
void setPackageData();
void getPackageData();
SpecSupport *m_spec;
DistpartPart *m_part;
QString dir;
};
#endif
|