]> git.lyx.org Git - features.git/commitdiff
Say "Byeeeee" to 472 lines.
authorAngus Leeming <leeming@lyx.org>
Fri, 5 Dec 2003 14:07:24 +0000 (14:07 +0000)
committerAngus Leeming <leeming@lyx.org>
Fri, 5 Dec 2003 14:07:24 +0000 (14:07 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8205 a592a061-630c-0410-9148-cb99ea01b6c8

16 files changed:
src/frontends/controllers/ChangeLog
src/frontends/controllers/ControlVCLog.C [deleted file]
src/frontends/controllers/ControlVCLog.h [deleted file]
src/frontends/controllers/Makefile.am
src/frontends/qt2/ChangeLog
src/frontends/qt2/Makefile.am
src/frontends/qt2/Makefile.dialogs
src/frontends/qt2/QVCLog.C [deleted file]
src/frontends/qt2/QVCLog.h [deleted file]
src/frontends/qt2/QVCLogDialog.C [deleted file]
src/frontends/qt2/QVCLogDialog.h [deleted file]
src/frontends/qt2/ui/QVCLogDialogBase.ui [deleted file]
src/frontends/xforms/ChangeLog
src/frontends/xforms/FormVCLog.C [deleted file]
src/frontends/xforms/FormVCLog.h [deleted file]
src/frontends/xforms/Makefile.am

index 0d8ff120c321d71f149cb13c5e51f59838d5daf1..74a80e448aa8a1f3155a55280b6caaad84114481 100644 (file)
@@ -1,3 +1,8 @@
+2003-12-05  Angus Leeming  <leeming@lyx.org>
+
+       * ControlVCLog.[Ch]: removed.
+       * Makefile.am: remove ControlVCLog.[Ch]
+
 2003-12-05  Angus Leeming  <leeming@lyx.org>
 
        * ControlLog.[Ch]: re-worked so that it is passed the logtype and
diff --git a/src/frontends/controllers/ControlVCLog.C b/src/frontends/controllers/ControlVCLog.C
deleted file mode 100644 (file)
index 4e44592..0000000
+++ /dev/null
@@ -1,56 +0,0 @@
-/**
- * \file ControlVCLog.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Angus Leeming
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "ControlVCLog.h"
-#include "buffer.h"
-#include "gettext.h"
-#include "lyxvc.h"
-#include "support/lyxlib.h"
-#include <fstream>
-
-using lyx::support::unlink;
-
-using std::endl;
-using std::ostream;
-using std::string;
-
-
-ControlVCLog::ControlVCLog(Dialog & parent)
-       : Dialog::Controller(parent)
-{}
-
-
-string const ControlVCLog::getBufferFileName() const
-{
-       return kernel().buffer().fileName();
-}
-
-
-void ControlVCLog::getVCLogFile(ostream & ss) const
-{
-       string const name = kernel().buffer().lyxvc().getLogFile();
-
-       std::ifstream in(name.c_str());
-
-       bool found(false);
-
-       if (in) {
-               ss << in.rdbuf();
-               found = ss.good();
-       }
-
-       if (!found)
-               ss << _("No version control log file found.") << endl;
-
-       unlink(name);
-}
diff --git a/src/frontends/controllers/ControlVCLog.h b/src/frontends/controllers/ControlVCLog.h
deleted file mode 100644 (file)
index d1a8c43..0000000
+++ /dev/null
@@ -1,36 +0,0 @@
-// -*- C++ -*-
-/**
- * \file ControlVCLog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- * \author Angus Leeming
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef CONTROLVCLOG_H
-#define CONTROLVCLOG_H
-
-#include "Dialog.h"
-
-class ControlVCLog : public Dialog::Controller {
-public:
-       ///
-       ControlVCLog(Dialog &);
-       /// Nothing to initialise in this case.
-       virtual bool initialiseParams(std::string const &) { return true; }
-       ///
-       virtual void clearParams() {}
-       ///
-       virtual void dispatchParams() {}
-       ///
-       virtual bool isBufferDependent() const { return true; }
-       /// put the log file into the ostream
-       void getVCLogFile(std::ostream & ss) const;
-       /// get the filename of the buffer
-       std::string const getBufferFileName() const;
-};
-
-#endif // CONTROLVCLOG_H
index 988bc21f7f3fe1cb121fc03f7ddbcb3c5644b1fe..7bbef306b94e8e0bc86c23292b4b9a0f4e38f458 100644 (file)
@@ -102,8 +102,6 @@ libcontrollers_la_SOURCES= \
        ControlThesaurus.h \
        ControlToc.C \
        ControlToc.h \
-       ControlVCLog.C \
-       ControlVCLog.h \
        ControlVSpace.C \
        ControlVSpace.h \
        ControlWrap.C \
index 8959e8257349ced09b307e50012ee03202f5cdf6..da54fef7cb5a2d06fb63888f8722543127f8d45d 100644 (file)
@@ -1,3 +1,11 @@
+2003-12-05  Angus Leeming  <leeming@lyx.org>
+
+       * QVCLog.[Ch]:
+       * QVCLogDialog.[Ch]:
+       * ui/QVCLogDialogBase.ui: removed.
+
+       * Makefile.am, Makefile.dialogs: remove all mention of these files.
+
 2003-12-05  Angus Leeming  <leeming@lyx.org>
 
        * QLog.C: much simplified, thanks to the more powerful interface
index 36fb2b10f98a7c42458fea3f934fdee537cb6321..065eea269da34ff6193f18e04ea20edbee3a1f14 100644 (file)
@@ -63,7 +63,6 @@ libqt2_la_SOURCES = \
        QThesaurus.C QThesaurus.h \
        QToc.C QToc.h \
        QURL.C QURL.h \
-       QVCLog.C QVCLog.h \
        QVSpace.C QVSpace.h \
        QWorkArea.h QWorkArea.C \
        QWrap.C QWrap.h \
index 41a8a81f332fcb0cc905449f0002f55a19a4dee2..4bc4e7bfd41e56136ec9c0c87515e1a93ab148fa 100644 (file)
@@ -65,7 +65,6 @@ UIFILES = \
        QThesaurusDialogBase.ui \
        QTocDialogBase.ui \
        QURLDialogBase.ui \
-       QVCLogDialogBase.ui \
        QVSpaceDialogBase.ui \
        QWrapDialogBase.ui
 
@@ -124,7 +123,6 @@ MOCFILES = \
        qttableview.C qttableview.h \
        QtView.C QtView.h \
        QURLDialog.C QURLDialog.h \
-       QVCLogDialog.C QVCLogDialog.h \
        QVSpaceDialog.C QVSpaceDialog.h \
        QWrapDialog.C QWrapDialog.h \
        QLToolbar.C QLToolbar.h \
diff --git a/src/frontends/qt2/QVCLog.C b/src/frontends/qt2/QVCLog.C
deleted file mode 100644 (file)
index 7ebbead..0000000
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * \file QVCLog.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "debug.h"
-#include "support/std_sstream.h"
-#include "qt_helpers.h"
-#include "support/lstrings.h"
-#include "ControlVCLog.h"
-
-#include "QVCLog.h"
-#include "QVCLogDialog.h"
-#include "Qt2BC.h"
-
-#include <qtextview.h>
-#include <qpushbutton.h>
-
-using lyx::support::bformat;
-
-using std::ostringstream;
-
-
-typedef QController<ControlVCLog, QView<QVCLogDialog> > base_class;
-
-QVCLog::QVCLog(Dialog & parent)
-       : base_class(parent, _("LyX: Version Control Log"))
-{
-}
-
-
-void QVCLog::build_dialog()
-{
-       dialog_.reset(new QVCLogDialog(this));
-
-       bcview().setCancel(dialog_->closePB);
-}
-
-
-void QVCLog::update_contents()
-{
-       setTitle(bformat(_("Version control log for %1$s"),
-                        controller().getBufferFileName()));
-
-       dialog_->vclogTV->setText("");
-
-       ostringstream ss;
-       controller().getVCLogFile(ss);
-
-       dialog_->vclogTV->setText(toqstr(ss.str()));
-}
diff --git a/src/frontends/qt2/QVCLog.h b/src/frontends/qt2/QVCLog.h
deleted file mode 100644 (file)
index e28e744..0000000
+++ /dev/null
@@ -1,40 +0,0 @@
-// -*- C++ -*-
-/**
- * \file QVCLog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QVCLOG_H
-#define QVCLOG_H
-
-
-#include "QDialogView.h"
-
-
-class ControlVCLog;
-class QVCLogDialog;
-
-///
-class QVCLog
-       : public QController<ControlVCLog, QView<QVCLogDialog> >
-{
-public:
-       ///
-       friend class QVCLogDialog;
-       ///
-       QVCLog(Dialog &);
-private:
-       /// Apply changes
-       virtual void apply() {}
-       /// update
-       virtual void update_contents();
-       /// build the dialog
-       virtual void build_dialog();
-};
-
-#endif // QVCLOG_H
diff --git a/src/frontends/qt2/QVCLogDialog.C b/src/frontends/qt2/QVCLogDialog.C
deleted file mode 100644 (file)
index 7b25512..0000000
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * \file QVCLogDialog.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-
-
-
-#include "QVCLog.h"
-#include "QVCLogDialog.h"
-
-#include <qpushbutton.h>
-
-
-QVCLogDialog::QVCLogDialog(QVCLog * form)
-       : QVCLogDialogBase(0, 0, false, 0),
-       form_(form)
-{
-       connect(closePB, SIGNAL(clicked()),
-               form, SLOT(slotClose()));
-}
-
-
-void QVCLogDialog::closeEvent(QCloseEvent * e)
-{
-       form_->slotWMHide();
-       e->accept();
-}
-
-
-void QVCLogDialog::updateClicked()
-{
-       form_->update_contents();
-}
diff --git a/src/frontends/qt2/QVCLogDialog.h b/src/frontends/qt2/QVCLogDialog.h
deleted file mode 100644 (file)
index e5d317f..0000000
+++ /dev/null
@@ -1,32 +0,0 @@
-// -*- C++ -*-
-/**
- * \file QVCLogDialog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef QVCLOGDIALOG_H
-#define QVCLOGDIALOG_H
-
-
-#include "ui/QVCLogDialogBase.h"
-
-class QVCLog;
-
-class QVCLogDialog : public QVCLogDialogBase {
-       Q_OBJECT
-public:
-       QVCLogDialog(QVCLog * form);
-protected slots:
-       virtual void updateClicked();
-protected:
-       virtual void closeEvent(QCloseEvent * e);
-private:
-       QVCLog * form_;
-};
-
-#endif // QVCLOGDIALOG_H
diff --git a/src/frontends/qt2/ui/QVCLogDialogBase.ui b/src/frontends/qt2/ui/QVCLogDialogBase.ui
deleted file mode 100644 (file)
index 074e1a7..0000000
+++ /dev/null
@@ -1,128 +0,0 @@
-<!DOCTYPE UI><UI>
-<class>QVCLogDialogBase</class>
-<include location="global">config.h</include>
-<include location="local">qt_helpers.h</include>
-<widget>
-    <class>QDialog</class>
-    <property stdset="1">
-        <name>name</name>
-        <cstring>QVCLogDialogBase</cstring>
-    </property>
-    <property stdset="1">
-        <name>geometry</name>
-        <rect>
-            <x>0</x>
-            <y>0</y>
-            <width>416</width>
-            <height>328</height>
-        </rect>
-    </property>
-    <property stdset="1">
-        <name>caption</name>
-        <string>Version control log</string>
-    </property>
-    <property stdset="1">
-        <name>sizeGripEnabled</name>
-        <bool>true</bool>
-    </property>
-    <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>vclogTV</cstring>
-            </property>
-        </widget>
-        <widget>
-            <class>QLayoutWidget</class>
-            <property stdset="1">
-                <name>name</name>
-                <cstring>Layout27</cstring>
-            </property>
-            <hbox>
-                <property stdset="1">
-                    <name>margin</name>
-                    <number>0</number>
-                </property>
-                <property stdset="1">
-                    <name>spacing</name>
-                    <number>6</number>
-                </property>
-                <spacer>
-                    <property>
-                        <name>name</name>
-                        <cstring>Spacer3</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>orientation</name>
-                        <enum>Horizontal</enum>
-                    </property>
-                    <property stdset="1">
-                        <name>sizeType</name>
-                        <enum>Expanding</enum>
-                    </property>
-                    <property>
-                        <name>sizeHint</name>
-                        <size>
-                            <width>20</width>
-                            <height>20</height>
-                        </size>
-                    </property>
-                </spacer>
-                <widget>
-                    <class>QPushButton</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>updatePB</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string>&amp;Update</string>
-                    </property>
-                    <property stdset="1">
-                        <name>default</name>
-                        <bool>true</bool>
-                    </property>
-                    <property>
-                        <name>toolTip</name>
-                        <string>Update the display</string>
-                    </property>
-                </widget>
-                <widget>
-                    <class>QPushButton</class>
-                    <property stdset="1">
-                        <name>name</name>
-                        <cstring>closePB</cstring>
-                    </property>
-                    <property stdset="1">
-                        <name>text</name>
-                        <string>&amp;Close</string>
-                    </property>
-                </widget>
-            </hbox>
-        </widget>
-    </vbox>
-</widget>
-<connections>
-    <connection>
-        <sender>updatePB</sender>
-        <signal>clicked()</signal>
-        <receiver>QVCLogDialogBase</receiver>
-        <slot>updateClicked()</slot>
-    </connection>
-    <slot access="public">updateClicked()</slot>
-</connections>
-<tabstops>
-    <tabstop>vclogTV</tabstop>
-    <tabstop>updatePB</tabstop>
-    <tabstop>closePB</tabstop>
-</tabstops>
-</UI>
index 55c96416ab231c5445c0515e17e37b53f87c604d..9b1f3a49226be82f0541ec6287d3b52173828007 100644 (file)
@@ -1,3 +1,9 @@
+2003-12-05  Angus Leeming  <leeming@lyx.org>
+
+       * FormVCLog.[Ch]: removed.
+
+       * Makefile.am: remove all mention of these files.
+
 2003-12-05  Angus Leeming  <leeming@lyx.org>
 
        * FormLog.C: much simplified, thanks to the more powerful interface
diff --git a/src/frontends/xforms/FormVCLog.C b/src/frontends/xforms/FormVCLog.C
deleted file mode 100644 (file)
index 87c1a9e..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * \file FormVCLog.C
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#include <config.h>
-
-#include "FormVCLog.h"
-#include "ControlVCLog.h"
-#include "forms/form_browser.h"
-
-#include "xformsBC.h"
-
-#include "lyx_forms.h"
-
-#include "support/std_sstream.h"
-
-
-FormVCLog::FormVCLog(Dialog & parent)
-       : FormController<ControlVCLog, FormBrowser>(parent, _("Version Control Log"))
-{}
-
-
-void FormVCLog::update()
-{
-       fl_clear_browser(dialog_->browser);
-
-       std::ostringstream ss;
-       controller().getVCLogFile(ss);
-
-       fl_add_browser_line(dialog_->browser, ss.str().c_str());
-}
diff --git a/src/frontends/xforms/FormVCLog.h b/src/frontends/xforms/FormVCLog.h
deleted file mode 100644 (file)
index 58aed48..0000000
+++ /dev/null
@@ -1,37 +0,0 @@
-// -*- C++ -*-
-/**
- * \file FormVCLog.h
- * This file is part of LyX, the document processor.
- * Licence details can be found in the file COPYING.
- *
- * \author John Levon
- *
- * Full author contact details are available in file CREDITS.
- */
-
-#ifndef FORMVCLOG_H
-#define FORMVCLOG_H
-
-
-#include "FormBrowser.h"
-
-class ControlVCLog;
-
-/**
- * This class provides an XForms implementation of the Version Control
- * log viewer
- */
-class FormVCLog : public FormController<ControlVCLog, FormBrowser> {
-public:
-       ///
-       FormVCLog(Dialog &);
-
-       // Functions accessible to the Controller.
-
-       /// Set the Params variable for the Controller.
-       virtual void apply() {}
-       /// Update dialog before/whilst showing it.
-       virtual void update();
-};
-
-#endif // FORMVCLOG_H
index 8e6ff55adf24e4aacd1265798c2c33b14b8182ba..375fbd731f6db6e10b608a3c63627ed17ac47b76 100644 (file)
@@ -152,8 +152,6 @@ libxforms_la_SOURCES = \
        FormToc.h \
        FormUrl.C \
        FormUrl.h \
-       FormVCLog.C \
-       FormVCLog.h \
        FormVSpace.C \
        FormVSpace.h \
        FormWrap.C \