26 #include <tdeaboutapplication.h>
27 #include <kaboutdialog_private.h>
28 #include <tdeaboutdata.h>
29 #include <tdeapplication.h>
30 #include <tdeglobal.h>
32 #include <kurllabel.h>
33 #include <kactivelabel.h>
34 #include "ktextedit.h"
39 kapp ? kapp->caption() : TQString::null,
47 const char *name,
bool modal )
48 :
TDEAboutDialog( AbtTabbed|AbtProduct, aboutData->programName(), Close, Close,
51 buildDialog(aboutData);
54 void TDEAboutApplication::buildDialog(
const TDEAboutData *aboutData )
63 setProduct( kapp ? kapp->caption() : TQString::null, i18n(
"??"), TQString::null, TQString::null );
66 TQString appPageText =
67 i18n(
"No information available.\n"
68 "The supplied TDEAboutData object does not exist.");
69 TQLabel *appPageLabel =
new TQLabel(
"\n\n\n\n"+appPageText+
"\n\n\n\n", 0 );
70 appPage->addWidget( appPageLabel );
75 TQString::null, TQString::null );
83 appPageText +=
"\n" + aboutData->
otherText()+
"\n";
90 TQLabel *appPageLabel =
new TQLabel( appPageText, 0 );
91 appPage->addWidget( appPageLabel );
93 if (!aboutData->
homepage().isEmpty())
98 appPage->addWidget( url );
99 connect( url, TQT_SIGNAL(leftClickedURL(
const TQString &)),
103 int authorCount = aboutData->
authors().count();
106 TQString authorPageTitle = authorCount == 1 ?
107 i18n(
"A&uthor") : i18n(
"A&uthors");
117 || aboutData->
bugAddress() ==
"submit@bugs.trinitydesktop.org"
118 || aboutData->
bugAddress() ==
"http://bugs.trinitydesktop.org")
119 text = i18n(
"Please use <a href=\"http://bugs.trinitydesktop.org\">http://bugs.trinitydesktop.org</a> to report bugs.\n" );
121 if( aboutData->
authors().count() == 1 && ( aboutData->
authors().first().emailAddress() == aboutData->
bugAddress() ) )
123 text = i18n(
"Please report bugs to <a href=\"mailto:%1\">%2</a>.\n" ).arg( aboutData->
authors().first().emailAddress() ).arg( aboutData->
authors().first().emailAddress() );
126 text = i18n(
"Please report bugs to <a href=\"mailto:%1\">%2</a>.\n" ).arg(aboutData->
bugAddress()).arg(aboutData->
bugAddress() );
134 activeLabel->setText( text );
135 authorPage->addWidget( activeLabel );
138 TQValueList<TDEAboutPerson>::ConstIterator it;
139 for (it = aboutData->
authors().begin();
140 it != aboutData->
authors().end(); ++it)
142 authorPage->addPerson( (*it).name(), (*it).emailAddress(),
143 (*it).webAddress(), (*it).task() );
147 int creditsCount = aboutData->
credits().count();
152 TQValueList<TDEAboutPerson>::ConstIterator it;
153 for (it = aboutData->
credits().begin();
154 it != aboutData->
credits().end(); ++it)
156 creditsPage->addPerson( (*it).name(), (*it).emailAddress(),
157 (*it).webAddress(), (*it).task() );
161 const TQValueList<TDEAboutTranslator> translatorList = aboutData->
translators();
163 if(translatorList.count() > 0)
165 TQString text =
"<qt>";
167 TQValueList<TDEAboutTranslator>::ConstIterator it;
168 for(it = translatorList.begin(); it != translatorList.end(); ++it)
170 text += TQString(
"<p>%1<br> "
171 "<a href=\"mailto:%2\">%2</a></p>")
173 .arg((*it).emailAddress())
174 .arg((*it).emailAddress());
181 if (!aboutData->
license().isEmpty() )