1 /***************************************************************************
2 * Copyright (C) 2006 by Sebastien Laout *
5 * This program is free software; you can redistribute it and/or modify *
6 * it under the terms of the GNU Library General Public License as *
7 * published by the Free Software Foundation; either version 2 of the *
8 * License, or (at your option) any later version. *
10 * This program is distributed in the hope that it will be useful, *
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of *
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
13 * GNU General Public License for more details. *
15 * You should have received a copy of the GNU Library General Public *
16 * License along with this program; if not, write to the *
17 * Free Software Foundation, Inc., *
18 * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. *
19 ***************************************************************************/
21 #ifndef LIKEBACK_PRIVATE_H
22 #define LIKEBACK_PRIVATE_H
42 const KAboutData
*aboutData
;
43 LikeBack::Button buttons
;
47 QStringList acceptedLocales
;
48 QString acceptedLanguagesMessage
;
49 LikeBack::WindowListing windowListing
;
50 bool showBarByDefault
;
57 class LikeBackBar
: public QWidget
61 LikeBackBar(LikeBack
*likeBack
);
69 void clickedDislike();
71 void clickedFeature();
75 QToolButton
*m_likeButton
;
76 QToolButton
*m_dislikeButton
;
77 QToolButton
*m_bugButton
;
78 QToolButton
*m_featureButton
;
81 class LikeBackDialog
: public KDialog
85 LikeBackDialog(LikeBack::Button reason
, const QString
&initialComment
, const QString
&windowPath
, const QString
&context
, LikeBack
*likeBack
);
91 Q3ButtonGroup
*m_group
;
92 Q3TextEdit
*m_comment
;
93 QCheckBox
*m_showButtons
;
94 QString
introductionText();
99 void changeButtonBarVisible();
100 void commentChanged();
102 void requestFinished(int id
, bool error
);
105 #endif // LIKEBACK_PRIVATE_H