Project

General

Profile

« Previous | Next » 

Revision 8a16b7a0

Added by david.sorber over 2 years ago

Tokenize a filter criteria and then search the catalog for feach filter
criteria token.

View differences:

src/main.cc
#endif
const std::string APP_NAME("pwmgr");
const std::string VERSION("v0.1.2");
const std::string VERSION("v0.1.3");
const std::string DEFAULT_FILEPATH("/home/dsorber/Documents/chicken_soup/chicken_soup.txt.enc");
const std::string BOLD{"\033[1m"};
......
Catalog catalog;
const char* STR_EMPTY = "";
const char* STR_PWD = "enter password and click \"Load\"";
const char* STR_LOADING = "Loading...";
static ImGuiInputTextFlags MULTILINE_TEXT_FLAGS =
......
char filterBuffer[128]{};
char filePathBuffer[BUFFER_SIZE]{};
std::memcpy(filePathBuffer, DEFAULT_FILEPATH.data(), DEFAULT_FILEPATH.size());
const char* statusText = STR_EMPTY;
const char* statusText = STR_PWD;
char passwdBuffer[BUFFER_SIZE]{};
while (! done)
......
}
ImGui::SameLine();
ImGui::Text(statusText);
ImGui::Text("Status: %s", statusText);
if (loading)
{
......
iter.getValueBuffer(),
iter.getValueBufferSize(),
ImVec2(-FLT_MIN,
ImGui::GetTextLineHeight() * 4),
ImGui::GetTextLineHeight() * 5),
MULTILINE_TEXT_FLAGS);
}
}

Also available in: Unified diff