forked from hiimgoodpack/brainlet-client
static all the things + gitignore
This commit is contained in:
parent
2b71b7da08
commit
090418e1df
2 changed files with 17 additions and 15 deletions
2
.gitignore
vendored
Normal file
2
.gitignore
vendored
Normal file
|
@ -0,0 +1,2 @@
|
||||||
|
*.o
|
||||||
|
*.out
|
30
main.cpp
30
main.cpp
|
@ -27,25 +27,25 @@
|
||||||
#include <vector>
|
#include <vector>
|
||||||
#include <string>
|
#include <string>
|
||||||
|
|
||||||
std::unique_ptr<Brainlet::Client> client = nullptr;
|
static std::unique_ptr<Brainlet::Client> client = nullptr;
|
||||||
|
|
||||||
std::unordered_map<Gtk::ListBoxRow*, std::string> channelRowToId;
|
static std::unordered_map<Gtk::ListBoxRow*, std::string> channelRowToId;
|
||||||
std::unordered_map<std::string, std::vector<Brainlet::Message>> messages;
|
static std::unordered_map<std::string, std::vector<Brainlet::Message>> messages;
|
||||||
std::string currentChannelId;
|
static std::string currentChannelId;
|
||||||
|
|
||||||
Gtk::Window* window;
|
static Gtk::Window* window;
|
||||||
|
|
||||||
Gtk::Widget* loginInterface;
|
static Gtk::Widget* loginInterface;
|
||||||
Gtk::Entry* domainEntry;
|
static Gtk::Entry* domainEntry;
|
||||||
Gtk::Entry* usernameEntry;
|
static Gtk::Entry* usernameEntry;
|
||||||
Gtk::Entry* passwordEntry;
|
static Gtk::Entry* passwordEntry;
|
||||||
Gtk::Button* loginButton;
|
static Gtk::Button* loginButton;
|
||||||
|
|
||||||
Gtk::Widget* chatInterface;
|
static Gtk::Widget* chatInterface;
|
||||||
Gtk::ListBox* channelList;
|
static Gtk::ListBox* channelList;
|
||||||
Gtk::ListBox* messageList;
|
static Gtk::ListBox* messageList;
|
||||||
Gtk::Entry* messageEntry;
|
static Gtk::Entry* messageEntry;
|
||||||
Gtk::Label* usernameLabel;
|
static Gtk::Label* usernameLabel;
|
||||||
|
|
||||||
gboolean update(gpointer) {
|
gboolean update(gpointer) {
|
||||||
client->processNextEvent();
|
client->processNextEvent();
|
||||||
|
|
Reference in a new issue