Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.markdown
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## ToolbarView

Accessible toolbar for tools, buttons, etc,
Accessible toolbar for tools, buttons, etc,

The software is licensed under LGPLv3.0. Please feel free to use it in your application.

Expand Down
16 changes: 8 additions & 8 deletions README.markdown~
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
## SlideRule

SlideRule is a custom UI widget that allows you to have a "slider-like" object
SlideRule is a custom UI widget that allows you to have a "slider-like" object
that can extend beyond the bounds of your window.

## Code Sample
Expand All @@ -13,37 +13,37 @@ First Example - creates a simple Slide Rule with default parameters.
CustomSliderTheme * theme = [CustomSliderTheme buildTheme:kCSThemeWhite];
[view addSubview:slideRuler];
[slideRuler applyTheme:theme];
[slideRuler release];
[slideRuler release];

</code>

But more realistically, you might want a label to display the value, set parameters,
and of course apply a theme to the sliderule.

<code>


SlideRuleControlView * slideRuler = [[SlideRuleControlView alloc] initWithFrame:CGRectMake(10, 150, 300, 50) params:parms];
CustomSliderTheme * theme = [CustomSliderTheme buildTheme:kCSThemeWhite];
[view addSubview:slideRuler];
[slideRuler applyTheme:theme];


SlideLabel * label = [[SlideLabel alloc] initWithFrame:CGRectMake(10, 200, 300, 30)];
[view addSubview:label];
[label setTextColor:[UIColor lightGrayColor]];
[slideRuler setSlideDelegate:label];
[label release];

// update our parameters to change the second slide rule
parms->minValue = 100.0f;
parms->maxValue = 400.0f;

SlideRuleControlView * secondSlider = [[SlideRuleControlView alloc] initWithFrame:CGRectMake(10, 300, 300, 50) params:parms];
[view addSubview:secondSlider];
[secondSlider setCurrentValue:150.0];
[secondSlider release];

</code>

## Obligatory Screenshot
Expand Down
4 changes: 2 additions & 2 deletions ToolDrawer/ToolDrawerAppDelegate.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

Expand Down
8 changes: 4 additions & 4 deletions ToolDrawer/ToolDrawerAppDelegate.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

Expand All @@ -30,7 +30,7 @@ - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(
{
self.window = [[UIWindow alloc] initWithFrame:[[UIScreen mainScreen] bounds]];
// Override point for customization after application launch.
self.viewController = [[ToolDrawerViewController alloc] initWithNibName:@"ToolDrawerViewController" bundle:nil];
self.viewController = [[ToolDrawerViewController alloc] initWithNibName:@"ToolDrawerViewController" bundle:nil];
self.window.rootViewController = self.viewController;
[self.window makeKeyAndVisible];
return YES;
Expand All @@ -47,7 +47,7 @@ - (void)applicationWillResignActive:(UIApplication *)application
- (void)applicationDidEnterBackground:(UIApplication *)application
{
/*
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
Use this method to release shared resources, save user data, invalidate timers, and store enough application state information to restore your application to its current state in case it is terminated later.
If your application supports background execution, this method is called instead of applicationWillTerminate: when the user quits.
*/
}
Expand Down
4 changes: 2 additions & 2 deletions ToolDrawer/ToolDrawerViewController.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

Expand Down
22 changes: 11 additions & 11 deletions ToolDrawer/ToolDrawerViewController.m
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

Expand All @@ -35,9 +35,9 @@ - (void)viewDidLoad
[super viewDidLoad];

ToolDrawerView *toolDrawerView;

UIButton *button;

toolDrawerView = [[ToolDrawerView alloc]initInVerticalCorner:kTopCorner andHorizontalCorner:kLeftCorner moving:kHorizontally];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"A" forState:UIControlStateNormal];
Expand All @@ -47,11 +47,11 @@ - (void)viewDidLoad
[toolDrawerView appendButton:button];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"C" forState:UIControlStateNormal];
[toolDrawerView appendButton:button];
[toolDrawerView appendButton:button];
[button addTarget:toolDrawerView action:@selector(blinkTabButton) forControlEvents:UIControlEventTouchDown];
[self.view addSubview:toolDrawerView];
[toolDrawerView blinkTabButton];

toolDrawerView = [[ToolDrawerView alloc]initInVerticalCorner:kTopCorner andHorizontalCorner:kRightCorner moving:kVertically];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"A" forState:UIControlStateNormal];
Expand All @@ -61,9 +61,9 @@ - (void)viewDidLoad
[toolDrawerView appendButton:button];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"C" forState:UIControlStateNormal];
[toolDrawerView appendButton:button];
[toolDrawerView appendButton:button];
[self.view addSubview:toolDrawerView];

toolDrawerView = [[ToolDrawerView alloc]initInVerticalCorner:kBottomCorner andHorizontalCorner:kLeftCorner moving:kVertically];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"A" forState:UIControlStateNormal];
Expand All @@ -73,9 +73,9 @@ - (void)viewDidLoad
[toolDrawerView appendButton:button];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"C" forState:UIControlStateNormal];
[toolDrawerView appendButton:button];
[toolDrawerView appendButton:button];
[self.view addSubview:toolDrawerView];

toolDrawerView = [[ToolDrawerView alloc]initInVerticalCorner:kBottomCorner andHorizontalCorner:kRightCorner moving:kHorizontally];
[self.view addSubview:toolDrawerView];
button = [UIButton buttonWithType:UIButtonTypeCustom];
Expand All @@ -86,7 +86,7 @@ - (void)viewDidLoad
[toolDrawerView appendButton:button];
button = [UIButton buttonWithType:UIButtonTypeCustom];
[button setTitle:@"C" forState:UIControlStateNormal];
[toolDrawerView appendButton:button];
[toolDrawerView appendButton:button];
}

- (void)viewDidUnload
Expand Down
10 changes: 5 additions & 5 deletions ToolDrawerView.h
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation, either version 3 of the License, or
// (at your option) any later version.
//
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
//
// You should have received a copy of the GNU General Public License
// along with this program. If not, see <http://www.gnu.org/licenses/>.

Expand Down Expand Up @@ -41,12 +41,12 @@ typedef enum{
CGPoint closePosition;

CGAffineTransform positionTransform;

UIButton *handleButton;
UIImage *handleButtonImage;
UIImage *handleButtonBlinkImage;
NSTimer *handleButtonBlinkTimer;

BOOL open;
}

Expand All @@ -63,7 +63,7 @@ typedef enum{

- (void)blinkTabButton;

- (UIButton *)appendItem:(NSString *)imageName;
- (UIButton *)appendItem:(NSString *)imageName;
- (UIButton *)appendImage:(UIImage *)img;
- (void)appendButton:(UIButton *)button;

Expand Down
Loading