codevieweroptionspage.cpp
00001 /*************************************************************************** 00002 codegenerationoptionspage.cpp - description 00003 ------------------- 00004 begin : Thu Jul 25 2002 00005 copyright : (C) 2002 by Luis De la Parra 00006 email : luis@delaparra.org 00007 ***************************************************************************/ 00008 00009 /*************************************************************************** 00010 * * 00011 * This program is free software; you can redistribute it and/or modify * 00012 * it under the terms of the GNU General Public License as published by * 00013 * the Free Software Foundation; either version 2 of the License, or * 00014 * (at your option) any later version. * 00015 * * 00016 * copyright (C) 2003-2007 * 00017 * Umbrello UML Modeller Authors <uml-devel@uml.sf.net> * 00018 ***************************************************************************/ 00019 00020 // own header 00021 #include "codevieweroptionspage.h" 00022 00023 // qt/kde includes 00024 #include <kdebug.h> 00025 #include <kfontdialog.h> 00026 #include <kcolorbutton.h> 00027 00028 00029 CodeViewerOptionsPage::CodeViewerOptionsPage( Settings::CodeViewerState options, QWidget *parent, const char *name ) 00030 :CodeViewerOptionsBase(parent,name) 00031 { 00032 init (options); 00033 } 00034 00035 CodeViewerOptionsPage::~CodeViewerOptionsPage() { } 00036 00037 void CodeViewerOptionsPage::init( Settings::CodeViewerState options ) 00038 { 00039 m_options = options; 00040 00041 // set widget stuff 00042 /* 00043 fontChooser->setFont( options.font ); 00044 selectColorButton -> setColor (options.selectedColor); 00045 fontColorButton -> setColor (options.fontColor); 00046 paperColorButton -> setColor (options.paperColor); 00047 editBlockColorButton -> setColor (options.editBlockColor); 00048 nonEditBlockColorButton -> setColor (options.nonEditBlockColor); 00049 umlObjectColorButton -> setColor (options.umlObjectColor); 00050 */ 00051 } 00052 00053 void CodeViewerOptionsPage::apply() { 00054 /* 00055 m_options.umlObjectColor = umlObjectColorButton->color(); 00056 m_options.editBlockColor = editBlockColorButton->color(); 00057 m_options.nonEditBlockColor = nonEditBlockColorButton->color(); 00058 m_options.selectedColor = selectColorButton->color(); 00059 m_options.paperColor = paperColorButton->color(); 00060 m_options.fontColor = fontColorButton->color(); 00061 m_options.font = fontChooser->font(); 00062 */ 00063 emit applyClicked(); 00064 } 00065 00066 Settings::CodeViewerState CodeViewerOptionsPage::getOptions() { 00067 return m_options; 00068 } 00069 00070 #include "codevieweroptionspage.moc"
