@ -64,10 +64,10 @@ LikeBackBar::LikeBackBar(LikeBack *likeBack)
{
TQHBoxLayout * layout = new TQHBoxLayout ( this ) ;
TQIconSet likeIconSet = ka pp- > iconLoader ( ) - > loadIconSet ( " likeback_like_tork " , TDEIcon : : Small ) ;
TQIconSet dislikeIconSet = ka pp- > iconLoader ( ) - > loadIconSet ( " likeback_dislike_tork " , TDEIcon : : Small ) ;
TQIconSet bugIconSet = ka pp- > iconLoader ( ) - > loadIconSet ( " likeback_bug_tork " , TDEIcon : : Small ) ;
TQIconSet featureIconSet = ka pp- > iconLoader ( ) - > loadIconSet ( " likeback_feature_tork " , TDEIcon : : Small ) ;
TQIconSet likeIconSet = tdeA pp- > iconLoader ( ) - > loadIconSet ( " likeback_like_tork " , TDEIcon : : Small ) ;
TQIconSet dislikeIconSet = tdeA pp- > iconLoader ( ) - > loadIconSet ( " likeback_dislike_tork " , TDEIcon : : Small ) ;
TQIconSet bugIconSet = tdeA pp- > iconLoader ( ) - > loadIconSet ( " likeback_bug_tork " , TDEIcon : : Small ) ;
TQIconSet featureIconSet = tdeA pp- > iconLoader ( ) - > loadIconSet ( " likeback_feature_tork " , TDEIcon : : Small ) ;
m_likeButton = new TQToolButton ( this , " likeback_like_tork " ) ;
m_likeButton - > setIconSet ( likeIconSet ) ;
@ -124,7 +124,7 @@ void LikeBackBar::autoMove()
{
static TQWidget * lastWindow = 0 ;
TQWidget * window = ka pp- > activeWindow ( ) ;
TQWidget * window = tdeA pp- > activeWindow ( ) ;
// When a Kicker applet has the focus, like the Commandline TQLineEdit,
// the systemtray icon indicates to be the current window and the LikeBack is shown next to the system tray icon.
// It's obviously bad ;-) :
@ -219,9 +219,9 @@ LikeBack::LikeBack(Button buttons, bool showBarByDefault, TDEConfig *config, con
// Use default TDEApplication config and aboutData if not provided:
if ( d - > config = = 0 )
d - > config = ka pp- > config ( ) ;
d - > config = tdeA pp- > config ( ) ;
if ( d - > aboutData = = 0 )
d - > aboutData = ka pp- > aboutData ( ) ;
d - > aboutData = tdeA pp- > aboutData ( ) ;
// Initialize properties (2/2) [Needs aboutData to be set]:
d - > showBar = userWantsToShowBar ( ) ;
@ -411,10 +411,10 @@ void LikeBack::setUserWantsToShowBar(bool showBar)
void LikeBack : : showInformationMessage ( )
{
// Load and register the images needed by the message:
TQPixmap likeIcon = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_like_tork " , TDEIcon : : Small ) ;
TQPixmap dislikeIcon = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_dislike_tork " , TDEIcon : : Small ) ;
TQPixmap bugIcon = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_bug_tork " , TDEIcon : : Small ) ;
TQPixmap featureIcon = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_feature_tork " , TDEIcon : : Small ) ;
TQPixmap likeIcon = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_like_tork " , TDEIcon : : Small ) ;
TQPixmap dislikeIcon = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_dislike_tork " , TDEIcon : : Small ) ;
TQPixmap bugIcon = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_bug_tork " , TDEIcon : : Small ) ;
TQPixmap featureIcon = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_feature_tork " , TDEIcon : : Small ) ;
TQMimeSourceFactory : : defaultFactory ( ) - > setPixmap ( " likeback_icon_like " , likeIcon ) ;
TQMimeSourceFactory : : defaultFactory ( ) - > setPixmap ( " likeback_icon_dislike " , dislikeIcon ) ;
TQMimeSourceFactory : : defaultFactory ( ) - > setPixmap ( " likeback_icon_bug " , bugIcon ) ;
@ -490,7 +490,7 @@ TQString LikeBack::activeWindowPath()
{
// Compute the window hierarchy (from the latest to the oldest):
TQStringList windowNames ;
TQWidget * window = ka pp- > activeWindow ( ) ;
TQWidget * window = tdeA pp- > activeWindow ( ) ;
while ( window ) {
TQString name = window - > name ( ) ;
// Append the class name to the window name if it is unnamed:
@ -558,7 +558,7 @@ void LikeBack::askEmailAddress()
" <p><b> " + i18n ( " Please provide your email address. " ) + " </b></p> " +
" <p> " + i18n ( " It will only be used to contact you back if more information is needed about your comments, ask you how to reproduce the bugs you report, send bug corrections for you to test, etc. " ) + " </p> " +
" <p> " + i18n ( " The email address is optional. If you do not provide any, your comments will be sent anonymously. " ) + " </p> " ,
currentEmailAddress , & ok , ka pp- > activeWindow ( ) , /*name=*/ ( const char * ) 0 , & emailValidator ) ;
currentEmailAddress , & ok , tdeA pp- > activeWindow ( ) , /*name=*/ ( const char * ) 0 , & emailValidator ) ;
enableBar ( ) ;
if ( ok )
@ -631,7 +631,7 @@ void LikeBack::fetchUserEmail()
LikeBackDialog : : LikeBackDialog ( LikeBack : : Button reason , const TQString & initialComment , const TQString & windowPath , const TQString & context , LikeBack * likeBack )
: KDialogBase ( KDialogBase : : Swallow , i18n ( " Send a Comment to Developers " ) , KDialogBase : : Ok | KDialogBase : : Cancel | KDialogBase : : Default ,
KDialogBase : : Ok , ka pp- > activeWindow ( ) , /*name=*/ " _likeback_feedback_window_ " , /*modal=*/ true , /*separator=*/ true )
KDialogBase : : Ok , tdeA pp- > activeWindow ( ) , /*name=*/ " _likeback_feedback_window_ " , /*modal=*/ true , /*separator=*/ true )
, m_likeBack ( likeBack )
, m_windowPath ( windowPath )
, m_context ( context )
@ -667,7 +667,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC
TQWidget * buttons = new TQWidget ( box ) ;
TQGridLayout * buttonsGrid = new TQGridLayout ( buttons , /*nbRows=*/ 4 , /*nbColumns=*/ 2 , /*margin=*/ 0 , spacingHint ( ) ) ;
if ( m_likeBack - > buttons ( ) & LikeBack : : Like ) {
TQPixmap likePixmap = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_like_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQPixmap likePixmap = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_like_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQLabel * likeIcon = new TQLabel ( buttons ) ;
likeIcon - > setPixmap ( likePixmap ) ;
likeIcon - > setSizePolicy ( TQSizePolicy : : Fixed , TQSizePolicy : : Fixed ) ;
@ -677,7 +677,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC
m_group - > insert ( likeButton , LikeBack : : Like ) ;
}
if ( m_likeBack - > buttons ( ) & LikeBack : : Dislike ) {
TQPixmap dislikePixmap = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_dislike_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQPixmap dislikePixmap = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_dislike_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQLabel * dislikeIcon = new TQLabel ( buttons ) ;
dislikeIcon - > setPixmap ( dislikePixmap ) ;
dislikeIcon - > setSizePolicy ( TQSizePolicy : : Fixed , TQSizePolicy : : Fixed ) ;
@ -687,7 +687,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC
m_group - > insert ( dislikeButton , LikeBack : : Dislike ) ;
}
if ( m_likeBack - > buttons ( ) & LikeBack : : Bug ) {
TQPixmap bugPixmap = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_bug_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQPixmap bugPixmap = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_bug_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQLabel * bugIcon = new TQLabel ( buttons ) ;
bugIcon - > setPixmap ( bugPixmap ) ;
bugIcon - > setSizePolicy ( TQSizePolicy : : Fixed , TQSizePolicy : : Fixed ) ;
@ -697,7 +697,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC
m_group - > insert ( bugButton , LikeBack : : Bug ) ;
}
if ( m_likeBack - > buttons ( ) & LikeBack : : Feature ) {
TQPixmap featurePixmap = ka pp- > iconLoader ( ) - > loadIcon ( " likeback_feature_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQPixmap featurePixmap = tdeA pp- > iconLoader ( ) - > loadIcon ( " likeback_feature_tork " , TDEIcon : : NoGroup , 16 , TDEIcon : : DefaultState , 0L , true ) ;
TQLabel * featureIcon = new TQLabel ( buttons ) ;
featureIcon - > setPixmap ( featurePixmap ) ;
featureIcon - > setSizePolicy ( TQSizePolicy : : Fixed , TQSizePolicy : : Fixed ) ;
@ -725,7 +725,7 @@ LikeBackDialog::LikeBackDialog(LikeBack::Button reason, const TQString &initialC
setButtonGuiItem ( Default , KGuiItem ( i18n ( " &Email Address... " ) , " mail_generic " ) ) ;
resize ( TQSize ( ka pp- > desktop ( ) - > width ( ) * 1 / 2 , ka pp- > desktop ( ) - > height ( ) * 3 / 5 ) . expandedTo ( sizeHint ( ) ) ) ;
resize ( TQSize ( tdeA pp- > desktop ( ) - > width ( ) * 1 / 2 , tdeA pp- > desktop ( ) - > height ( ) * 3 / 5 ) . expandedTo ( sizeHint ( ) ) ) ;
TQAction * sendShortcut = new TQAction ( this ) ;
sendShortcut - > setAccel ( TQString ( " Ctrl+Return " ) ) ;