bugPSPP - Bugs: bug #24975, Show variable attributes in var...

 
 

bug #24975: Show variable attributes in var sheet

Submitter:  John Darrington <jmd>
Submitted:  Sun 30 Nov 2008 11:29:19 PM UTC
   
 
Category:  Sheet Severity:  1 - Wishlist
Status:  None Assigned to:  None
Open/Closed:  Open Release:  Future
Effort:  0.00
* Mandatory Fields

Add a New Comment Rich Markup
   

Wed 03 Dec 2008 11:10:39 PM UTC, comment #3: 

That's also a possibility.

I think we'd need two callbacks similar to:

void (*var_attribute_added) (struct dictionary *d, int var, const char *attr_name, void *aux);

void (*var_attribute_deleted) (struct dictionary *d, int var, const char *attr_name, void *aux);

The "int var" parameter might not be needed, but all the other call backs have it ...

John Darrington <jmd>
Group administrator
Wed 03 Dec 2008 04:24:30 AM UTC, comment #2: 


>...the dictionary needs an additional structure which will contain
>the union of all the sets of variable attribute names for all
>variables in that dictionary.


It really doesn't sound ideal to put this in struct dictionary, since most struct dictionary clients have no interest in it.  To me, it sounds like a better idea to put it in an auxiliary structure that PSPPIRE maintains (I think that we have PsppireDictionary or some such object) and update it from a callback when something changes.

If we don't have all the necessary callbacks for this then I'd be glad to add them.

>This structure also will need to be indexable by integer value.
>I suggest that Ben's abt structure containing reference counted
>elements would be the way to go.


It certainly sounds like a reasonable option.

Ben Pfaff <blp>
Group administrator
Tue 02 Dec 2008 11:12:56 PM UTC, comment #1: 

In order to make this possible, the dictionary needs an additional structure which will contain the union of all the sets of variable attribute names for all variables in that dictionary.  This structure also will need to be indexable by integer value.

I suggest that Ben's abt structure containing reference counted elements would be the way to go.   Does anyone have any better suggestions?

John Darrington <jmd>
Group administrator
Sun 30 Nov 2008 11:29:19 PM UTC, original submission:  

The GUI's variable sheet should display and allow editing of the VARIABLE ATTRIBUTES.

John Darrington <jmd>
Group administrator

 

(Note: upload size limit is set to 16384 kB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

No files currently attached

 

Depends on the following items: None found

Items that depend on this one: None found

 

Carbon-Copy List
  • -email is unavailable- added by blp (Posted a comment)
  • -email is unavailable- added by jmd (Submitted the item)
  •  

    There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

    Only logged-in users can vote.

     

    Follow 3 latest changes.

    Date Changed by Updated Field Previous Value => Replaced by
    2018-08-10 jmd ReleaseBefore 1.2 Future
    2016-01-15 jmd CategoryGraphical User Interface Sheet
    2011-05-14 blp ReleaseNone Before 1.2

    Back to the top

    Powered by Savane 3.13-3230.
    Corresponding source code