// ************************************************************************* // // Copyleft 2004-2007 Bruno PAGES . // // This file is part of the BOUML Uml Toolkit. // // 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. // // e-mail : bouml@free.fr // home : http://bouml.free.fr // // ************************************************************************* #ifndef SOURCEDIALOG_H #define SOURCEDIALOG_H #include #include "DialogUtil.h" class QLabel; class NumberedMultiLineEdit : public MultiLineEdit { Q_OBJECT public: NumberedMultiLineEdit(QWidget * w) : MultiLineEdit(w) { }; protected: virtual bool event(QEvent * e); signals: void cursorMoved(int l, int c); }; class SourceDialog : public QDialog { Q_OBJECT protected: NumberedMultiLineEdit * e; QLabel * lineColumn; QString path; bool & edited; unsigned & edition_number; static QSize previous_size; public: SourceDialog(QString p, bool & flg, unsigned & edn); virtual ~SourceDialog(); protected slots: void edit(); void updateCursorPos(int l, int c); }; #endif