This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.

Bug 217173 - Implement the New CSS Rule and Attach Style Sheet dialogs per the styling spec
Summary: Implement the New CSS Rule and Attach Style Sheet dialogs per the styling spec
Status: RESOLVED FIXED
Alias: None
Product: web
Classification: Unclassified
Component: CSS Visual Tools (show other bugs)
Version: 7.3
Hardware: All All
: P2 normal (vote)
Assignee: Marek Fukala
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-08-21 15:40 UTC by Petr Jiricka
Modified: 2012-09-03 12:51 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Petr Jiricka 2012-08-21 15:40:36 UTC
Tracking issue - need not to forget to implement the dialogs described on page 6 of the css_styles_v2.pdf spec.
Comment 1 Petr Jiricka 2012-08-22 15:11:30 UTC
Marek says he can implement a minimalist version of this UI sometime this week.
Comment 2 Marek Fukala 2012-08-24 14:43:47 UTC
some progress:

changeset:   230919:e0900d23d438
summary:     fiddling with RE and PropertySheet popups, added a new RE popup with all actions (though I'm unable to associate the popup to the PropertySheet, added "menu icon" similar to what is in the spec, implemented "Remove rule" action, added placeholder for "Add rule" action.
Comment 3 Marek Fukala 2012-08-25 14:34:55 UTC
changeset:   230949:507dc55289dc
summary:     #217173 - *RuleEditor's* create new rule functionality. It just allows to create new css rule in the stylesheet associated to the current model/rule.
Comment 4 Marek Fukala 2012-08-26 15:04:28 UTC
web-main#ab3700a8c246

a) added "delete" action to the html navigator nodes
   - when invoked, it removes the whole element's subtree from the source code
b) added "modify rules" action to the html navigator nodes
   - allows to change class and id attributes of the selected element
   - very raw implementation:
       - allows only to use already linked stylesheets
       - allows only to use existing classe and id rules
c) added context actions to the Rule Editor (popup and a menu icon in the top right corner):
   - add property (does the same as the button at the bottom)
   - delete rule (removes the selected css rule)
   - create rule - opens a dialog similar to #b, you may create new class or id rule *in the associated css file* and specify where to put it (if into a body or into an at-rule).
Comment 5 Marek Fukala 2012-08-27 14:39:55 UTC
btw, I've just added:

changeset:   231012:24e96260c861
summary:     the "Modify Rules" UI now creates new class or id selectors if they do not exist in the selected stylesheet

so you may just type a class and id, select a stylesheet and it will both modify the html element source and the selected stylesheet.
Comment 6 Quality Engineering 2012-09-03 12:51:41 UTC
Integrated into 'main-golden', will be available in build *201209031048* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main-golden/rev/507dc55289dc
User: Marek Fukala <mfukala@netbeans.org>
Log: #217173 - *RuleEditor's* create new rule functionality. It just allows to create new css rule in the stylesheet associated to the current model/rule.