Changeset 8367


Ignore:
Timestamp:
May 8, 2009, 6:52:06 PM (12 years ago)
Author:
charles
Message:

(trunk libT) license tweaks

Location:
trunk
Files:
2 added
5 edited

Legend:

Unmodified
Added
Removed
  • trunk/COPYING

    r7612 r8367  
    1 The Transmission binaries and most of its source code are
    2 distributed under the MIT license.
     1Most of Transmission is covered by the MIT license.
    32
    43Some files are copyrighted by Charles Kerr and are covered by
  • trunk/gtk/main.c

    r8319 r8367  
    6666 #define SHOW_LICENSE
    6767static const char * LICENSE =
    68     "The Transmission binaries and most of its source code is distributed "
    69     "license. "
     68    "Most of Transmission is covered by the MIT license."
    7069    "\n\n"
    7170    "Some files are copyrighted by Charles Kerr and are covered by "
  • trunk/qt/about.cc

    r8297 r8367  
    2727#include "about.h"
    2828#include "hig.h"
     29#include "license.h"
    2930
    3031AboutDialog :: AboutDialog( QWidget * parent ):
    31     QDialog( parent, Qt::Dialog )
     32    QDialog( parent, Qt::Dialog ),
     33    myLicenseDialog( new LicenseDialog( this ) )
    3234{
    3335    setWindowTitle( tr( "About Transmission" ) );
     
    7476    b = new QPushButton( tr( "&License" ), this );
    7577    box->addButton( b, QDialogButtonBox::ActionRole );
    76     connect( b, SIGNAL(clicked()), this, SLOT(showLicense()) );
     78    connect( b, SIGNAL(clicked()), myLicenseDialog, SLOT(show()) );
    7779
    7880    box->addButton( QDialogButtonBox::Close );
     
    9193}
    9294
    93 void
    94 AboutDialog :: showLicense( )
    95 {
    96     QMessageBox::about( this, tr( "License" ),
    97         "The Transmission binaries and most of its source code is distributed "
    98         "license. "
    99         "\n\n"
    100         "Some files are copyrighted by Charles Kerr and are covered by "
    101         "the GPL version 2.  Works owned by the Transmission project "
    102         "are granted a special exemption to clause 2(b) so that the bulk "
    103         "of its code can remain under the MIT license.  This exemption does "
    104         "not extend to original or derived works not owned by the "
    105         "Transmission project. "
    106         "\n\n"
    107         "Permission is hereby granted, free of charge, to any person obtaining "
    108         "a copy of this software and associated documentation files (the "
    109         "'Software'), to deal in the Software without restriction, including "
    110         "without limitation the rights to use, copy, modify, merge, publish, "
    111         "distribute, sublicense, and/or sell copies of the Software, and to "
    112         "permit persons to whom the Software is furnished to do so, subject to "
    113         "the following conditions: "
    114         "\n\n"
    115         "The above copyright notice and this permission notice shall be included "
    116         "in all copies or substantial portions of the Software. "
    117         "\n\n"
    118         "THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND, "
    119         "EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF "
    120         "MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. "
    121         "IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY "
    122         "CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, "
    123         "TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE "
    124         "SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE." );
    125 }
    126 
  • trunk/qt/about.h

    r8297 r8367  
    2020        Q_OBJECT
    2121
     22    private:
     23        QDialog * myLicenseDialog;
     24
    2225    public:
    2326        AboutDialog( QWidget * parent = 0 );
     
    2932    public slots:
    3033        void showCredits( );
    31         void showLicense( );
    3234
    3335};
  • trunk/qt/qtr.pro

    r8323 r8367  
    2424RESOURCES += application.qrc
    2525SOURCES += about.cc app.cc details.cc file-tree.cc filters.cc hig.cc \
    26            mainwin.cc make-dialog.cc options.cc prefs.cc prefs-dialog.cc \
    27            qticonloader.cc session.cc session-dialog.cc squeezelabel.cc \
    28            stats-dialog.cc torrent.cc torrent-delegate.cc \
     26           license.cc mainwin.cc make-dialog.cc options.cc prefs.cc \
     27           prefs-dialog.cc qticonloader.cc session.cc session-dialog.cc \
     28           squeezelabel.cc stats-dialog.cc torrent.cc torrent-delegate.cc \
    2929           torrent-delegate-min.cc torrent-filter.cc torrent-model.cc \
    3030           triconpushbutton.cc utils.cc watchdir.cc
Note: See TracChangeset for help on using the changeset viewer.