You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
76 lines
2.1 KiB
76 lines
2.1 KiB
15 years ago
|
/*
|
||
13 years ago
|
* tdeprintfax - a small fax utility
|
||
15 years ago
|
* Copyright (C) 2001 Michael Goffioul
|
||
|
*
|
||
|
* This program is free software; you can redistribute it and/or modify
|
||
|
* it under the terms of the GNU General Public License as published by
|
||
|
* the Free Software Foundation; either version 2 of the License, or
|
||
|
* (at your option) any later version.
|
||
|
*
|
||
|
* 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 General Public License
|
||
|
* along with this program; if not, write to the Free Software
|
||
|
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||
|
*
|
||
|
*/
|
||
|
|
||
|
#include "configdlg.h"
|
||
|
#include "confgeneral.h"
|
||
|
#include "conffax.h"
|
||
|
#include "confsystem.h"
|
||
|
#include "conffilters.h"
|
||
|
|
||
15 years ago
|
#include <tqvbox.h>
|
||
15 years ago
|
#include <klocale.h>
|
||
|
#include <kiconloader.h>
|
||
|
|
||
15 years ago
|
ConfigDlg::ConfigDlg(TQWidget *parent, const char *name)
|
||
15 years ago
|
: KDialogBase(IconList, i18n("Configuration"), Ok|Cancel, Ok, parent, name, true)
|
||
|
{
|
||
14 years ago
|
TQVBox *page1 = addVBoxPage(i18n("Personal"), i18n("Personal Settings"), DesktopIcon("kdmconfig"));
|
||
15 years ago
|
m_general = new ConfGeneral(page1, "Personal");
|
||
|
|
||
14 years ago
|
TQVBox *page2 = addVBoxPage(i18n("Page setup"), i18n("Page Setup"), DesktopIcon("editcopy"));
|
||
15 years ago
|
m_fax = new ConfFax(page2, "Fax");
|
||
|
|
||
13 years ago
|
TQVBox *page3 = addVBoxPage(i18n("System"), i18n("Fax System Selection"), DesktopIcon("tdeprintfax"));
|
||
15 years ago
|
m_system = new ConfSystem(page3, "System");
|
||
|
|
||
14 years ago
|
TQVBox *page4 = addVBoxPage(i18n("Filters"), i18n("Filters Configuration"), DesktopIcon("filter"));
|
||
15 years ago
|
m_filters = new ConfFilters(page4, "Filters");
|
||
|
|
||
|
resize(450, 300);
|
||
|
}
|
||
|
|
||
|
void ConfigDlg::load()
|
||
|
{
|
||
|
m_general->load();
|
||
|
m_fax->load();
|
||
|
m_system->load();
|
||
|
m_filters->load();
|
||
|
}
|
||
|
|
||
|
void ConfigDlg::save()
|
||
|
{
|
||
|
m_general->save();
|
||
|
m_fax->save();
|
||
|
m_system->save();
|
||
|
m_filters->save();
|
||
|
}
|
||
|
|
||
15 years ago
|
bool ConfigDlg::configure(TQWidget *parent)
|
||
15 years ago
|
{
|
||
|
ConfigDlg dlg(parent);
|
||
|
dlg.load();
|
||
|
if (dlg.exec())
|
||
|
{
|
||
|
dlg.save();
|
||
|
return true;
|
||
|
}
|
||
|
return false;
|
||
|
}
|