-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsimbagui.h
More file actions
36 lines (32 loc) · 964 Bytes
/
simbagui.h
File metadata and controls
36 lines (32 loc) · 964 Bytes
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
#ifndef __SIMBAGUI_H__
#define __SIMBAGUI_H__
#include "simba.h"
#include <gtkmm.h>
#include <gtkmm/application.h>
#include <gtkmm/messagedialog.h>
using namespace std;
class SimbaGUI {
private:
Simba *simba;
Gtk::Label *statusbar;
Gtk::Entry *pathbar;
Gtk::TreeView *tree_view;
Gtk::TreeModelColumn<Glib::ustring> itemval;
Gtk::TreeModelColumn<Glib::ustring> itemicon;
Glib::RefPtr< Gtk::ListStore > list_store;
Glib::RefPtr<Gtk::Application> app;
string current_path;
void showUI();
void on_item_click(const Gtk::TreeModel::Path& path, Gtk::TreeViewColumn* column);
bool on_pathbar_key_press(GdkEventKey* event);
void updateTreeView();
void on_btnUpload_click();
void on_btnDownload_click();
void on_btnBack_click();
void on_btnDelete_click();
void on_btnMkdir_click();
public:
SimbaGUI(string &server_ip, string &share, string &domain, string &username);
~SimbaGUI();
};
#endif