00001 /********************************************************************** 00002 DefaultEditTab - Simple implementation of AbstractEditTab 00003 00004 Copyright (C) 2011 by David Lonie 00005 00006 This library is free software; you can redistribute it and/or modify 00007 it under the terms of the GNU Library General Public License as 00008 published by the Free Software Foundation; either version 2.1 of the 00009 License, or (at your option) any later version. 00010 00011 This program is distributed in the hope that it will be useful, 00012 but WITHOUT ANY WARRANTY; without even the implied warranty of 00013 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 00014 GNU General Public icense for more details. 00015 ***********************************************************************/ 00016 00017 #include <globalsearch/ui/defaultedittab.h> 00018 00019 #include "ui_defaultedittab.h" 00020 00021 namespace GlobalSearch { 00022 00023 DefaultEditTab::DefaultEditTab(AbstractDialog *dialog, 00024 OptBase *opt) 00025 : AbstractEditTab(dialog, opt), 00026 ui(new Ui::DefaultEditTab) 00027 { 00028 ui->setupUi(m_tab_widget); 00029 00030 ui_cb_preopt = ui->cb_preopt; 00031 ui_combo_queueInterfaces = ui->combo_queueInterfaces; 00032 ui_combo_optimizers = ui->combo_optimizers; 00033 ui_combo_templates = ui->combo_templates; 00034 ui_edit_user1 = ui->edit_user1; 00035 ui_edit_user2 = ui->edit_user2; 00036 ui_edit_user3 = ui->edit_user3; 00037 ui_edit_user4 = ui->edit_user4; 00038 ui_list_edit = ui->list_edit; 00039 ui_list_optStep = ui->list_optStep; 00040 ui_push_add = ui->push_add; 00041 ui_push_help = ui->push_help; 00042 ui_push_loadScheme = ui->push_loadScheme; 00043 ui_push_optimizerConfig = ui->push_optimizerConfig; 00044 ui_push_preoptConfig = ui->push_preoptConfig; 00045 ui_push_queueInterfaceConfig 00046 = ui->push_queueInterfaceConfig; 00047 ui_push_remove = ui->push_remove; 00048 ui_push_saveScheme = ui->push_saveScheme; 00049 ui_edit_edit = ui->edit_edit; 00050 00051 // don't show the preopt cb/pushbutton by default. setVisible in 00052 // subclasses if needed. 00053 ui_cb_preopt->setVisible(false); 00054 ui_push_preoptConfig->setVisible(false); 00055 } 00056 00057 DefaultEditTab::~DefaultEditTab() 00058 { 00059 delete ui; 00060 } 00061 00062 void DefaultEditTab::initialize() 00063 { 00064 AbstractEditTab::initialize(); 00065 } 00066 00067 }