CCIMXDesktop
Loading...
Searching...
No Matches
LeftSideBar.h
1
#ifndef LEFTSIDEBAR_H
2
#define LEFTSIDEBAR_H
3
class
TemperaryCacher
;
4
#include <QWidget>
5
6
namespace
Ui {
7
class
LeftSideBar
;
8
}
9
14
class
LeftSideBar
:
public
QWidget {
15
Q_OBJECT
16
17
public
:
23
explicit
LeftSideBar
(QWidget* parent =
nullptr
);
24
~LeftSideBar
();
25
QStringList
temp_lables
()
const
;
26
public
slots:
32
void
enqueue_history_file
(
const
QString& file);
39
void
entemp
(
const
QString& label,
const
QString& context);
45
void
remove_temp
(
const
QString& label);
52
std::optional<QString>
show_temp
(
const
QString& label);
53
signals:
59
void
load_file
(
const
QString file);
65
void
load_temp
(
const
QString label);
66
67
private
slots:
72
void
on_btn_clear_temp_clicked();
77
void
on_btn_delete_clicked();
78
79
private
:
80
Ui::LeftSideBar* ui;
81
82
/* History Parts */
83
QStringList history_file;
84
void
updateHistoryList();
85
86
/* Temp part */
87
TemperaryCacher
* cacher;
88
92
void
init_connections();
93
94
void
update_templist();
95
};
96
97
#endif
// LEFTSIDEBAR_H
LeftSideBar
LeftSideBar is the left widget displays.
Definition
LeftSideBar.h:14
LeftSideBar::load_temp
void load_temp(const QString label)
temp request
LeftSideBar::load_file
void load_file(const QString file)
file request
LeftSideBar::enqueue_history_file
void enqueue_history_file(const QString &file)
slots for the en-managing the history
Definition
LeftSideBar.cpp:21
LeftSideBar::remove_temp
void remove_temp(const QString &label)
remove a temp
Definition
LeftSideBar.cpp:32
LeftSideBar::show_temp
std::optional< QString > show_temp(const QString &label)
query a temp sessions
Definition
LeftSideBar.cpp:37
LeftSideBar::entemp
void entemp(const QString &label, const QString &context)
slots for holding a temperary info
Definition
LeftSideBar.cpp:27
LeftSideBar::temp_lables
QStringList temp_lables() const
temp labels holdings
Definition
LeftSideBar.cpp:17
TemperaryCacher
TemperaryCacher cached the tmp Markdown holder.
Definition
TemperaryCacher.h:10
extern_app
EasyNotes
ui
LeftSideBar.h
Generated by
1.9.8