]> git.lyx.org Git - lyx.git/commitdiff
index dialog, citation fixes, finish about dialog
authorJohn Levon <levon@movementarian.org>
Tue, 21 Aug 2001 01:14:54 +0000 (01:14 +0000)
committerJohn Levon <levon@movementarian.org>
Tue, 21 Aug 2001 01:14:54 +0000 (01:14 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@2563 a592a061-630c-0410-9148-cb99ea01b6c8

15 files changed:
src/frontends/qt2/ChangeLog
src/frontends/qt2/Dialogs.C
src/frontends/qt2/Makefile.am
src/frontends/qt2/QAbout.C
src/frontends/qt2/QCitationDialog.C
src/frontends/qt2/QIndex.C
src/frontends/qt2/QIndex.h
src/frontends/qt2/QIndexDialog.C
src/frontends/qt2/QIndexDialog.h
src/frontends/qt2/Qt2Base.C
src/frontends/qt2/Qt2Base.h
src/frontends/qt2/ui/Makefile.am
src/frontends/qt2/ui/QAboutDialog.ui
src/frontends/qt2/ui/QCitationDialog.ui
src/frontends/qt2/ui/QIndexDialog.ui

index 7ccb03f9d04ecc81b4bf10af9855985efd38c9b0..fd9b2d087bc5e36a6b32bdd8d8ac94dd403fec88 100644 (file)
@@ -1,3 +1,22 @@
+2001-08-21  John Levon  <moz@compsoc.man.ac.uk>
+
+       * Dialogs.C: add QIndex
+
+       * ui/Makefile.am:
+       * Makefile.am: fix build
+       * ui/QAboutDialog.ui:
+       * QAbout.C: finish dialog
+
+       * ui/QCitationDialog.ui:
+       * QCitationDialog.C: BC fixes
+       * ui/QIndexDialog.ui: 
+       * QIndex.h:
+       * QIndex.C: 
+       * QIndexDialog.h:
+       * QIndexDialog.C: got index dialog working
+
 2001-08-19  John Levon  <moz@compsoc.man.ac.uk>
 
        * all files: enormous naming re-jig and tidy
index 27178b705d46000eeb85373d2030dbb669f63e94..9b4e8e3058f477a4550071c026f5e53ed87b85fd 100644 (file)
@@ -19,6 +19,7 @@
 #include "QAbout.h"
 #include "QCharacter.h"
 #include "QCitation.h"
+#include "QIndex.h"
 #include "QParagraph.h"
 #include "QPrint.h"
 #include "QSearch.h"
@@ -38,8 +39,9 @@
 #include "../xforms/FormTabular.h"
 
 // the controllers
-#include "controllers/ControlCitation.h"
 #include "controllers/ControlAboutlyx.h"
+#include "controllers/ControlCitation.h"
+#include "controllers/ControlIndex.h"
 #include "controllers/ControlSplash.h"
 #if 0
 #include "controllers/ControlCopyright.h"
@@ -56,7 +58,6 @@
 #include "controllers/ControlFloat.h"
 #include "controllers/ControlGraphics.h"
 #include "controllers/ControlInclude.h"
-#include "controllers/ControlIndex.h"
 #include "controllers/ControlLabel.h"
 #include "controllers/ControlLog.h"
 #include "controllers/ControlMinipage.h"
@@ -85,6 +86,7 @@ Dialogs::Dialogs(LyXView * lv)
        // dialogs that have been converted to new scheme
        add(new GUICitation<QCitation, qt2BC>(*lv, *this));
        add(new GUIAboutlyx<QAbout, qt2BC>(*lv, *this));
+       add(new GUIIndex<QIndex, qt2BC>(*lv, *this));
 
        // reduce the number of connections needed in
        // dialogs by a simple connection here.
index f0ad5edcb4cf6c61c8043c255d4b5e0096e1a510..afbd48adde6caac8ca45ed107d0a8b659de49119 100644 (file)
@@ -13,11 +13,12 @@ DISTCLEANFILES = $(BUILTSOURCES) *.orig *.rej *~ *.bak core
 
 include Makefile.dialogs
 
-libqt2_la_DEPENDENCIES = ui/libqt2ui.la moc/libqt2moc.la
+libqt2_la_DEPENDENCIES = ui/libqt2ui.la moc/libqt2moc.la ui/moc/libqt2uimoc.la
  
 libqt2_la_OBJADD = \
        ui/libqt2ui.la \
        moc/libqt2moc.la \
+       ui/moc/libqt2uimoc.la \
        ../controllers/ButtonControllerBase.lo \
        ../xforms/combox.lo \
        ../xforms/Color.lo \
index f78298ca661ec8de5978ad1ea510c7e039bfe4f9..c2de642c35e841f985d819c0c21c96a3e173fd29 100644 (file)
@@ -8,11 +8,15 @@
 
 #include <config.h>
 
+#include "support/lstrings.h"
+#include "Lsstream.h"
+#include "debug.h"
 #include "gettext.h"
 #include "QAboutDialog.h"
  
 #include <qlabel.h>
 #include <qpushbutton.h>
+#include <qtextview.h>
 #include "QtLyXView.h"
  
 #include "ButtonControllerBase.h"
@@ -37,7 +41,28 @@ void QAbout::build()
        dialog_->copyrightLA->setText(controller().getCopyright().c_str());
        dialog_->licenseLA->setText(controller().getLicense().c_str());
        dialog_->disclaimerLA->setText(controller().getDisclaimer().c_str());
+       dialog_->versionLA->setText(controller().getVersion().c_str()); 
+       stringstream in;
+       controller().getCredits(in);
 
+       istringstream ss(in.str().c_str());
+       string s;
+       string out;
+       while (getline(ss, s)) {
+               if (prefixIs(s, "@b"))
+                       out += "<b>" + s.substr(2) + "</b>";
+               else if (prefixIs(s, "@i"))
+                       out += "<i>" + s.substr(2) + "</i>";
+               else
+                       out += s;
+               out += "<br>";
+       }
+       dialog_->creditsTV->setText(out.c_str());
        // Manage the cancel/close button
        bc().setCancel(dialog_->closePB);
        bc().refresh();
index bb0e07c516ec8f14f6275d22725b4fbec20f9899..70e6e8254e29054d37e0e88d7af1aa74fc992451 100644 (file)
@@ -140,6 +140,7 @@ void QCitationDialog::slotAddClicked()
 
        form_->setBibButtons(QCitation::OFF);
        form_->setCiteButtons(QCitation::ON);
+       form_->changed();
 }
 
 
