Own class derived form QTabWidget for editing rules. Now with one edit for rule name and two tabs - general and ip.