31 lines
663 B
C++
31 lines
663 B
C++
#include <wx/wx.h>
|
|
#include <curl/curl.h>
|
|
#include <json/json.h>
|
|
#include <json/value.h>
|
|
|
|
#include "main.h"
|
|
|
|
class cSearch : public wxFrame {
|
|
public:
|
|
cSearch();
|
|
~cSearch();
|
|
|
|
struct passwd *pw = getpwuid(getuid());
|
|
std::string homedir = pw->pw_dir;
|
|
|
|
Json::FastWriter fastWriter;
|
|
Json::Reader jread;
|
|
Json::Value jval;
|
|
|
|
wxTextCtrl *searchBox = nullptr;
|
|
wxButton *searchButton = nullptr;
|
|
wxButton *searchAdd =nullptr;
|
|
|
|
wxListBox *searchList = nullptr;
|
|
|
|
void onSearch(wxCommandEvent &evt);
|
|
|
|
void onAdd(wxCommandEvent &evt);
|
|
|
|
wxDECLARE_EVENT_TABLE();
|
|
}; |