File indexing completed on 2024-12-22 04:18:19
0001 /*************************************************************************** 0002 modelessinfobox.h: a dialog with a read-only 0003 texedit in it for displaing help modelessly. 0004 ------------------- 0005 begin : June, 2012 0006 copyright : (C) 2012 by C. Barth Netterfield 0007 email : netterfield@astro.utoronto.ca 0008 ***************************************************************************/ 0009 0010 /*************************************************************************** 0011 * * 0012 * This program is free software; you can redistribute it and/or modify * 0013 * it under the terms of the GNU General Public License as published by * 0014 * the Free Software Foundation; either version 2 of the License, or * 0015 * (at your option) any later version. * 0016 * * 0017 ***************************************************************************/ 0018 0019 #ifndef MODELESSINFOBOX_H 0020 #define MODELESSINFOBOX_H 0021 0022 #include <QDialog> 0023 0024 namespace Ui { 0025 class ModelessInfoBox; 0026 } 0027 0028 class ModelessInfoBox : public QDialog 0029 { 0030 Q_OBJECT 0031 0032 public: 0033 explicit ModelessInfoBox(QWidget *parent = 0); 0034 ~ModelessInfoBox(); 0035 0036 void setText(QString text); 0037 void setWidth(int charwidth); 0038 0039 private: 0040 Ui::ModelessInfoBox *ui; 0041 }; 0042 0043 #endif // MODELESSINFOBOX_H