//**************************************************************************** //! \file wcommentui.cpp //! \date 30-10-2004 //**************************************************************************** // This file is part of Weird Reader. // // The Weird Reader 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. // // The Weird Reader 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 Weird Reader; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA //**************************************************************************** #include "wcommentui.hpp" //*************************************************************************** // WCommentUI methods //*************************************************************************** // public methods //*************************************************************************** //*************************************************************************** // public slots //*************************************************************************** //*************************************************************************** void WCommentUI::insertComment( int para, int) //*************************************************************************** { bool ok; QString text = KInputDialog::getMultiLineText("Comment Editor", "Enter your comment:", QString::null, &ok ); if ( ok && !text.isEmpty() ) { tH->comments.push_back( *( new WCommentObject( text, para))); tH->sort(); }else { } } //*************************************************************************** void WCommentUI::deleteComment() //*************************************************************************** { } //*************************************************************************** void WCommentUI::browseComment() //*************************************************************************** { for( cit=tH->comments.begin(); cit!=tH->comments.end(); ++cit)std::cout<<*cit<