mirror of
https://github.com/amyinspace/MagicSetEditor2.git
synced 2026-06-11 13:17:00 -04:00
Added support for custom colors for graphs;
Moved 'choice colors' from styel to field, split into 'choice colors' and 'choice colors cardlist'; Added support for pie graphs (no gui to use them, though); Fixed bugs caused by selecting a card before the set was changed on all panels. git-svn-id: svn://svn.code.sf.net/p/magicseteditor/code/trunk@336 0fc631ac-6414-0410-93d0-97cfa31319b6
This commit is contained in:
@@ -93,6 +93,13 @@ void DataViewer::setCard(const CardP& card, bool refresh) {
|
||||
onChangeSize();
|
||||
}
|
||||
|
||||
void DataViewer::onChangeSet() {
|
||||
viewers.clear();
|
||||
onInit();
|
||||
onChange();
|
||||
onChangeSize();
|
||||
}
|
||||
|
||||
// ----------------------------------------------------------------------------- : Viewers
|
||||
|
||||
struct CompareViewer {
|
||||
|
||||
@@ -67,6 +67,9 @@ class DataViewer : public SetView {
|
||||
/** \param refresh: Always refresh, even if this card is already shown */
|
||||
void setCard(const CardP& card, bool refresh = false);
|
||||
|
||||
/// Clear data
|
||||
virtual void onChangeSet();
|
||||
|
||||
// --------------------------------------------------- : The viewers
|
||||
protected:
|
||||
/// Set the styles for the data to be shown, recreating the viewers
|
||||
|
||||
Reference in New Issue
Block a user