Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Refactoring and update modules : Right click Contextual menu added #779

Merged

Conversation

CyrilPeponnet
Copy link
Member

On all modules :

In all the code : (except libraries)

  • replace [[CPImage alloc] initWithContentsOfFile:[bundle pathForResource:size:]] by CPImageInBundle(@"path", CPSizeMake(…), bundle)
  • replace [[CPColor alloc] initWithPatternImage] by CPColorWithImages(...)
  • replace [CPDictionary dictionaryWithObjectsAndKeys:object, @"key"] by @{@"key": object}

Some UI improvements :

  • Agent-ActionScheduler : Display minutes and seconds on 2 digits
  • HypervisorVMScheduler : Better alignment of the status cell
  • Agent-VMCasting : Fix bad name when attaching an appliance and bad status if vm was indefined before attachment.
  • Toolbar XMPPServer : Autocompletion when adding a new user based on the current selected domain.

This PR need some cappuccino fixes :

…al menu items

Removed any references to module menu.
Added a buttonbarbutton mangement in TNModules
Added a contextual menuItem management in TNModules
Added also Sender detection.
XIB : Change Popover to transients.
(we can't use the model defined in TNModule as this controller is not a
module).
Related to adapt selection on right click.
…tonBar refactoring

+ use CPImageInBundle, @{@"key":object} ...
…tonBar refactoring

Also use CPImageInBundle when necessary
…onBar refactoring

+ FIX the filtered view with searchfield
…oring

Contextual menu only to apply role on one or more selected users.
XIB : Also fix a performclick action on textfield which send twice the
scheduling action when using enter key on popover.
Replaced the warning message when multiple items are not allowed, by
disabling the controls (thanks to permissionControler :) )
@@ -98,10 +98,10 @@ var TNArchipelTypePermissions = @"archipel:permissions",
- (void)awakeFromCib
{
_currentUserPermissions = [CPArray array];
_defaultAvatar = [[CPImage alloc] initWithContentsOfFile:[[CPBundle mainBundle] pathForResource:@"user-unknown.png"]];
_defaultAvatar = CPImageInBundle(@"user-unknown.png", nil [CPBundle mainBundle]);
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dude!

@primalmotion
Copy link
Member

When we right click on table void to add something, the popover should open on the plus button, (or related creation button), not in the tableview

Fixed ugly typo from hell
Pass the capplint test on all j files, strict mode only warn on
consecutive var declarations.
@CyrilPeponnet
Copy link
Member Author

Ready for review should be ok for now, just need the capp fix :)

@primalmotion primalmotion merged commit 7da0508 into ArchipelProject:master Apr 23, 2013
@primalmotion
Copy link
Member

Good. Merged. Thanks!

@CyrilPeponnet CyrilPeponnet deleted the refactoring-and-update-modules branch April 23, 2013 20:35
@nicolasochem
Copy link
Member

great work!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

right-click on multiple roster items should have "remove" option always offer right-click menu on lists
3 participants