2 * QCPUFreq - a simple cpufreq GUI
3 * Copyright (C) 2010 Daniel Klaffenbach <danielklaffenbach@gmail.com>
5 * This program is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation, either version 3 of the License, or
8 * (at your option) any later version.
10 * This program is distributed in the hope that it will be useful,
11 * but WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13 * GNU General Public License for more details.
15 * You should have received a copy of the GNU General Public License
16 * along with this program. If not, see <http://www.gnu.org/licenses/>.
19 #include "loadpreset.h"
20 #include "ui_loadpreset.h"
22 LoadPreset::LoadPreset(QWidget *parent) :
24 ui(new Ui::LoadPreset)
28 connect(ui->loadDefault, SIGNAL(clicked()), this, SLOT(buttonLoadDefaultPressed()));
29 connect(ui->loadIdeal, SIGNAL(clicked()), this, SLOT(buttonLoadIdealPressed()));
30 connect(ui->loadLV, SIGNAL(clicked()), this, SLOT(buttonLoadLvPressed()));
31 connect(ui->loadULV, SIGNAL(clicked()), this, SLOT(buttonLoadUlvPressed()));
32 connect(ui->loadXLV, SIGNAL(clicked()), this, SLOT(buttonLoadXlvPressed()));
33 connect(ui->loadCustom, SIGNAL(clicked()), this, SLOT(buttonLoadCustomPressed()));
37 LoadPreset::~LoadPreset()
44 * This slot is called when the loadCustom button was pressed.
45 * It emits the "load" signal and hides the dialog.
47 * @emits: load("custom")
49 void LoadPreset::buttonLoadCustomPressed()
57 * This slot is called when the loadDefault button was pressed.
58 * It emits the "load" signal and hides the dialog.
60 * @emits: load("default")
62 void LoadPreset::buttonLoadDefaultPressed()
70 * This slot is called when the loadIdeal button was pressed.
71 * It emits the "load" signal and hides the dialog.
73 * @emits: load("ideal")
75 void LoadPreset::buttonLoadIdealPressed()
83 * This slot is called when the loadLV button was pressed.
84 * It emits the "load" signal and hides the dialog.
88 void LoadPreset::buttonLoadLvPressed()
96 * This slot is called when the loadULV button was pressed.
97 * It emits the "load" signal and hides the dialog.
101 void LoadPreset::buttonLoadUlvPressed()
109 * This slot is called when the loadXLV button was pressed.
110 * It emits the "load" signal and hides the dialog.
112 * @emits: load("xlv")
114 void LoadPreset::buttonLoadXlvPressed()