reapack

Package manager for REAPER
Log | Files | Refs | Submodules | README | LICENSE

report.hpp (1202B)


      1 /* ReaPack: Package manager for REAPER
      2  * Copyright (C) 2015-2025  Christian Fillion
      3  *
      4  * This program is free software: you can redistribute it and/or modify
      5  * it under the terms of the GNU Lesser General Public License as published by
      6  * the Free Software Foundation, either version 3 of the License, or
      7  * (at your option) any later version.
      8  *
      9  * This program is distributed in the hope that it will be useful,
     10  * but WITHOUT ANY WARRANTY; without even the implied warranty of
     11  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
     12  * GNU Lesser General Public License for more details.
     13  *
     14  * You should have received a copy of the GNU Lesser General Public License
     15  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
     16  */
     17 
     18 #ifndef REAPACK_REPORT_HPP
     19 #define REAPACK_REPORT_HPP
     20 
     21 #include "dialog.hpp"
     22 
     23 class Receipt;
     24 class ReceiptPage;
     25 class TabBar;
     26 
     27 class Report : public Dialog {
     28 public:
     29   Report(const Receipt *);
     30 
     31 protected:
     32   void onInit() override;
     33   void onTimer(int) override;
     34 
     35 private:
     36   void updateLabel();
     37   void addPage(const ReceiptPage &);
     38 
     39   const Receipt *m_receipt;
     40   bool m_empty;
     41   TabBar *m_tabbar;
     42   std::vector<std::string> m_pages;
     43 };
     44 
     45 #endif