X-Git-Url: https://git.quassel-irc.org/?a=blobdiff_plain;ds=sidebyside;f=gui%2Fsettingspages.cpp;fp=gui%2Fsettingspages.cpp;h=b67fd3ae585407a3cde53ce920a5ee4bcfd02f67;hb=2a068c11e76c7b34afb64d443dbb1afd2e208aaa;hp=0000000000000000000000000000000000000000;hpb=12369966345e76e3bba92f64c84c940ef4d8d916;p=quassel.git diff --git a/gui/settingspages.cpp b/gui/settingspages.cpp new file mode 100644 index 00000000..b67fd3ae --- /dev/null +++ b/gui/settingspages.cpp @@ -0,0 +1,45 @@ +/*************************************************************************** + * Copyright (C) 2005-07 by The Quassel Team * + * devel@quassel-irc.org * + * * + * 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., * + * 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. * + ***************************************************************************/ + +#include "mainwin.h" +#include "settingspages.h" + +void MainWin::setupSettingsDlg() { + settingsDlg = new SettingsDlg(this); + settingsDlg->setVisible(false); + + settingsDlg->registerSettingsPage(new BufferManagementSettingsPage()); + //settingsDlg->registerSettingsPage(new ConnectionSettingsPage()); + +} + + +BufferManagementSettingsPage::BufferManagementSettingsPage() { + ui.setupUi(this); + + ui.tree->headerItem()->setText(0, tr("Buffers")); + setEnabled(false); +} + +ConnectionSettingsPage::ConnectionSettingsPage() { + ui.setupUi(this); + +} +