Dialog tab order implementation

- Defaults to order of definition in file
- tab-order attribtue can be set to a postive number to force towards the start, or a negative number to force towards the end
This commit is contained in:
2014-11-29 16:03:54 -05:00
parent 6f9b5c8f69
commit 84f53a8a7d
4 changed files with 67 additions and 13 deletions

View File

@@ -13,6 +13,7 @@
#include <string>
#include <map>
#include <vector>
#include <exception>
#include "ticpp.h"
@@ -39,6 +40,7 @@ class cDialog {
cTextField* currentFocus;
cDialog* parent;
void loadFromFile(std::string path);
std::vector<std::pair<std::string,cTextField*>> tabOrder;
public:
static void init();
static bool noAction(cDialog&,std::string,eKeyMod) {return true;}