]> Dogcows Code - chaz/openbox/blobdiff - util/epist/parser.hh
don't actually focus windows when adding them to the current workspace. this is alrea...
[chaz/openbox] / util / epist / parser.hh
index 148649bd174b445f442bc1b9f3950264cac4bcf2..a237053482d837821a35a5a480b80ab8f65d78db 100644 (file)
@@ -1,7 +1,8 @@
-#include <string>
 #include "actions.hh"
 #include "keytree.hh"
 
+#include <string>
+
 class parser {
 public:
     parser(keytree *);
@@ -12,9 +13,15 @@ public:
     void setKey(std::string key)
     {  _key = key; }
 
-    void setArgument(std::string arg)
+    void setArgumentNum(std::string arg)
     { _arg = arg; }
 
+    void setArgumentNegNum(std::string arg)
+    { _arg = "-" + arg; }
+
+    void setArgumentStr(std::string arg)
+    { _arg = arg.substr(1, arg.size() - 2); }
+
     void setAction(std::string);
     void addModifier(std::string);
     void endAction();
This page took 0.02377 seconds and 4 git commands to generate.