"Fossies" - the Fresh Open Source Software Archive

Member "zuluCrypt-5.7.0/zuluCrypt-gui/tablewidget.h" (12 Sep 2019, 1850 Bytes) of package /linux/misc/zuluCrypt-5.7.0.tar.xz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "tablewidget.h" see the Fossies "Dox" file reference documentation and the last Fossies "Diffs" side-by-side code changes report: 5.2.0_vs_5.3.0.

    1 /*
    2  *
    3  *  Copyright ( c ) 2012-2015
    4  *  name : Francis Banyikwa
    5  *  email: mhogomchungu@gmail.com
    6  *  This program is free software: you can redistribute it and/or modify
    7  *  it under the terms of the GNU General Public License as published by
    8  *  the Free Software Foundation, either version 2 of the License, or
    9  *  ( at your option ) any later version.
   10  *
   11  *  This program is distributed in the hope that it will be useful,
   12  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
   13  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
   14  *  GNU General Public License for more details.
   15  *
   16  *  You should have received a copy of the GNU General Public License
   17  *  along with this program.  If not, see <http://www.gnu.org/licenses/>.
   18  */
   19 
   20 #ifndef TABLEWIDGET_H
   21 #define TABLEWIDGET_H
   22 
   23 #include <QString>
   24 #include <QStringList>
   25 #include <QFont>
   26 #include <initializer_list>
   27 
   28 class QTableWidget ;
   29 class QTableWidgetItem ;
   30 
   31 namespace tablewidget
   32 {
   33     void selectRow( QTableWidgetItem * current,QTableWidgetItem * previous ) ;
   34     void selectRow( QTableWidget *,int row ) ;
   35     void selectRow( QTableWidget *,const QString&,int column = 0 ) ;
   36     void selectLastRow( QTableWidget * ) ;
   37 
   38     void addRow( QTableWidget *,const QStringList&,const QFont& = QFont() ) ;
   39     int  addRow( QTableWidget * ) ;
   40 
   41     void updateRow( QTableWidget *,const QStringList&,int row,const QFont& ) ;
   42 
   43     void setFont( QTableWidget *,int row,const QFont& ) ;
   44 
   45     void deleteRow( QTableWidget *,int row ) ;
   46     void deleteRow( QTableWidget *,const QString&,int = 0 ) ;
   47 
   48     int columnHasEntry( QTableWidget *,const QString&,int = 0 ) ;
   49 
   50     QStringList columnEntries( QTableWidget * table,int = 0 ) ;
   51     QStringList rowEntries( QTableWidget * table,int = 0 ) ;
   52 
   53     void clearTable( QTableWidget * ) ;
   54 
   55     void setRowToolTip( QTableWidget *,int row,const QString& ) ;
   56 }
   57 
   58 #endif // TABLEWIDGET_H