File: optionsbuild.cpp

package info (click to toggle)
httraqt 1.4.11-1
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, forky, sid, trixie
  • size: 2,780 kB
  • sloc: cpp: 7,970; sh: 177; makefile: 13
file content (92 lines) | stat: -rw-r--r-- 3,323 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
/***************************************************************************
 * C++ Implementation:                                                     *
 * Copyright (C) 2012-2017 by Eduard Kalinowski                            *
 * Germany, Lower Saxony, Hanover                                          *
 * eduard_kalinowski@yahoo.de                                              *
 *                                                                         *
 * HTTraQt is free software; may be distributed and/or modified under the  *
 * terms of the GNU General Public License version 3 as published by the   *
 * Free Software Foundation and appearing in the file LICENSE_GPLv3        *
 * included in the packaging of this file.                                 *
 *                                                                         *
 * 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 Lesser General Public        *
 * License along with HTTraQt. If not, see  http://www.gnu.org/licenses    *
 ***************************************************************************/

#include "includes/BuildStringDialog.h"
#include "includes/OptionsDialog.h"
#include "includes/optionsbuild.h"
#include "../main/includes/httraqt.h"

optionsBuild::optionsBuild(QWidget* parent, Qt::WindowFlags fl)
    : QWidget(parent, fl), Ui::buildForm()
{
    setupUi(this);

    this->parent = static_cast<OptionsDialog*>(parent);

    QString str = this->parent->translate(LISTDEF_3);
    QStringList strl = str.split("\n");

    buildForm::label1045->insertItems(0, strl);

    opts = &(static_cast<OptionsDialog*>(this->parent))->_tabTextInfos;

    initTextPoints();

    connect(buildForm::label1209, SIGNAL(clicked()), this, SLOT(callBuildStringDialog()));
}


optionsBuild::~optionsBuild()
{
}


void optionsBuild::initTextPoints()
{
    *opts << (trWidgets) {
        buildForm::label1192, _STRUCT_TYPE, "", LABEL, 0
    };
    *opts << (trWidgets) {
        buildForm::label1030, _DOS_NAMES, "Dos", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1034, _NO_ERR_PAG, "NoErrorPages", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1035, _NO_EXTERAL, "NoExternalPages", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1037, _HIDE_PASS, "NoPwdInPages", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1038, _HIDE_QUERY, "NoQueryStrings", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1036, _NOT_PURGE, "NoPurgeOldFiles", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1031, _ISO9660_NAMES, "ISO9660", CHECKBOX, 0
    };
    *opts << (trWidgets) {
        buildForm::label1045, -1, "Build", COMBOBOX, 0
    };
}


void optionsBuild::callBuildStringDialog()
{
    // einbauen aufruf vom dialog
    BuildStringDialog* bdial = new BuildStringDialog(this->parent->parent);
    bdial->exec();
}

/*$SPECIALIZATION$*/