Questions tagged [extending]
302 questions
0
votes
1 answer
C++ Defining a specific object type when extending a template class
I have written a short template list class defining some methods I would like to use in implementations of it. My current problem is that I am having trouble extending the generic template type and defining a specific type.
In other words, assume I…

turkycat
- 35
- 7
0
votes
4 answers
Extending the Template Controller in Kohana
I'm having a bit of confusion in attempting to retroactively create a new base controller for my project. If I'm not mistaken, all I need to do is create a file in application/libraries called MY_baseController.php containing the following:
class…

Sampson
- 265,109
- 74
- 539
- 565
0
votes
6 answers
Create an extendable array in Java
I want to create an extendable array.
Whenever you try and add an element into the array and it's full:
it should copy every element from the current array into the new one
(including the new element that you want to add),
then it should delete…

Alex
- 627
- 3
- 12
- 32
0
votes
1 answer
How to extend the Qt Print Dialog
Is it possible to extend the Qt print dialog (QPrintDialog) with additional UI elements, as it can be done in MFC via the PD_ENABLEPRINTTEMPLATE macro? See this link.
I didn't find anything in the Qt documentation about this.
It seems that Qt shows…

Fabian
- 1,824
- 3
- 19
- 35
0
votes
1 answer
Can I extend the core helpers within a package in Code Igniter?
I'm building my own base to use on multiple sites that I will be building. And I've made a package for that. But I want to extend the CI helpers in that package (not in the app) - helpers such as url_helper, html_helper etc.
I've put a config folder…

Ciprian Mocanu
- 2,166
- 3
- 25
- 44
0
votes
0 answers
control where markup should appear on rendered page?
I am building a Extender control. This control derives from the normal Control. Its purpose is to inject some text before/after the specified target control. I imagine this to be similar to how the AJAX Calendar Extender works. So it has the…

deostroll
- 11,661
- 21
- 90
- 161
0
votes
1 answer
Extending Backbone Objects
I am in need of extending the major Backbone functions (View, Model, Router) with some own members. However, the following does not work properly:
Backbone.View.prototype.foo = ["bar"];
Admittedly, the expression
testView = new…

Leo Selig
- 1,062
- 1
- 16
- 30
0
votes
1 answer
Writing a custom attr_special function in Rails 3
Apologies in advance - I'm very much a learner, and writing projects as a means to learn. In this one, I'm trying to extend ActiveRecord so that I can do the following...
In my model definition, call ...
attr_special :field, :field
Then, elsewhere,…

user1129657
- 17
- 3
-1
votes
1 answer
Expanding an array by one
I have a class filtercollection which holds a collection of Filters:
class TransactionTypeFilterCollection
{
public CategoryNode FilterCollection { get; private set; }
public TransactionTypeFilter[] Filters { get; private set; }
public…

julian bechtold
- 1,875
- 2
- 19
- 49
-1
votes
1 answer
Extending a 1-element list with another valid list returning NoneType
I have a list I generate like this:
cols = [td['data-stat'] for td in rows[0].find_all("td")]
cols contains:
['age','team_id','lg_id','pos','g','gs','mp','fg', ...]
as it should. However, when I insert "season" to the beginning OR extend…

Sam Dillard
- 670
- 1
- 5
- 18
-1
votes
1 answer
Properly extending the DOM
I want to create a custom method that would be available inside each HTML DOM object. I achieved the desired result by prototyping the "Element" object, however, from what I've read this can lead to quite a few problems. From what I've read it is…

DrSandwich
- 9
- 1
-1
votes
1 answer
Why can't a class extending JTextField instantiate a JPasswordField?
I have an empty class MyJTextField extending JTextField, and I want MyJTextField to be initialized as JPasswordField, like JTextField can do.
JTextField pass = new JPasswordField(); //no errors
but
MyJTextField pass = new JPasswordField();//"Type…

tec
- 999
- 3
- 18
- 40
-1
votes
2 answers
Is it possible to extend string resources lookup in Android?
I have a multilanguage application that uses the standard xml files to provide string values in different laguages.
...
res/values/strings.xml
res/values-es/strings.xml
res/values-pt/strings.xml
...
What I want to do is override the normal behavior…

dami
- 25
- 4
-2
votes
2 answers
How does extending a programming language work?
I have no programming experience but am interested in learning a language.
So reading this section "http://wiki.freaks-unidos.net/weblogs/azul/principles-of-software#extend-your-language-to-match-your-domain" made me curious about programming a…
newt
-2
votes
1 answer
Extending struct member with another struct
Instead of making a new question I will edit this one by completely erasing the previous one, hopefully making it less confusing.
Wall of text.
I have a basic struct that has some basic values, such as image width, height and x and y positions, like…

KFA
- 61
- 6