⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 aboutdialog.cpp

📁 thes is veer good (ksmoutTool)
💻 CPP
📖 第 1 页 / 共 2 页
字号:
/*************************************************************************** *   Copyright (C) 2004 by KSmoothDock team                                * *   dangvd@yahoo.com                                                      * *                                                                         * *   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.             * ***************************************************************************//// @TODO: re-format the file according to KSmoothDock v4.x's coding style#include "aboutdialog.h"#include <kdialog.h>#include <klocale.h>#include <kurllabel.h>#include <kprocess.h>#include <qvariant.h>#include <qpushbutton.h>#include <qlabel.h>#include <qtabwidget.h>#include <qwidget.h>#include <qtextedit.h>#include <qlayout.h>#include <qtooltip.h>#include <qwhatsthis.h>#include "aboutdialog.h"/* *  Constructs a AboutDialog as a child of 'parent', with the *  name 'name' and widget flags set to 'f'. * *  The dialog will by default be modeless, unless you set 'modal' to *  TRUE to construct a modal dialog. */AboutDialog::AboutDialog( QWidget* parent, const char* name, bool modal, WFlags fl )    : QDialog( parent, name, modal, fl ){    if ( !name )	setName( "AboutDialog" );    pushButton5 = new QPushButton( this, "pushButton5" );    pushButton5->setGeometry( QRect( 210, 360, 110, 40 ) );    textLabel2 = new QLabel( this, "textLabel2" );    textLabel2->setGeometry( QRect( 20, 10, 380, 40 ) );    tabWidget3 = new QTabWidget( this, "tabWidget3" );    tabWidget3->setGeometry( QRect( 20, 60, 481, 281 ) );    tab = new QWidget( tabWidget3, "tab" );    textLabel3 = new QLabel( tab, "textLabel3" );    textLabel3->setGeometry( QRect( 60, 60, 310, 80 ) );    kURLLabel1 = new KURLLabel( tab, "kURLLabel1" );    kURLLabel1->setGeometry( QRect( 60, 130, 201, 31 ) );    tabWidget3->insertTab( tab, QString("") );    tab_2 = new QWidget( tabWidget3, "tab_2" );    textEdit1 = new QTextEdit( tab_2, "textEdit1" );    textEdit1->setEnabled( TRUE );    textEdit1->setGeometry( QRect( 9, 10, 461, 231 ) );    textEdit1->setPaletteBackgroundColor( QColor( 238, 238, 230 ) );    textEdit1->setTextFormat( QTextEdit::RichText );    textEdit1->setWordWrap( QTextEdit::WidgetWidth );    tabWidget3->insertTab( tab_2, QString("") );    TabPage = new QWidget( tabWidget3, "TabPage" );    textEdit1_2 = new QTextEdit( TabPage, "textEdit1_2" );    textEdit1_2->setEnabled( TRUE );    textEdit1_2->setGeometry( QRect( 10, 10, 461, 231 ) );    textEdit1_2->setPaletteBackgroundColor( QColor( 238, 238, 230 ) );    textEdit1_2->setTextFormat( QTextEdit::RichText );    textEdit1_2->setWordWrap( QTextEdit::WidgetWidth );    tabWidget3->insertTab( TabPage, QString("") );    TabPage_2 = new QWidget( tabWidget3, "TabPage_2" );    textEdit2 = new QTextEdit( TabPage_2, "textEdit2" );    textEdit2->setGeometry( QRect( 10, 10, 461, 231 ) );    textEdit2->setPaletteBackgroundColor( QColor( 238, 238, 230 ) );    textEdit2->setWordWrap( QTextEdit::NoWrap );    tabWidget3->insertTab( TabPage_2, QString("") );    languageChange();    resize( QSize(520, 411).expandedTo(minimumSizeHint()) );    clearWState( WState_Polished );    // signals and slots connections    connect( pushButton5, SIGNAL( clicked() ), this, SLOT( pushButton5_clicked() ) );		connect( kURLLabel1, SIGNAL(leftClickedURL(const QString&)), this, SLOT(goToHomepage(const QString&)));}/* *  Destroys the object and frees any allocated resources */AboutDialog::~AboutDialog(){    // no need to delete child widgets, Qt does it all for us}/* *  Sets the strings of the subwidgets using the current *  language. */void AboutDialog::languageChange(){    setCaption( tr2i18n( "About KSmoothDock" ) );    pushButton5->setText( tr2i18n( "&OK" ) );    pushButton5->setAccel( QKeySequence( tr2i18n( "Alt+O" ) ) );    textLabel2->setText( tr2i18n( "<b>KSmoothDock 4.5 (for KDE 3.2 and above)</b>" ) );    textLabel3->setText( tr2i18n( "KSmoothDock - a cool KDE desktop panel\n""\n""(C) 2003-2007 The KSmoothDock team" ) );    kURLLabel1->setText( tr2i18n( "http://ksmoothdock.sf.net" ) );    kURLLabel1->setProperty( "url", tr2i18n( "http://ksmoothdock.sf.net" ) );    tabWidget3->changeTab( tab, tr2i18n( "&About" ) );    textEdit1->setText( tr2i18n( "Viet Dung Dang<br>\n""<blockquote>\n""<font color=\"#0000ff\">dangvd@yahoo.com</font><br>\n""Project founder and main developer<br><br>\n""</blockquote>\n""Jon Pruett<br>\n""<blockquote>\n""Website maintenance, documentation<br><br>\n""</blockquote>\n""Narcis Tesa<br>\n""<blockquote>\n""General enhancements<br><br>\n""</blockquote>\n""Bernardo Hung<br>\n""<blockquote>\n""Optimisations<br><br>\n""</blockquote>\n""Adrian Rodriguez<br>\n""<blockquote>\n""General enhancements, support<br><br>\n""</blockquote>\n""Sarah Elan<br>\n""<blockquote>\n""General enhancements<br><br>\n""</blockquote>\n""Matias Fernandez<br>\n""<blockquote>\n""General enhancements, bug fixes<br><br>\n""</blockquote>\n""Triskelios<br>\n""<blockquote>\n""Patches<br><br>\n""</blockquote>\n""" ) );    tabWidget3->changeTab( tab_2, tr2i18n( "A&uthors" ) );    textEdit1_2->setText( tr2i18n( "Kicker authors<br>\n""<blockquote>\n""KSmoothDock uses ShowDesktop and DatePicker classes from Kicker's source code<br>\n""</blockquote>\n""<br>KoolDock authors (Matias Fernandez and Francisco Guidi)<br><br>\n""<blockquote>\n""KSmoothDock's ToolTip class is based on xosd<br> class from KoolDock's source code<br>\n""</blockquote>\n""All other people who have contributed to or supported this project." ) );    tabWidget3->changeTab( TabPage, tr2i18n( "&Thanks To" ) );    textEdit2->setText( tr2i18n( "(C) 2003-2006, The KSmoothDock team\n""\n""This program is distributed under the terms of the GPL v2.\n""\n""		    GNU GENERAL PUBLIC LICENSE\n""		       Version 2, June 1991\n""\n"" Copyright (C) 1989, 1991 Free Software Foundation, Inc.\n""               59 Temple Place, Suite 330, Boston, MA 02111-1307, USA\n"" Everyone is permitted to copy and distribute verbatim copies\n"" of this license document, but changing it is not allowed.\n""\n""			    Preamble\n""\n""  The licenses for most software are designed to take away your\n""freedom to share and change it.  By contrast, the GNU General Public\n""License is intended to guarantee your freedom to share and change free\n""software--to make sure the software is free for all its users.  This\n""General Public License applies to most of the Free Software\n""Foundation's software and to any other program whose authors commit to\n""using it.  (Some other Free Software Foundation software is covered by\n""the GNU Library General Public License instead.)  You can apply it to\n""your programs, too.\n""\n""  When we speak of free software, we are referring to freedom, not\n""price.  Our General Public Licenses are designed to make sure that you\n""have the freedom to distribute copies of free software (and charge for\n""this service if you wish), that you receive source code or can get it\n""if you want it, that you can change the software or use pieces of it\n""in new free programs; and that you know you can do these things.\n""\n""  To protect your rights, we need to make restrictions that forbid\n""anyone to deny you these rights or to ask you to surrender the rights.\n""These restrictions translate to certain responsibilities for you if you\n""distribute copies of the software, or if you modify it.\n""\n""  For example, if you distribute copies of such a program, whether\n""gratis or for a fee, you must give the recipients all the rights that\n""you have.  You must make sure that they, too, receive or can get the\n""source code.  And you must show them these terms so they know their\n""rights.\n""\n""  We protect your rights with two steps: (1) copyright the software, and\n""(2) offer you this license which gives you legal permission to copy,\n""distribute and/or modify the software.\n""\n""  Also, for each author's protection and ours, we want to make certain\n""that everyone understands that there is no warranty for this free\n""software.  If the software is modified by someone else and passed on, we\n""want its recipients to know that what they have is not the original, so\n""that any problems introduced by others will not reflect on the original\n""authors' reputations.\n""\n""  Finally, any free program is threatened constantly by software\n""patents.  We wish to avoid the danger that redistributors of a free\n""program will individually obtain patent licenses, in effect making the\n""program proprietary.  To prevent this, we have made it clear that any\n""patent must be licensed for everyone's free use or not licensed at all.\n""\n""  The precise terms and conditions for copying, distribution and\n""modification follow.\n"" \n""		    GNU GENERAL PUBLIC LICENSE\n""   TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION\n""\n""  0. This License applies to any program or other work which contains\n""a notice placed by the copyright holder saying it may be distributed\n""under the terms of this General Public License.  The \"Program\", below,\n""refers to any such program or work, and a \"work based on the Program\"\n""means either the Program or any derivative work under copyright law:\n""that is to say, a work containing the Program or a portion of it,\n""either verbatim or with modifications and/or translated into another\n""language.  (Hereinafter, translation is included without limitation in\n""the term \"modification\".)  Each licensee is addressed as \"you\".\n""\n""Activities other than copying, distribution and modification are not\n""covered by this License; they are outside its scope.  The act of\n""running the Program is not restricted, and the output from the Program\n""is covered only if its contents constitute a work based on the\n""Program (independent of having been made by running the Program).\n""Whether that is true depends on what the Program does.\n""\n""  1. You may copy and distribute verbatim copies of the Program's\n""source code as you receive it, in any medium, provided that you\n""conspicuously and appropriately publish on each copy an appropriate\n""copyright notice and disclaimer of warranty; keep intact all the\n""notices that refer to this License and to the absence of any warranty;\n""and give any other recipients of the Program a copy of this License\n""along with the Program.\n""\n""You may charge a fee for the physical act of transferring a copy, and\n""you may at your option offer warranty protection in exchange for a fee.\n""\n"

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -