Logo Search packages:      
Sourcecode: inkscape version File versions

MessageId Inkscape::MessageStack::flash ( MessageType  type,
gchar const *  message 
)

temporarily pushes a message onto the stack

Parameters:
type the message type
message the message text
Returns:
the id of the pushed message

Definition at line 65 of file message-stack.cpp.

References _push().

Referenced by Inkscape::UI::ClipboardManagerImpl::_userWarn(), do_trace(), fit_canvas_to_selection(), Inkscape::MessageContext::flash(), flashVF(), Inkscape::Trace::Tracer::getSelectedSPImage(), Inkscape::have_viable_layer(), SPDesktop::next_zoom(), node_do_selected_join(), pen_handle_button_press(), pencil_handle_button_release(), Inkscape::LayerVerb::perform(), SPDesktop::prev_zoom(), Inkscape::Trace::Tracer::sioxProcessImage(), sp_file_revert_dialog(), sp_file_vacuum(), sp_flood_do_flood_fill(), sp_knot_handler(), sp_node_selected_delete_segment(), sp_selection_set_mask(), and Inkscape::Trace::Tracer::traceThread().

                                                                    {
    switch (type) {
    case INFORMATION_MESSAGE: // stay rather long so as to seem permanent, but eventually disappear
        return _push(type, 6000 + 80*strlen(message), message);
        break;
    case ERROR_MESSAGE: // pretty important stuff, but temporary
        return _push(type, 4000 + 60*strlen(message), message);
        break;
    case WARNING_MESSAGE: // a bit less important than error
        return _push(type, 2000 + 40*strlen(message), message);
        break;
    case IMMEDIATE_MESSAGE: // same length as normal, higher priority
        return _push(type, 1000 + 20*strlen(message), message);
        break;
    case NORMAL_MESSAGE: // something ephemeral
    default:
        return _push(type, 1000 + 20*strlen(message), message);
        break;
    }
}


Generated by  Doxygen 1.6.0   Back to index