Exemplo n.º 1
0
 def insert_node_after_action_triggered(self, state):
     if state:
         self.model.state = ChangeNodesOrderState(
             self, 'after', self.insert_node_after_action)
     else:
         self.model.state = DefaultState()
Exemplo n.º 2
0
 def move_node_action_triggered(self, state):
     if state:
         self.model.state = MoveNodeState(curve=self)
     else:
         self.model.state = DefaultState()
Exemplo n.º 3
0
 def swap_nodes_action_triggered(self, state):
     if state:
         self.model.state = ChangeNodesOrderState(self, 'swap',
                                                  self.swap_nodes_action)
     else:
         self.model.state = DefaultState()
Exemplo n.º 4
0
 def remove_node_action_triggered(self, state):
     if state:
         self.model.state = RemoveNodeState(self)
     else:
         self.model.state = DefaultState()
Exemplo n.º 5
0
 def add_node_action_triggered(self, state):
     if state:
         self.model.state = AddNodeState(self)
     else:
         self.model.state = DefaultState()
Exemplo n.º 6
0
 def set_weight_action_triggered(self, state):
     if state:
         self.model.state = SetWeightNodeState(self)
     else:
         self.model.state = DefaultState()
Exemplo n.º 7
0
 def join_right_action_g1_triggered(self, state):
     if state:
         self.model.state = JoinRightSmoothState(self, "G1")
     else:
         self.model.state = DefaultState()
Exemplo n.º 8
0
 def split_curve_action_triggered(self, state):
     if state:
         self.model.state = SplitCurveState(self)
     else:
         self.model.state = DefaultState()