Make all the controls non-copyable so that I don't get weird, insidious, hard-to-track errors from forgetting a reference mark like I did when converting the edit item type dialogs

This commit is contained in:
2014-11-29 02:14:48 -05:00
parent c855983de4
commit ed056368c1
7 changed files with 18 additions and 0 deletions

View File

@@ -66,6 +66,8 @@ public:
void attachClickHandlers(std::function<bool(cDialog&,std::string,eKeyMod)> handler, std::vector<std::string> controls);
void attachFocusHandlers(std::function<bool(cDialog&,std::string,bool)> handler, std::vector<std::string> controls);
RECT getBounds() {return winRect;}
cDialog& operator=(cDialog& other) = delete;
cDialog(cDialog& other) = delete;
private:
void draw();
std::string process_keystroke(cKey keyHit);