⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 topiclistener.pm

📁 codestriker is a develop useful tool to review code on web user interface.
💻 PM
字号:
################################################################################ Codestriker: Copyright (c) 2001, 2002 David Sitsky.  All rights reserved.# sits@users.sourceforge.net## This program is free software; you can redistribute it and modify it under# the terms of the GPL.# This is a base class for all of the topic listeners objects. It# provides an easy way to see what a listener is expected to# implement, and it also provides stub functions for listeners that# don't want to handle all of the events.package Codestriker::TopicListeners::TopicListener;use strict;sub new {    my $type = shift;    my $self = {};    return bless $self, $type;}sub topic_pre_create($$) {    my ($self, $user, $topic_title, $topic_description, $bug_ids,        $reviewers, $cc, $repository_url, $projectid) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}sub topic_create($$) {    my ($self, $user, $topic) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}sub topic_pre_changed($$$) {    my ($self, $user, $topic_orig, $topic) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}sub topic_changed($$$) {    my ($self, $user, $topic_orig, $topic) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}sub topic_viewed($$$) {    my ($self, $user, $topic) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}sub comment_create($$$) {    my ($self, $topic, $comment) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}sub comment_state_change($$$$$$$) {    my ($self, $user, $metric_name, $old_value, $new_value,        $topic, $comment) = @_;    # Default version of function that does nothing, and allowed the    # event to continue.    return '';}1;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -