Logo Search packages:      
Sourcecode: qsstv version File versions  Download package

thumbwindow.h

#ifndef THUMBWINDOW_H
#define THUMBWINDOW_H
#include <qmainwindow.h>
#include <qlayout.h>
#include <qframe.h>
#include "thumbframe.h"
#define THUMBROWS 4
#define THUMBCOLUMS 6

class thumbWindow : public QMainWindow
{
    Q_OBJECT
public:
    thumbWindow(QWidget *p=0 ,const char *n=0, WFlags f=0);
    ~thumbWindow();
    void add(QFileInfo fn);
    QFileInfo *getLatest();
    void setCanvas(imageFrame *c);
    int getRow()
      {
      return rowIdx;
      }
    int getColumn()
      {
      return colIdx;
      }

 protected:
    void closeEvent(QCloseEvent *e);
    QFrame *canvas;
    thumbFrame *thumbArray[THUMBROWS][THUMBCOLUMS];
    QGridLayout *thumbLayout;
    int rowIdx;
    int colIdx;
    void next();
    int firstRow;
    int firstCol;
};
extern thumbWindow *tw;
#endif




Generated by  Doxygen 1.6.0   Back to index