|
|
@ -1062,6 +1062,18 @@ public:
|
|
|
|
|
|
|
|
|
|
|
|
std::string getFocusString() { return "stocks_view"; }
|
|
|
|
std::string getFocusString() { return "stocks_view"; }
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
df::item *getSelectedItem() override
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
if (is_grouped)
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
|
|
|
|
vector<item_grouped_entry*> items = getSelectedItems();
|
|
|
|
|
|
|
|
if (items.size() != 1)
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
|
|
|
|
if (items[0]->entries.size() != 1)
|
|
|
|
|
|
|
|
return nullptr;
|
|
|
|
|
|
|
|
return items[0]->entries[0];
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
private:
|
|
|
|
private:
|
|
|
|
StockListColumn<item_grouped_entry *> items_column;
|
|
|
|
StockListColumn<item_grouped_entry *> items_column;
|
|
|
|
int selected_column;
|
|
|
|
int selected_column;
|
|
|
|