"Fossies" - the Fresh Open Source Software Archive

Member "cb2bib-2.0.1/src/c2bSearchInFilesPattern.h" (12 Feb 2021, 1191 Bytes) of package /linux/privat/cb2bib-2.0.1.tar.gz:


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 "c2bSearchInFilesPattern.h" see the Fossies "Dox" file reference documentation and the latest Fossies "Diffs" side-by-side code changes report: 2.0.0_vs_2.0.1.

    1 /***************************************************************************
    2  *   Copyright (C) 2004-2021 by Pere Constans
    3  *   constans@molspaces.com
    4  *   cb2Bib version 2.0.1. Licensed under the GNU GPL version 3.
    5  *   See the LICENSE file that comes with this distribution.
    6  ***************************************************************************/
    7 #ifndef C2BSEARCHINFILESPATTERN_H
    8 #define C2BSEARCHINFILESPATTERN_H
    9 
   10 #include "ui_c2bSearchInFilesPattern.h"
   11 
   12 #include <QWidget>
   13 
   14 
   15 const int ITEMS_IN_SEARCH_PATTERN(6);
   16 
   17 class QTreeWidgetItem;
   18 
   19 class c2bSearchInFilesPattern : public QWidget
   20 {
   21 
   22     Q_OBJECT
   23 
   24 public:
   25     explicit c2bSearchInFilesPattern(QWidget* parentw = 0);
   26     ~c2bSearchInFilesPattern();
   27 
   28     const QStringList patterns();
   29     void clear();
   30     void setPattern(QTreeWidgetItem* pattern);
   31     void setText(const QString& text);
   32 
   33     inline bool isAvailable() const
   34     {
   35         return !ui.inputPattern->text().isEmpty();
   36     }
   37 
   38 
   39 signals:
   40     void patternAvailable(bool available);
   41 
   42 
   43 public slots:
   44     void setFocus();
   45 
   46 
   47 private slots:
   48     void patternChanged();
   49     void showYearScope(const QString& scope);
   50 
   51 
   52 private:
   53     Ui::c2bSearchInFilesPattern ui;
   54 };
   55 
   56 #endif