Horizon
Loading...
Searching...
No Matches
preferences_window_stock_info_digikey.hpp
1#pragma once
2#include <gtkmm.h>
3#include "util/sqlite.hpp"
4
5namespace horizon {
6
7class DigiKeyApiPreferencesEditor : public Gtk::Box {
8public:
9 DigiKeyApiPreferencesEditor(BaseObjectType *cobject, const Glib::RefPtr<Gtk::Builder> &x, class Preferences &prefs);
10 static DigiKeyApiPreferencesEditor *create(Preferences &prefs);
11
12private:
13 Preferences &preferences;
14 class DigiKeyApiPreferences &digikey_preferences;
15 Gtk::Entry *digikey_client_id_entry = nullptr;
16 Gtk::Entry *digikey_client_secret_entry = nullptr;
17 Gtk::SpinButton *digikey_max_price_breaks_sp = nullptr;
18 Gtk::ComboBoxText *digikey_site_combo = nullptr;
19 Gtk::ComboBoxText *digikey_currency_combo = nullptr;
20 Gtk::Label *digikey_token_label = nullptr;
21
22 void populate_and_bind_combo(Gtk::ComboBoxText &combo,
23 const std::vector<std::pair<std::string, std::string>> &items, std::string &value);
24
25 void update_warnings();
26 void update_token();
28};
29
30} // namespace horizon
Definition preferences_window_stock_info_digikey.hpp:7
Definition preferences.hpp:100
Definition preferences.hpp:167
Definition sqlite.hpp:72