@@ -158,6 +159,7 @@ void QCitationDialog::slotDelClicked()
 
        form_->setBibButtons(QCitation::ON);
        form_->setCiteButtons(QCitation::OFF);
+       form_->changed();
 }
 
 
@@ -181,6 +183,7 @@ void QCitationDialog::slotUpClicked()
        citeLB->setSelected(sel - 1, true);
        form_->citekeys.insert(it - 1, tmp);
        form_->setCiteButtons(QCitation::ON);
+       form_->changed();
 }
 
 
@@ -204,6 +207,7 @@ void QCitationDialog::slotDownClicked()
        citeLB->setSelected(sel + 1, true);
        form_->citekeys.insert(it + 1, tmp);
        form_->setCiteButtons(QCitation::ON);
+       form_->changed();
 }
 
 
@@ -264,14 +268,17 @@ void QCitationDialog::doFind(biblio::Direction const dir)
 
 void QCitationDialog::slotCitationStyleSelected( int )
 {
+       form_->changed();
 }
 
 
 void QCitationDialog::slotTextBeforeReturn()
 {
+       form_->changed();
 }
 
 
 void QCitationDialog::slotTextAfterReturn()
 {
+       form_->changed();
 }
index 5769ececd8db2bcd324cc4692a4da8e042a125b9..a59c75ddceaecdffbea70375097420b45fa1ae66 100644 (file)
@@ -13,6 +13,7 @@
 #include "BufferView.h"
 
 #include "Dialogs.h"
