Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members | Related Pages

version.cpp

Go to the documentation of this file.
00001 #include "version.h"
00002 #include "names.h"
00003 #include <qmessagebox.h>
00004 
00005 #include <qmultilineedit.h>
00006 #include <qlayout.h>
00007 #include <qtextview.h>
00008 class versionbox : public QDialog
00009 {
00010 public:
00011   versionbox(const QString& txt, QWidget* parent = NULL) : QDialog(parent, NULL, true)
00012   {
00013     setCaption(tr( "New Features" ));
00014     QVBoxLayout* v = new QVBoxLayout(this);
00015     /*
00016     QMultiLineEdit* box = new QMultiLineEdit(this);
00017     v->addWidget(box);
00018     box->setReadOnly(true);
00019     box->setWordWrap(QMultiLineEdit::WidgetWidth);
00020     box->setText(txt);
00021     */
00022     QTextView* box = new QTextView(this);
00023     v->addWidget(box);
00024     box->setText(txt);
00025 #ifdef USEQPE
00026     showMaximized();
00027 #endif
00028   }
00029 };
00030 
00031 bool CheckVersion(int& major, int& bkmktype, char& minor, QWidget* pnt)
00032 {
00033     if (
00034         (major != MAJOR)
00035         ||
00036         (bkmktype != BKMKTYPE)
00037         ||
00038         (minor != MINOR)
00039         )
00040     {
00041         major = MAJOR;
00042         bkmktype = BKMKTYPE;
00043         minor = MINOR;
00044         versionbox v(
00045                      "<h2>New Features</h2>"
00046                      "<h3>Support for custom version of rbmake</h3>"
00047                      "<h3>Mini scrollbar now acts more like a QT scrollbar.</h3>"
00048                      "<p>The handle can be dragged to jump to a \"random\" location and tapping to either side of the handle does page up/down</p>"
00049                      "<p>Line up/down is done by tapping in the margins to either end of the scroll bar (left/right margins for a horizontal scrollbar, top/bottom for a vertical scrollbar).</p>"
00050                      "<p>The toolbar now stays hidden if you hide it.</p>"
00051                      "<p>Better support for tables. Tapping on a table brings up a table viewer. The inline display of the linearised table can be toggled using the Inline Table option"
00052                      ,
00053                      pnt
00054                      );
00055         v.exec();
00056         return true;
00057     }
00058     else
00059     {
00060         return false;
00061     }
00062 }

Generated on Sat Nov 5 16:16:59 2005 for OPIE by  doxygen 1.4.2