mirror of
https://codeberg.org/vyn/mirai.git
synced 2025-07-03 01:33:19 +00:00
Format all c++ files
This commit is contained in:
parent
081e107b9b
commit
f8f49233dc
21 changed files with 683 additions and 599 deletions
|
@ -1,4 +1,4 @@
|
|||
/*
|
||||
/*
|
||||
* Mirai. Copyright (C) 2024 Vyn
|
||||
* This file is licensed under version 3 of the GNU General Public License (GPL-3.0-only)
|
||||
* The license can be found in the LICENSE file or at https://www.gnu.org/licenses/gpl-3.0.txt
|
||||
|
@ -8,34 +8,32 @@
|
|||
#define MIRAI_TASKSVIEW_H
|
||||
#include "TasksFile.h"
|
||||
#include "using.h"
|
||||
#include <algorithm>
|
||||
#include <iostream>
|
||||
#include <cstddef>
|
||||
#include <memory>
|
||||
#include <ostream>
|
||||
#include <string>
|
||||
|
||||
namespace mirai {
|
||||
namespace mirai
|
||||
{
|
||||
|
||||
class TasksView {
|
||||
class TasksView
|
||||
{
|
||||
|
||||
public:
|
||||
public:
|
||||
TasksView(std::shared_ptr<std::vector<TasksFile>> files);
|
||||
|
||||
TasksView(std::shared_ptr<std::vector<TasksFile>> files);
|
||||
TaskItem &operator[](int index);
|
||||
|
||||
TaskItem& operator[](int index);
|
||||
size_t count() const;
|
||||
void update();
|
||||
void addTagFilter(const std::string &tag);
|
||||
void removeTagFilter(const std::string &tag);
|
||||
void removeFilters();
|
||||
const Tags &getActiveTagsFilter();
|
||||
|
||||
int count() const;
|
||||
void update();
|
||||
void addTagFilter(const std::string& tag);
|
||||
void removeTagFilter(const std::string& tag);
|
||||
void removeFilters();
|
||||
const Tags& getActiveTagsFilter();
|
||||
|
||||
private:
|
||||
|
||||
std::shared_ptr<std::vector<TasksFile>> files;
|
||||
std::vector<TaskItem*> tasksToShow;
|
||||
Tags tagsFilter;
|
||||
};
|
||||
}
|
||||
private:
|
||||
std::shared_ptr<std::vector<TasksFile>> files;
|
||||
std::vector<TaskItem *> tasksToShow;
|
||||
Tags tagsFilter;
|
||||
};
|
||||
} // namespace mirai
|
||||
#endif
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue