File indexing completed on 2024-05-05 05:46:07

0001 /***************************************************************************
0002  *   Copyright (C) 2005 by David Saxton                                    *
0003  *   david@bluehaze.org                                                    *
0004  *                                                                         *
0005  *   This program is free software; you can redistribute it and/or modify  *
0006  *   it under the terms of the GNU General Public License as published by  *
0007  *   the Free Software Foundation; either version 2 of the License, or     *
0008  *   (at your option) any later version.                                   *
0009  ***************************************************************************/
0010 
0011 #ifndef MATRIXDISPLAYDRIVER_H
0012 #define MATRIXDISPLAYDRIVER_H
0013 
0014 #include "matrixdisplay.h"
0015 
0016 /**
0017 @author David Saxton
0018  */
0019 class MatrixDisplayDriver : public Component
0020 {
0021 public:
0022     MatrixDisplayDriver(ICNDocument *icnDocument, bool newItem, const char *id = nullptr);
0023     ~MatrixDisplayDriver() override;
0024 
0025     static Item *construct(ItemDocument *itemDocument, bool newItem, const char *id);
0026     static LibraryItem *libraryItem();
0027 
0028     void stepNonLogic() override;
0029     bool doesStepNonLogic() const override
0030     {
0031         return true;
0032     }
0033 
0034 protected:
0035     QVector<LogicIn *> m_pValueLogic;
0036     QVector<LogicOut *> m_pRowLogic;
0037     QVector<LogicOut *> m_pColLogic;
0038 
0039     unsigned m_prevCol;
0040     unsigned m_nextCol;
0041     unsigned m_scanCount;
0042 };
0043 
0044 #endif