QicsTable Documentation Set


** $RCSfile: frozen_h.html,v $ $Date: 2008/07/16 14:59:02 $
** Copyright ( C ) 2002-2006 Integrated Computer Solutions, Inc.
** All rights reserved.
** This file is part of an example program for QicsTable.  This example
** program may be used, distributed and modified without limitation.

#ifndef _FROZEN_H
#define _FROZEN_H

#include <QMainWindow>
#include <QDialog>

// The dialog that allows the user to move rows and columns

class QRadioButton;

class MoveDialog : public QDialog
    MoveDialog(QWidget *parent=0);

    // These methods return the specific type of move that was requested
    inline bool moveToTop(void) const
    { return _moveToTop; }
    inline bool moveToBottom(void) const
    { return _moveToBottom; }
    inline bool moveToLeft(void) const
    { return _moveToLeft; }
    inline bool moveToRight(void) const
    { return _moveToRight; }

public slots:
    // Pops up the dialog and waits until the user pops it down
    void exec();

    QRadioButton *_mTop;
    QRadioButton *_mBottom;
    QRadioButton *_mLeft;
    QRadioButton *_mRight;

    bool _moveToTop;
    bool _moveToBottom;
    bool _moveToLeft;
    bool _moveToRight;

// The main UI of the example program

class QicsFrozenConfigDialog;
class QicsTable;
class QicsDataModel;

class FrozenUI: public QMainWindow
    FrozenUI(QicsDataModel *dm, QWidget *parent = 0);

    inline QicsTable *table(void) const
    { return myTable; }

protected slots:
    void doFrozenConfig(void);
    void doMoveConfig(void);

    QicsTable *myTable;
    QicsFrozenConfigDialog *myFrozenDialog;
    MoveDialog *myMoveDialog;

#endif /* _FROZEN_H */

All trademarks and copyrights on this page are properties of their respective owners.
The rest is copyright 1999-2006 Integrated Computer Solutions, Inc.