def move_menus(): py_menu_slug = PY_MENU.lower() dj_menu_slug = DJ_MENU.lower() py_checkers_slug = PY_CHECKERS.lower() separated_menu(py_menu_slug) move_menu_submenu(py_menu_slug, dj_menu_slug) separated_menu(py_menu_slug) move_menu_submenu(py_menu_slug, py_checkers_slug)
# the Free Software Foundation, either version 3 of the License, or # (at your option) any later version. # # This software is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Lesser General Public License for more details. # # You should have received a copy of the GNU Lesser General Public License # along with this software. If not, see <http://www.gnu.org/licenses/>. from kate_core_plugins import create_mainmenu, create_submenu, separated_menu PY_MENU = create_mainmenu('Python', 'python') DJ_MENU = create_submenu('Django', 'django', PY_MENU) separated_menu(PY_MENU) PY_CHECKERS = create_submenu('Checkers', 'py_checkers', PY_MENU) JS_MENU = create_mainmenu('Javascript', 'javascript') JS_CHECKERS = create_submenu('Checkers', 'js_checkers', JS_MENU) separated_menu(JS_MENU) TOOLS_MENU = 'tools' separated_menu(TOOLS_MENU) PR_MENU = create_submenu('Pretty print', 'pretty-print', TOOLS_MENU) separated_menu(TOOLS_MENU) KATE_ACTIONS = { 'insertIPDB': {'text': 'ipdb', 'shortcut': 'Ctrl+I', 'menu': PY_MENU, 'icon': None},