mirror of
https://github.com/transmission/transmission
synced 2025-03-04 02:28:03 +00:00
1. add the option the code to be used under GPLv2 or GPLv3; previously only GPLv2 was allowed 2. add the "proxy option" as described in GPLv3 so we can add future licenses without having to bulk-edit everything again :) 3. remove the awkward "exception for MIT code in Mac client" clause; it was unnecessary and confusing.
72 lines
1.6 KiB
C++
72 lines
1.6 KiB
C++
/*
|
|
* This file Copyright (C) 2009-2014 Mnemosyne LLC
|
|
*
|
|
* It may be used under the GNU Public License v2 or v3 licenses,
|
|
* or any future license endorsed by Mnemosyne LLC.
|
|
*
|
|
* $Id$
|
|
*/
|
|
|
|
|
|
#ifndef QTR_HIG_H
|
|
#define QTR_HIG_H
|
|
|
|
#include <QWidget>
|
|
|
|
class QCheckBox;
|
|
class QLabel;
|
|
class QString;
|
|
class QGridLayout;
|
|
class QLayout;
|
|
|
|
class HIG: public QWidget
|
|
{
|
|
Q_OBJECT
|
|
|
|
public:
|
|
|
|
enum
|
|
{
|
|
PAD_SMALL = 3,
|
|
PAD = 6,
|
|
PAD_BIG = 12,
|
|
PAD_LARGE = PAD_BIG
|
|
};
|
|
|
|
public:
|
|
|
|
HIG (QWidget * parent = 0);
|
|
virtual ~HIG ();
|
|
|
|
public:
|
|
|
|
void addSectionDivider ();
|
|
void addSectionTitle (const QString&);
|
|
void addSectionTitle (QWidget*);
|
|
void addSectionTitle (QLayout*);
|
|
void addWideControl (QLayout *);
|
|
void addWideControl (QWidget *);
|
|
QCheckBox* addWideCheckBox (const QString&, bool isChecked);
|
|
QLabel* addLabel (const QString&);
|
|
QLabel* addTallLabel (const QString&);
|
|
void addLabel (QWidget *);
|
|
void addTallLabel (QWidget *);
|
|
void addControl (QWidget *);
|
|
void addControl (QLayout *);
|
|
QLabel* addRow (const QString & label, QWidget * control, QWidget * buddy=0);
|
|
QLabel* addRow (const QString & label, QLayout * control, QWidget * buddy);
|
|
void addRow (QWidget * label, QWidget * control, QWidget * buddy=0);
|
|
void addRow (QWidget * label, QLayout * control, QWidget * buddy);
|
|
QLabel* addTallRow (const QString & label, QWidget * control, QWidget * buddy=0);
|
|
void finish ();
|
|
|
|
private:
|
|
QLayout* addRow (QWidget* w);
|
|
|
|
private:
|
|
int myRow;
|
|
bool myHasTall;
|
|
QGridLayout * myGrid;
|
|
};
|
|
|
|
#endif // QTR_HIG_H
|