text
stringlengths 0
14.1k
|
---|
// hints |
{ |
const uint32_t hints(plugin.getParameterHints(i)); |
if (hints & kParameterIsBoolean) |
pluginString += "" lv2:portProperty lv2:toggled ;\n""; |
if (hints & kParameterIsInteger) |
pluginString += "" lv2:portProperty lv2:integer ;\n""; |
if (hints & kParameterIsLogarithmic) |
pluginString += "" lv2:portProperty <"" LV2_PORT_PROPS__logarithmic ""> ;\n""; |
if ((hints & kParameterIsAutomable) == 0 && ! plugin.isParameterOutput(i)) |
{ |
pluginString += "" lv2:portProperty <"" LV2_PORT_PROPS__expensive ""> ,\n""; |
pluginString += "" <"" LV2_KXSTUDIO_PROPERTIES__NonAutomable ""> ;\n""; |
} |
} |
if (i+1 == count) |
pluginString += "" ] ;\n\n""; |
else |
pluginString += "" ] ,\n""; |
} |
} |
pluginString += "" doap:name \"""" + d_string(plugin.getName()) + ""\"" ;\n""; |
pluginString += "" doap:maintainer [ foaf:name \"""" + d_string(plugin.getMaker()) + ""\"" ] .\n""; |
pluginFile << pluginString << std::endl; |
pluginFile.close(); |
std::cout << "" done!"" << std::endl; |
} |
} |
" isc |
rhaphazard/moebooru lib/assets/javascripts/moe-legacy/notes.js 21067 "// The following are instance methods and variables |
var Note = Class.create({ |
initialize: function(id, is_new, raw_body) { |
if (Note.debug) { |
console.debug(""Note#initialize (id=%d)"", id) |
} |
this.id = id |
this.is_new = is_new |
this.document_observers = []; |
// Cache the elements |
this.elements = { |
box: $('note-box-' + this.id), |
corner: $('note-corner-' + this.id), |
body: $('note-body-' + this.id), |
image: $('image') |
} |
// Cache the dimensions |
this.fullsize = { |
left: this.elements.box.offsetLeft, |
top: this.elements.box.offsetTop, |
width: this.elements.box.clientWidth, |
height: this.elements.box.clientHeight |
} |
// Store the original values (in case the user clicks Cancel) |
this.old = { |
raw_body: raw_body, |
formatted_body: this.elements.body.innerHTML |
} |
for (p in this.fullsize) { |
this.old[p] = this.fullsize[p] |
} |
// Make the note translucent |
if (is_new) { |
this.elements.box.setOpacity(0.2) |
} else { |
this.elements.box.setOpacity(0.5) |
} |
if (is_new && raw_body == '') { |
this.bodyfit = true |
this.elements.body.style.height = ""100px"" |
} |
// Attach the event listeners |
this.elements.box.observe(""mousedown"", this.dragStart.bindAsEventListener(this)) |
this.elements.box.observe(""mouseout"", this.bodyHideTimer.bindAsEventListener(this)) |
this.elements.box.observe(""mouseover"", this.bodyShow.bindAsEventListener(this)) |
this.elements.corner.observe(""mousedown"", this.resizeStart.bindAsEventListener(this)) |
this.elements.body.observe(""mouseover"", this.bodyShow.bindAsEventListener(this)) |
this.elements.body.observe(""mouseout"", this.bodyHideTimer.bindAsEventListener(this)) |
this.elements.body.observe(""click"", this.showEditBox.bindAsEventListener(this)) |
this.adjustScale() |
}, |
// Returns the raw text value of this note |
textValue: function() { |
if (Note.debug) { |
console.debug(""Note#textValue (id=%d)"", this.id) |
} |
return this.old.raw_body.strip() |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.