+#include "qt2BC.h"
 #include "QIndex.h"
 #include "gettext.h"
 #include "buffer.h"
 #include <qlineedit.h>
 #include <qpushbutton.h>
 
-QIndex::QIndex(LyXView *v, Dialogs *d)
-       : dialog_(0), lv_(v), d_(d), inset_(0), h_(0), u_(0), ih_(0)
+typedef Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > base_class;
+QIndex::QIndex(ControlIndex & c)
+       : base_class(c, _("Index"))
 {
-       d->showIndex.connect(slot(this, &QIndex::showIndex));
-       d->createIndex.connect(slot(this, &QIndex::createIndex));
 }
 
 
 QIndex::~QIndex()
 {
-       delete dialog_;
 }
 
 
-void QIndex::showIndex(InsetCommand * const inset)
+void QIndex::build()
 {
-       // FIXME: when could inset be 0 here ?
-       if (inset==0)
-               return;
-
-       inset_ = inset;
-       readonly = lv_->buffer()->isReadonly();
-       //FIXME ih_ = inset_->hide.connect(slot(this,&QIndex::hide));
-       params = inset->params();
-       
-       show();
-}
+       dialog_.reset(new QIndexDialog(this));
 
-void QIndex::createIndex(string const & arg)
-{
-       // we could already be showing a URL, clear it out
-       if (inset_)
-               close();
-       readonly = lv_->buffer()->isReadonly();
-       params.setFromString(arg);
-       show();
+       bc().setOK(dialog_->okPB);
+       bc().setCancel(dialog_->cancelPB);
+       bc().addReadOnly(dialog_->keywordED);
 }
 
  
 void QIndex::update()
 {
-       dialog_->keywordED->setText(params.getContents().c_str());
+       dialog_->keywordED->setText(controller().params().getContents().c_str());
 
        if (readonly) {
                dialog_->keywordED->setFocusPolicy(QWidget::NoFocus);
@@ -84,47 +67,5 @@ void QIndex::apply()
        if (readonly)
                return;
 
-       params.setContents(dialog_->keywordED->text().latin1());
-
-       if (inset_ != 0) {
-               if (params != inset_->params()) {
-                       inset_->setParams(params);
-                       lv_->view()->updateInset(inset_, true);
-               }
-       } else
-               lv_->getLyXFunc()->dispatch(LFUN_INDEX_INSERT, params.getAsString().c_str());
-}
-
-void QIndex::show()
-{
-       if (!dialog_)
-               dialog_ = new QIndexDialog(this, 0, _("LyX: Index"), false);
-       if (!dialog_->isVisible()) {
-               h_ = d_->hideBufferDependent.connect(slot(this, &QIndex::hide));
-               //u_ = d_->updateBufferDependent.connect(slot(this, &QIndex::update));
-       }
-
-       dialog_->raise();
-       dialog_->setActiveWindow();
-       update();
-       dialog_->show();
-}
-
-
-void QIndex::close()
-{
-       h_.disconnect();
-       u_.disconnect();
-       ih_.disconnect();
-       inset_ = 0;
-}
-
-void QIndex::hide()
-{
-       dialog_->hide();
-       close();
+       controller().params().setContents(dialog_->keywordED->text().latin1());
 }
index 6611b05e7e26457598859b5782ee9a45c4b67491..f0f71d2871b2207e3889dcd833fb840c0cebccdf 100644 (file)
 #ifndef QINDEX_H
 #define QINDEX_H
 
-#include "DialogBase.h"
+#include "Qt2Base.h"
+#include "ControlIndex.h"
 #include "LString.h"
 #include "boost/utility.hpp"
-#include "insets/insetindex.h"
 
 class Dialogs;
 class LyXView;
 class QIndexDialog;
 
-class QIndex : public DialogBase {
-public: 
-       QIndex(LyXView *, Dialogs *);
-       ~QIndex();
+class QIndex :
+       public Qt2CB<ControlIndex, Qt2DB<QIndexDialog> > {
 
-       /// Apply changes
-       void apply();
-       /// close the connections
-       void close();
+       friend class QIndexDialog;
  
+public: 
+       QIndex(ControlIndex &);
+       ~QIndex();
 private: 
-       /// Create the dialog if necessary, update it and display it.
-       void show();
-       /// Hide the dialog.
-       void hide();
-       /// Update the dialog.
-       void update();
+       /// Apply changes
+       virtual void apply();
+       /// update
+       virtual void update();
+       /// build the dialog
+       virtual void build();
 
        /// create an Index inset
        void createIndex(string const &);
        /// edit an Index  inset
        void showIndex(InsetCommand * const);
  
-       /// Real GUI implementation.
-       QIndexDialog * dialog_;
-
-       /// the LyXView we belong to
-       LyXView * lv_;
-       /** Which Dialogs do we belong to?
-           Used so we can get at the signals we have to connect to.
-       */
-       Dialogs * d_;
-       /// pointer to the inset if any
-       InsetCommand * inset_;
-       /// insets params
-       InsetCommandParams params;
        /// is the inset we are reading from a readonly buffer ?
        bool readonly;
-       
-       /// Hide connection.
-       SigC::Connection h_;
-       /// Update connection.
-       SigC::Connection u_;
-       /// Inset hide connection.
-       SigC::Connection ih_;
 };
 
 #endif // QINDEX_H
index b426076dd16ab761daa373d7b50987719b712329..287151e3231018c299364ebb8191fc3d73b7ff3b 100644 (file)
@@ -10,8 +10,8 @@
 #include "Dialogs.h"
 #include "QIndex.h"
 
-QIndexDialog::QIndexDialog(QIndex * form, QWidget * parent, const char * name, bool modal, WFlags fl)
-       : QIndexDialogBase(parent, name, modal, fl),
+QIndexDialog::QIndexDialog(QIndex * form)
+       : QIndexDialogBase(0, 0, false, 0),
        form_(form)
 {
 }
@@ -22,23 +22,22 @@ QIndexDialog::~QIndexDialog()
 }
 
 
-void QIndexDialog::apply_adaptor()
+void QIndexDialog::ok_adaptor()
 {
-       form_->apply();
-       form_->close();
+       form_->slotOK();
        hide();
 }
 
 
 void QIndexDialog::close_adaptor()
 {
-       form_->close();
+       form_->slotCancel();
        hide();
 }
 
 
 void QIndexDialog::closeEvent(QCloseEvent *e)
 {
-       form_->close();
+       form_->slotWMHide();
        e->accept();
 }
index 559bc3ff673607dbacf3ae4baea34c67722c5dff..302e4acf2be24e3f77d50e854e1a139c0f443fc9 100644 (file)
@@ -19,11 +19,11 @@ class QIndexDialog : public QIndexDialogBase
 { Q_OBJECT
 
 public:
-       QIndexDialog(QIndex * form, QWidget * parent = 0, const char * name = 0, bool modal = FALSE, WFlags fl = 0);
+       QIndexDialog(QIndex * form);
        ~QIndexDialog();
 
 public slots:
-       void apply_adaptor();
+       void ok_adaptor();
        void close_adaptor();
 
 protected:
index 202833ca96a6090bc9a9533c0f92b100e6c3ed6b..29b0c4975bd05e950843d49db6123ae53ece0ee3 100644 (file)
@@ -38,12 +38,14 @@ void Qt2Base::show()
                build();
        }
 
+       form()->setMinimumSize(form()->sizeHint());
+
        update();  // make sure its up-to-date
 
        if (form()->isVisible()) {
                form()->raise();
        } else {
-               form()->setCaption( title_ );
+               form()->setCaption(title_);
                form()->show();
        }
 }
