Permalink
Browse files

Added disabled button support

  • Loading branch information...
1 parent f8c4a95 commit 031bdd0b447711ea198b714cd526e1741f41460d @davglass committed Jun 27, 2009
View

Large diffs are not rendered by default.

Oops, something went wrong.
View
@@ -7,7 +7,7 @@ The GUI now works (if you have the yuidoc dependencies already installed)
There are a couple of additions I still want to make:
* Progress Spinner
-* Disable Generate button of all data is not present
+* _Disable Generate button of all data is not present (done)_
* Animate the logger window so it's smaller to begin with.
* Create an icon
@@ -231,8 +231,6 @@
<key>Layout</key>
<array>
<dict>
- <key>BecomeActive</key>
- <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXBottomSmartGroupGIDs</key>
@@ -344,6 +342,8 @@
<string>0pt</string>
</dict>
<dict>
+ <key>BecomeActive</key>
+ <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -380,9 +380,9 @@
</array>
<key>TableOfContents</key>
<array>
- <string>F0FC833A0FF5A0EC00CC02FF</string>
+ <string>F09CAD810FF5DEE8000E0629</string>
<string>1CE0B1FE06471DED0097A5F4</string>
- <string>F0FC833B0FF5A0EC00CC02FF</string>
+ <string>F09CAD820FF5DEE8000E0629</string>
<string>1CE0B20306471E060097A5F4</string>
<string>1CE0B20506471E060097A5F4</string>
</array>
@@ -516,9 +516,10 @@
<integer>5</integer>
<key>WindowOrderList</key>
<array>
- <string>1C78EAAD065D492600B07095</string>
- <string>/Volumes/Data/davglass/src/dev/yuidoc-app/YUIDocGUI.xcodeproj</string>
+ <string>F0118C820FF3C22800AC47D0</string>
<string>1CD10A99069EF8BA00B06720</string>
+ <string>/Volumes/Data/davglass/src/dev/yuidoc-app/YUIDocGUI.xcodeproj</string>
+ <string>1C78EAAD065D492600B07095</string>
</array>
<key>WindowString</key>
<string>157 397 785 453 0 0 1440 878 </string>
@@ -598,7 +599,7 @@
<key>TableOfContents</key>
<array>
<string>F0118C820FF3C22800AC47D0</string>
- <string>F0F9B8050FF5A07700430FF7</string>
+ <string>F09CAD960FF5E56B000E0629</string>
<string>1CD0528F0623707200166675</string>
<string>XCMainBuildResultsModuleGUID</string>
</array>
@@ -692,10 +693,10 @@
<key>Frame</key>
<string>{{418, 0}, {498, 236}}</string>
<key>RubberWindowFrame</key>
- <string>147 115 916 484 0 0 1440 878 </string>
+ <string>96 119 916 484 0 0 1440 878 </string>
</dict>
<key>RubberWindowFrame</key>
- <string>147 115 916 484 0 0 1440 878 </string>
+ <string>96 119 916 484 0 0 1440 878 </string>
</dict>
<key>Module</key>
<string>PBXDebugSessionModule</string>
@@ -718,18 +719,18 @@
<key>TableOfContents</key>
<array>
<string>1CD10A99069EF8BA00B06720</string>
- <string>F0FC833C0FF5A0EC00CC02FF</string>
+ <string>F09CAD830FF5DEE8000E0629</string>
<string>1C162984064C10D400B95A72</string>
- <string>F0FC833D0FF5A0EC00CC02FF</string>
- <string>F0FC833E0FF5A0EC00CC02FF</string>
- <string>F0FC833F0FF5A0EC00CC02FF</string>
- <string>F0FC83400FF5A0EC00CC02FF</string>
- <string>F0FC83410FF5A0EC00CC02FF</string>
+ <string>F09CAD840FF5DEE8000E0629</string>
+ <string>F09CAD850FF5DEE8000E0629</string>
+ <string>F09CAD860FF5DEE8000E0629</string>
+ <string>F09CAD870FF5DEE8000E0629</string>
+ <string>F09CAD880FF5DEE8000E0629</string>
</array>
<key>ToolbarConfiguration</key>
<string>xcode.toolbar.config.debugV3</string>
<key>WindowString</key>
- <string>147 115 916 484 0 0 1440 878 </string>
+ <string>96 119 916 484 0 0 1440 878 </string>
<key>WindowToolGUID</key>
<string>1CD10A99069EF8BA00B06720</string>
<key>WindowToolIsVisible</key>
@@ -851,6 +852,8 @@
<key>Dock</key>
<array>
<dict>
+ <key>BecomeActive</key>
+ <true/>
<key>ContentConfiguration</key>
<dict>
<key>PBXProjectModuleGUID</key>
@@ -886,7 +889,7 @@
<key>TableOfContents</key>
<array>
<string>1C78EAAD065D492600B07095</string>
- <string>F0FC83420FF5A0EC00CC02FF</string>
+ <string>F09CAD970FF5E56B000E0629</string>
<string>1C78EAAC065D492600B07095</string>
</array>
<key>ToolbarConfiguration</key>
@@ -896,7 +899,7 @@
<key>WindowToolGUID</key>
<string>1C78EAAD065D492600B07095</string>
<key>WindowToolIsVisible</key>
- <false/>
+ <true/>
</dict>
<dict>
<key>Identifier</key>
@@ -57,8 +57,8 @@
PBXFileDataSource_Warnings_ColumnID,
);
};
- PBXPerProjectTemplateStateSaveDate = 267755751;
- PBXWorkspaceStateSaveDate = 267755751;
+ PBXPerProjectTemplateStateSaveDate = 267771621;
+ PBXWorkspaceStateSaveDate = 267771621;
};
sourceControlManager = F0118C690FF3B5FA00AC47D0 /* Source Control */;
userBuildSettings = {
View
@@ -113,9 +113,9 @@ def validate(self):
#NSLog("LOG: %s" % self.logoutput)
NSLog("VALIDATE: ")
self._can_start = False
- #self.generate.setEnabled_(False)
+ self.generateButton.setEnabled_(False)
if self.project_version and self.project_name and self.project_url and self.sourcepath and self.savepath:
- #self.generate.setEnabled_(True)
+ self.generateButton.setEnabled_(True)
self._can_start = True
@@ -135,7 +135,8 @@ def generate_(self, value):
NSLog("Can not start, not enough info")
return
- self.textView.insertText_('Doc generation starting, please wait..')
+ self.textView.insertText_('Doc generation starting, please wait..\n')
+ self.generateButton.setTitle_('Generating..')
##This is a hack and needs to be fixed..
yuidocPath = "%s/YUIDocGUI.app/Contents/Resources/yuidoc" % os.path.abspath('./')
@@ -160,7 +161,7 @@ def generate_(self, value):
NSLog("Run: %s" % args)
NSLog('Path: %s' % yuidocPath)
- #call(args)
+ call(args)
error_file = open('/tmp/yuidoc.log', 'w+')
logoutput = ''
@@ -172,7 +173,8 @@ def generate_(self, value):
logoutput = "%s %s" % (logoutput, f.read())
NSLog("LOG: %s" % logoutput)
- self.textView.insertText_('%s\n\nDocs finished..' % logoutput)
+ self.textView.insertText_('%s\nDocs finished..' % logoutput)
NSLog("Docs finished..")
+ self.generateButton.setTitle_('Generate Docs')
@@ -113,9 +113,10 @@ def validate(self):
#NSLog("LOG: %s" % self.logoutput)
NSLog("VALIDATE: ")
self._can_start = False
- #self.generate.setEnabled_(False)
+ self.generateButton.setEnabled_(False)
+ NSLog("VALIDATE: %s" % self.sourcepath)
if self.project_version and self.project_name and self.project_url and self.sourcepath and self.savepath:
- #self.generate.setEnabled_(True)
+ self.generateButton.setEnabled_(True)
self._can_start = True
@@ -135,7 +136,8 @@ def generate_(self, value):
NSLog("Can not start, not enough info")
return
- self.textView.insertText_('Doc generation starting, please wait..')
+ self.textView.insertText_('Doc generation starting, please wait..\n')
+ self.generateButton.setTitle_('Generating..')
##This is a hack and needs to be fixed..
yuidocPath = "%s/YUIDocGUI.app/Contents/Resources/yuidoc" % os.path.abspath('./')
@@ -159,7 +161,7 @@ def generate_(self, value):
NSLog("Run: %s" % args)
NSLog('Path: %s' % yuidocPath)
-
+ return True
#call(args)
error_file = open('/tmp/yuidoc.log', 'w+')
@@ -172,7 +174,8 @@ def generate_(self, value):
logoutput = "%s %s" % (logoutput, f.read())
NSLog("LOG: %s" % logoutput)
- self.textView.insertText_('%s\n\nDocs finished..' % logoutput)
+ self.textView.insertText_('%s\nDocs finished..' % logoutput)
NSLog("Docs finished..")
+ self.generateButton.setTitle_('Generate Docs')
@@ -1,10 +1,10 @@
-66042a0e9a5fc4b7b9452dffd4091955 4a2c91e0eb64e4d1ac295656d33782dc ffffffffffffffffffffffffffffffff 102 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app
-000000004a4568b0000000000001bb85 9ac45fcbbd08a2828eba54acceaf492b ffffffffffffffffffffffffffffffff 19044 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/English.lproj/MainMenu.nib
+66042a0e9a5f07a0b9452dffd409184f 4a2c91e0eb64e4d1ac295656d33782dc ffffffffffffffffffffffffffffffff 102 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app
+00000000000000000000000000000000 7d8b47b511c1a27aa29a983037b33126 ffffffffffffffffffffffffffffffff 4922 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/YUIDocGUIAppDelegate.py
dc3f326c664794b1dd0d02c2d456a502 44f3e84b850db702427c41faf8378057 ffffffffffffffffffffffffffffffff 12032 /Volumes/Data/davglass/src/dev/yuidoc-app/build/YUIDocGUI.build/Debug/YUIDocGUI.build/Objects-normal/i386/main.o
98ccda27a67207ad9f7143382c2e3a34 e7503eb58e418c14fd8899d59adde144 ffffffffffffffffffffffffffffffff 17484 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/MacOS/YUIDocGUI
000000000b7897d5000000000000624b dc3f326c214a3c99dd0d02c2d456a47f ffffffffffffffffffffffffffffffff 34591396 /Library/Caches/com.apple.Xcode.26895/SharedPrecompiledHeaders/YUIDocGUI_Prefix-gkrmejpjpqtcrsaotvtsewcitbki/YUIDocGUI_Prefix.pch.gch
00000000000000000000000000000000 7f69abe2410c3bd4c156fb0b78426bef ffffffffffffffffffffffffffffffff 442 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/yuidoc
-00000000000000000000000000000000 7d8b47b511c1a27aa29a983037b33126 ffffffffffffffffffffffffffffffff 4736 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/YUIDocGUIAppDelegate.py
+000000004a45aba7000000000001ba9f 9ac45fcbbd08a2828eba54acceaf492b ffffffffffffffffffffffffffffffff 19062 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/English.lproj/MainMenu.nib
ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff 412 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/main.py
ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff 202 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/Resources/English.lproj/InfoPlist.strings
ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff ffffffffffffffffffffffffffffffff 8 /Volumes/Data/davglass/src/dev/yuidoc-app/build/Debug/YUIDocGUI.app/Contents/PkgInfo
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 031bdd0

Please sign in to comment.