-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathside.h
More file actions
70 lines (57 loc) · 1.08 KB
/
side.h
File metadata and controls
70 lines (57 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
#pragma once
#include <Windows.h>
#include <io.h>
#include <string>
#include "vec.h"
#include <iomanip>
#include <ctime>
#include <iostream>
#include <direct.h>
using std::string;
using std::cout;
using std::endl;
class side
{
public:
side(string p, size_t x, size_t y);
void show() const;
bool mooveDown();
bool mooveUp();
bool inactive();
bool active();
bool enter();
inline const string & getPath()
{
return path;
}
inline const _finddata_t & getActiveFInfo()
{
return files[indexFile];
}
static HANDLE hand;
static const size_t countFiles;
bool fillFiles();
inline void clearIndex()
{
indexFile = 0;
indexRow = 0;
upIndexFile = 0;
}
void writePath() const;
size_t getIndexByNameInCurrent(string name) const;
void makeDir(string name);
private:
void showTwoLines(size_t row) const;
void loadFilesPath();
void makePath();
void makeLine(const _finddata_t &finfo, string &str) const;
vec<_finddata_t> files;
vec<string> filesPath;
string path;
size_t indexFile;
size_t indexRow;
size_t upIndexFile;
size_t posX;
size_t posY;
bool isActive;
};