@@ -51,25 +53,17 @@ void Qt2Base::show()
 
 void Qt2Base::hide()
 {
-       if (form() && form()->isVisible() )
+       if (form() && form()->isVisible())
                form()->hide();
 }
 
 
-// PENDING(kalle) Handle this with QValidator?
-// void Qt2Base::InputCB(FL_OBJECT * ob, long data)
-// {
-//     bc().input(input(ob, data));
-// }
-
-
-ButtonPolicy::SMInput Qt2Base::input(QWidget*, long)
+void Qt2Base::changed()
 {
-       return ButtonPolicy::SMI_VALID;
+       bc().valid(); 
 }
 
 
-
 void Qt2Base::slotWMHide()
 {
        CancelButton();
index 4d90123f0c85ba9bf4546f3265a91591054ee91c..cf697c0bdc8633944926df06350bfcfb8065f82d 100644 (file)
@@ -21,8 +21,6 @@ class QDialog;
 #include <qfont.h>
 #include <qobject.h>
 
-#include <boost/smart_ptr.hpp>
-
 #ifdef __GNUG__
 #pragma interface
 #endif
@@ -32,6 +30,8 @@ class QDialog;
 #include "ButtonPolicies.h"
 #include "ControlButtons.h"
 
+#include <boost/smart_ptr.hpp>
+
 class qt2BC;
 
 /** This class is an Qt2 GUI base class.
@@ -53,6 +53,9 @@ protected:
        /// Create the dialog if necessary, update it and display it.
        void show();
 
+       /// the dialog has changed contents
+       virtual void changed(); 
+
 protected slots:
        // dialog closed from WM
        void slotWMHide();
@@ -72,9 +75,6 @@ protected slots:
 private:
        /// Pointer to the actual instantiation of xform's form
        virtual QDialog* form() const = 0;
-       /** Filter the inputs on callback from xforms
-               Return true if inputs are valid. */
-       virtual ButtonPolicy::SMInput input(QWidget*, long);
 
 private:
        /// dialog title, displayed by WM.
index b0c410899fc6538872e55bb13c9816dc4582b7ad..9c16857411149825bf4f8e8f17a7c26ff00f79bf 100644 (file)
@@ -14,9 +14,6 @@ include ../Makefile.dialogs
  
 DISTCLEANFILES = $(UIDIALOGS) *.orig *.rej *~ *.bak core
  
-libqt2ui_la_DEPENDENCIES = moc/libqt2uimoc.la
-libqt2ui_la_OBJADD = moc/libqt2uimoc.la
 libqt2ui_la_SOURCES = $(UIDIALOGS)
 
 %Base.h: %.ui
index 5c33605f2de5cb2fac614bcfb7bfc404c657a57b..004a193f041b7d8948375843e70068798c8680ef 100644 (file)
@@ -11,7 +11,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>464</width>
+            <width>448</width>
             <height>454</height>
         </rect>
     </property>
             <number>6</number>
         </property>
         <widget>
-            <class>QLabel</class>
+            <class>QTabWidget</class>
             <property stdset="1">
                 <name>name</name>
-                <cstring>copyrightLA</cstring>
-            </property>
-            <property stdset="1">
-                <name>frameShape</name>
-                <enum>Box</enum>
-            </property>
-            <property stdset="1">
-                <name>frameShadow</name>
-                <enum>Sunken</enum>
-            </property>
-            <property stdset="1">
-                <name>margin</name>
-                <number>6</number>
-            </property>
-            <property stdset="1">
-                <name>text</name>
-                <string>LyX is Copyright (C) 1995 by Matthias Ettrich,
-1995-2001 by LyX Team</string>
-            </property>
-            <property stdset="1">
-                <name>alignment</name>
-                <set>AlignCenter</set>
-            </property>
-            <property>
-                <name>hAlign</name>
-            </property>
-        </widget>
-        <widget>
-            <class>QLabel</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>licenseLA</cstring>
-            </property>
-            <property stdset="1">
-                <name>sizePolicy</name>
-                <sizepolicy>
-                    <hsizetype>5</hsizetype>
-                    <vsizetype>5</vsizetype>
-                </sizepolicy>
-            </property>
-            <property stdset="1">
-                <name>frameShape</name>
-                <enum>Box</enum>
-            </property>
-            <property stdset="1">
-                <name>frameShadow</name>
-                <enum>Sunken</enum>
-            </property>
-            <property stdset="1">
-                <name>margin</name>
-                <number>6</number>
-            </property>
-            <property stdset="1">
-                <name>text</name>
-                <string>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.</string>
-            </property>
-            <property stdset="1">
-                <name>alignment</name>
-                <set>WordBreak|AlignCenter</set>
-            </property>
-            <property>
-                <name>hAlign</name>
-            </property>
-            <property>
-                <name>wordwrap</name>
-            </property>
-        </widget>
-        <widget>
-            <class>QLabel</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>disclaimerLA</cstring>
-            </property>
-            <property stdset="1">
-                <name>sizePolicy</name>
-                <sizepolicy>
-                    <hsizetype>5</hsizetype>
-                    <vsizetype>5</vsizetype>
-                </sizepolicy>
-            </property>
-            <property stdset="1">
-                <name>minimumSize</name>
-                <size>
-                    <width>0</width>
-                    <height>0</height>
-                </size>
-            </property>
-            <property stdset="1">
-                <name>frameShape</name>
-                <enum>Box</enum>
-            </property>
-            <property stdset="1">
-                <name>frameShadow</name>
-                <enum>Sunken</enum>
-            </property>
-            <property stdset="1">
-                <name>margin</name>
-                <number>6</number>
-            </property>
-            <property stdset="1">
-                <name>text</name>
-                <string>LyX 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., 
-675 Mass Ave, Cambridge, MA 02139, USA.</string>
-            </property>
-            <property stdset="1">
-                <name>alignment</name>
-                <set>WordBreak|AlignCenter</set>
-            </property>
-            <property>
-                <name>hAlign</name>
-            </property>
-            <property>
-                <name>wordwrap</name>
+                <cstring>tab</cstring>
             </property>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>versiontab</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Version</string>
+                </attribute>
+                <vbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <widget>
+                        <class>QLabel</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>versionLA</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShape</name>
+                            <enum>Box</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShadow</name>
+                            <enum>Sunken</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>margin</name>
+                            <number>6</number>
+                        </property>
+                        <property stdset="1">
+                            <name>text</name>
+                            <string>Version goes here</string>
+                        </property>
+                        <property stdset="1">
+                            <name>alignment</name>
+                            <set>AlignCenter</set>
+                        </property>
+                        <property>
+                            <name>hAlign</name>
+                        </property>
+                    </widget>
+                </vbox>
+            </widget>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>creditstab</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Credits</string>
+                </attribute>
+                <vbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <widget>
+                        <class>QTextView</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>creditsTV</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>textFormat</name>
+                            <enum>RichText</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>text</name>
+                            <string></string>
+                        </property>
+                    </widget>
+                </vbox>
+            </widget>
+            <widget>
+                <class>QWidget</class>
+                <property stdset="1">
+                    <name>name</name>
+                    <cstring>copyrighttab</cstring>
+                </property>
+                <attribute>
+                    <name>title</name>
+                    <string>Copyright</string>
+                </attribute>
+                <vbox>
+                    <property stdset="1">
+                        <name>margin</name>
+                        <number>11</number>
+                    </property>
+                    <property stdset="1">
+                        <name>spacing</name>
+                        <number>6</number>
+                    </property>
+                    <widget>
+                        <class>QLabel</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>copyrightLA</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShape</name>
+                            <enum>Box</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShadow</name>
+                            <enum>Sunken</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>margin</name>
+                            <number>6</number>
+                        </property>
+                        <property stdset="1">
+                            <name>text</name>
+                            <string>Copyright notice goes here</string>
+                        </property>
+                        <property stdset="1">
+                            <name>alignment</name>
+                            <set>AlignCenter</set>
+                        </property>
+                        <property>
+                            <name>hAlign</name>
+                        </property>
+                    </widget>
+                    <widget>
+                        <class>QLabel</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>disclaimerLA</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>sizePolicy</name>
+                            <sizepolicy>
+                                <hsizetype>5</hsizetype>
+                                <vsizetype>5</vsizetype>
+                            </sizepolicy>
+                        </property>
+                        <property stdset="1">
+                            <name>minimumSize</name>
+                            <size>
+                                <width>0</width>
+                                <height>0</height>
+                            </size>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShape</name>
+                            <enum>Box</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShadow</name>
+                            <enum>Sunken</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>margin</name>
+                            <number>6</number>
+                        </property>
+                        <property stdset="1">
+                            <name>text</name>
+                            <string>Warranty goes here</string>
+                        </property>
+                        <property stdset="1">
+                            <name>alignment</name>
+                            <set>WordBreak|AlignCenter</set>
+                        </property>
+                        <property>
+                            <name>hAlign</name>
+                        </property>
+                        <property>
+                            <name>wordwrap</name>
+                        </property>
+                    </widget>
+                    <widget>
+                        <class>QLabel</class>
+                        <property stdset="1">
+                            <name>name</name>
+                            <cstring>licenseLA</cstring>
+                        </property>
+                        <property stdset="1">
+                            <name>sizePolicy</name>
+                            <sizepolicy>
+                                <hsizetype>5</hsizetype>
+                                <vsizetype>5</vsizetype>
+                            </sizepolicy>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShape</name>
+                            <enum>Box</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>frameShadow</name>
+                            <enum>Sunken</enum>
+                        </property>
+                        <property stdset="1">
+                            <name>margin</name>
+                            <number>6</number>
+                        </property>
+                        <property stdset="1">
+                            <name>text</name>
+                            <string>GPL goes here</string>
+                        </property>
+                        <property stdset="1">
+                            <name>alignment</name>
+                            <set>WordBreak|AlignCenter</set>
+                        </property>
+                        <property>
+                            <name>hAlign</name>
+                        </property>
+                        <property>
+                            <name>wordwrap</name>
+                        </property>
+                    </widget>
+                </vbox>
+            </widget>
         </widget>
         <widget>
             <class>QPushButton</class>
index deef689c9167b180841b6165769dad0aa1518708..4ecabcd6b63052eee5b76a3ae30aed1daff2b1e4 100644 (file)
@@ -11,7 +11,7 @@
         <rect>
             <x>0</x>
             <y>0</y>
-            <width>487</width>
+            <width>483</width>
             <height>585</height>
         </rect>
     </property>
                 <name>wordWrap</name>
                 <enum>WidgetWidth</enum>
             </property>
+            <property stdset="1">
+                <name>readOnly</name>
+                <bool>true</bool>
+            </property>
+            <property stdset="1">
+                <name>focusPolicy</name>
+                <enum>NoFocus</enum>
+            </property>
             <property>
                 <name>toolTip</name>
                 <string>Reference entry text</string>
index e26fa3dc00dd75334ab20ea8667359bc39a6d7cd..4617a069bda2e3ccd821507f31c44b8922710169 100644 (file)
         <sender>okPB</sender>
         <signal>clicked()</signal>
         <receiver>QIndexDialogBase</receiver>
-        <slot>apply_adaptor()</slot>
+        <slot>ok_adaptor()</slot>
     </connection>
     <connection>
         <sender>cancelPB</sender>
         <receiver>QIndexDialogBase</receiver>
         <slot>close_adaptor()</slot>
     </connection>
-    <slot access="public">apply_adaptor()</slot>
+    <slot access="public">ok_adaptor()</slot>
     <slot access="public">close_adaptor()</slot>
 </connections>
 </UI>