2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-08-31 14:45:14 +00:00

Create and edit proxy box.

This commit is contained in:
John Preston
2018-04-28 19:58:22 +04:00
parent a7c77682d7
commit 9935a36c3d
7 changed files with 433 additions and 23 deletions

View File

@@ -124,6 +124,7 @@ public:
object_ptr<BoxContent> editItemBox(int id);
object_ptr<BoxContent> addNewItemBox();
bool setProxyEnabled(bool enabled);
void setTryIPv6(bool enabled);
rpl::producer<ItemView> views() const;
@@ -143,6 +144,14 @@ private:
void applyChanges();
void saveDelayed();
void replaceItemWith(
std::vector<Item>::iterator which,
std::vector<Item>::iterator with);
void replaceItemValue(
std::vector<Item>::iterator which,
const ProxyData &proxy);
void addNewItem(const ProxyData &proxy);
int _idCounter = 0;
int _selected = -1;
std::vector<Item> _list;