]> git.lyx.org Git - lyx.git/blobdiff - src/frontends/qt2/emptytable.h
better selection and scrolling behaviour
[lyx.git] / src / frontends / qt2 / emptytable.h
index 75d35a35e6f1bd3c548fbd1abe0b7aed303aa58e..d00e33bb033408b983ec1e0e5be0513752e73638 100644 (file)
@@ -1,15 +1,22 @@
+// -*- C++ -*-
 /**
  * \file emptytable.h
- * Copyright 2001 the LyX Team
- * Read the file COPYING
+ * 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 EMPTYTABLE_H
 #define EMPTYTABLE_H
 
-#include <qpainter.h> 
+#ifdef __GNUG__
+#pragma interface
+#endif
+
+#include <qpainter.h>
 #include "qttableview.h"
 
 /**
@@ -20,30 +27,26 @@ class EmptyTable : public QtTableView {
        Q_OBJECT
 public:
        EmptyTable(QWidget * parent = 0, const char * name = 0);
-       
-       ~EmptyTable() {};
+
+       ~EmptyTable() {}
 
        virtual QSize sizeHint() const;
 public slots:
-       /// set the number of columns in the table and emit colsChanged() signal 
+       /// set the number of columns in the table and emit colsChanged() signal
        void setNumberColumns(int nr_cols);
-       /// set the number of rows in the table and emit rowsChanged() signal 
+       /// set the number of rows in the table and emit rowsChanged() signal
        void setNumberRows(int nr_rows);
 signals:
        /// the number of columns changed
        void colsChanged(int);
        /// the number of rows changed
        void rowsChanged(int);
-
 protected:
        /// fill in a cell
        virtual void paintCell(class QPainter *, int, int);
        virtual void mouseMoveEvent(QMouseEvent *);
-       
 private:
-       /// number of current columns 
+       /// number of current columns
        unsigned int cols;
        /// number of current rows
        unsigned int rows;