Rev 13761 | Rev 14332 | Go to most recent revision | Details | Compare with Previous | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
13761 | cbradney | 1 | /* |
2 | For general Scribus (>=1.3.2) copyright and licensing information please refer |
||
3 | to the COPYING file provided with the program. Following this notice may exist |
||
4 | a copyright and/or license notice that predates the release of Scribus 1.3.2 |
||
5 | for which a new license (GPL+exception) is in place. |
||
6 | */ |
||
7 | |||
8 | #include "prefs_scrapbook.h" |
||
14091 | cbradney | 9 | #include "prefsstructs.h" |
13761 | cbradney | 10 | |
11 | Prefs_Scrapbook::Prefs_Scrapbook(QWidget* parent) |
||
14091 | cbradney | 12 | : Prefs_Pane(parent) |
13761 | cbradney | 13 | { |
14 | setupUi(this); |
||
14091 | cbradney | 15 | languageChange(); |
13761 | cbradney | 16 | } |
17 | |||
18 | Prefs_Scrapbook::~Prefs_Scrapbook() |
||
19 | { |
||
20 | } |
||
21 | |||
14091 | cbradney | 22 | void Prefs_Scrapbook::languageChange() |
23 | { |
||
24 | autoSendCopiedToScrapCheckBox->setToolTip( "<qt>" + tr( "" ) + "</qt>"); |
||
25 | keepCopiedAcrossSessionsCheckBox->setToolTip( "<qt>" + tr( "" ) + "</qt>" ); |
||
26 | itemCountKeptInScrapbookSpinBox->setToolTip( "<qt>" + tr("") + "</qt>"); |
||
27 | } |
||
28 | |||
29 | void Prefs_Scrapbook::restoreDefaults(struct ApplicationPrefs *prefsData) |
||
30 | { |
||
31 | |||
32 | autoSendCopiedToScrapCheckBox->setChecked(prefsData->scrapbookPrefs.doCopyToScrapbook); |
||
33 | keepCopiedAcrossSessionsCheckBox->setChecked(prefsData->scrapbookPrefs.persistentScrapbook); |
||
34 | itemCountKeptInScrapbookSpinBox->setValue(prefsData->scrapbookPrefs.numScrapbookCopies); |
||
35 | |||
36 | } |
||
37 | |||
38 | void Prefs_Scrapbook::saveGuiToPrefs(struct ApplicationPrefs *prefsData) const |
||
39 | { |
||
40 | prefsData->scrapbookPrefs.doCopyToScrapbook=autoSendCopiedToScrapCheckBox->isChecked(); |
||
41 | prefsData->scrapbookPrefs.persistentScrapbook=keepCopiedAcrossSessionsCheckBox->isChecked(); |
||
42 | prefsData->scrapbookPrefs.numScrapbookCopies=itemCountKeptInScrapbookSpinBox->value(); |
||
43 | } |
||
44 |