Browse Source

Added load next button. Not yet implemented.

Thomas Buck 11 years ago
parent
commit
c2e4c0a6e5

+ 1
- 0
RedditBar/AppDelegate.h View File

49
 -(IBAction)showPreferences:(id)sender;
49
 -(IBAction)showPreferences:(id)sender;
50
 -(IBAction)showAbout:(id)sender;
50
 -(IBAction)showAbout:(id)sender;
51
 - (IBAction)reloadCompleteList:(id)sender;
51
 - (IBAction)reloadCompleteList:(id)sender;
52
+- (IBAction)reloadNextList:(id)sender;
52
 -(IBAction)linkToOpen:(id)sender;
53
 -(IBAction)linkToOpen:(id)sender;
53
 
54
 
54
 -(void)reloadListWithOptions;
55
 -(void)reloadListWithOptions;

+ 9
- 0
RedditBar/AppDelegate.m View File

138
     [self reloadListWithOptions];
138
     [self reloadListWithOptions];
139
 }
139
 }
140
 
140
 
141
+- (IBAction)reloadNextList:(id)sender {
142
+    [firstMenuItem setTitle:NSLocalizedString(@"Loading...", nil)];
143
+    [self clearMenuItems];
144
+    [firstMenuItem setHidden:NO];
145
+    
146
+    // TODO on list load, store after cookie??
147
+    // then use it here to load the list after the last item
148
+}
149
+
141
 -(IBAction)linkToOpen:(id)sender {
150
 -(IBAction)linkToOpen:(id)sender {
142
     NSString *title = [(NSMenuItem *)sender title];
151
     NSString *title = [(NSMenuItem *)sender title];
143
     if ([title isEqualToString:NSLocalizedString(@"Link...", nil)]) {
152
     if ([title isEqualToString:NSLocalizedString(@"Link...", nil)]) {

+ 5
- 2
RedditBar/Base.lproj/MainMenu.strings View File

5
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
5
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6
 "4ah-qP-9eP.title" = "About RedditBar";
6
 "4ah-qP-9eP.title" = "About RedditBar";
7
 
7
 
8
-/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "e8u-nc-P6x"; */
9
-"e8u-nc-P6x.title" = "Reload";
8
+/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "bQG-wq-9Zw"; */
9
+"bQG-wq-9Zw.title" = "Reload";
10
+
11
+/* Class = "NSMenuItem"; title = "Load next"; ObjectID = "e8u-nc-P6x"; */
12
+"e8u-nc-P6x.title" = "Load next";
10
 
13
 
11
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
14
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12
 "jfb-mv-iN9.title" = "Loading...";
15
 "jfb-mv-iN9.title" = "Loading...";

+ 8
- 2
RedditBar/Base.lproj/MainMenu.xib View File

26
                     <modifierMask key="keyEquivalentModifierMask"/>
26
                     <modifierMask key="keyEquivalentModifierMask"/>
27
                 </menuItem>
27
                 </menuItem>
28
                 <menuItem isSeparatorItem="YES" id="7Rc-fG-5uQ"/>
28
                 <menuItem isSeparatorItem="YES" id="7Rc-fG-5uQ"/>
29
-                <menuItem title="Reload" id="e8u-nc-P6x">
29
+                <menuItem title="Load next" id="e8u-nc-P6x">
30
                     <modifierMask key="keyEquivalentModifierMask"/>
30
                     <modifierMask key="keyEquivalentModifierMask"/>
31
                     <connections>
31
                     <connections>
32
-                        <action selector="reloadCompleteList:" target="494" id="yTe-cz-LY1"/>
32
+                        <action selector="reloadNextList:" target="494" id="tbv-NV-8s7"/>
33
+                    </connections>
34
+                </menuItem>
35
+                <menuItem title="Reload" id="bQG-wq-9Zw">
36
+                    <modifierMask key="keyEquivalentModifierMask"/>
37
+                    <connections>
38
+                        <action selector="reloadCompleteList:" target="494" id="FoB-kO-9Sk"/>
33
                     </connections>
39
                     </connections>
34
                 </menuItem>
40
                 </menuItem>
35
                 <menuItem isSeparatorItem="YES" id="w4G-0W-l5l"/>
41
                 <menuItem isSeparatorItem="YES" id="w4G-0W-l5l"/>

+ 1
- 1
RedditBar/RedditBar-Info.plist View File

21
 	<key>CFBundleSignature</key>
21
 	<key>CFBundleSignature</key>
22
 	<string>????</string>
22
 	<string>????</string>
23
 	<key>CFBundleVersion</key>
23
 	<key>CFBundleVersion</key>
24
-	<string>165</string>
24
+	<string>169</string>
25
 	<key>LSApplicationCategoryType</key>
25
 	<key>LSApplicationCategoryType</key>
26
 	<string>public.app-category.utilities</string>
26
 	<string>public.app-category.utilities</string>
27
 	<key>LSMinimumSystemVersion</key>
27
 	<key>LSMinimumSystemVersion</key>

+ 5
- 2
RedditBar/de.lproj/MainMenu.strings View File

4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
5
 "4ah-qP-9eP.title" = "About RedditBar";
5
 "4ah-qP-9eP.title" = "About RedditBar";
6
 
6
 
7
-/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "e8u-nc-P6x"; */
8
-"e8u-nc-P6x.title" = "Aktualisieren";
7
+/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "bQG-wq-9Zw"; */
8
+"bQG-wq-9Zw.title" = "Aktualisieren";
9
+
10
+/* Class = "NSMenuItem"; title = "Load next"; ObjectID = "e8u-nc-P6x"; */
11
+"e8u-nc-P6x.title" = "Mehr laden";
9
 
12
 
10
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
11
 "jfb-mv-iN9.title" = "Lade...";
14
 "jfb-mv-iN9.title" = "Lade...";

+ 6
- 3
RedditBar/en.lproj/MainMenu.strings View File

1
-
2
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
1
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
3
 "1lW-9C-xt6.title" = "Preferences...";
2
 "1lW-9C-xt6.title" = "Preferences...";
4
 
3
 
5
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6
 "4ah-qP-9eP.title" = "About RedditBar";
5
 "4ah-qP-9eP.title" = "About RedditBar";
7
 
6
 
8
-/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "e8u-nc-P6x"; */
9
-"e8u-nc-P6x.title" = "Reload";
7
+/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "bQG-wq-9Zw"; */
8
+"bQG-wq-9Zw.title" = "Reload";
9
+
10
+/* Class = "NSMenuItem"; title = "Load next"; ObjectID = "e8u-nc-P6x"; */
11
+"e8u-nc-P6x.title" = "Load next";
10
 
12
 
11
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12
 "jfb-mv-iN9.title" = "Loading...";
14
 "jfb-mv-iN9.title" = "Loading...";
13
 
15
 
14
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
16
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
15
 "oyC-3G-WEc.title" = "Quit";
17
 "oyC-3G-WEc.title" = "Quit";
18
+

+ 6
- 3
RedditBarTests/de.lproj/MainMenu.strings View File

1
-
2
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
1
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
3
 "1lW-9C-xt6.title" = "Preferences...";
2
 "1lW-9C-xt6.title" = "Preferences...";
4
 
3
 
5
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6
 "4ah-qP-9eP.title" = "About RedditBar";
5
 "4ah-qP-9eP.title" = "About RedditBar";
7
 
6
 
8
-/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "e8u-nc-P6x"; */
9
-"e8u-nc-P6x.title" = "Reload";
7
+/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "bQG-wq-9Zw"; */
8
+"bQG-wq-9Zw.title" = "Reload";
9
+
10
+/* Class = "NSMenuItem"; title = "Load next"; ObjectID = "e8u-nc-P6x"; */
11
+"e8u-nc-P6x.title" = "Load next";
10
 
12
 
11
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12
 "jfb-mv-iN9.title" = "Loading...";
14
 "jfb-mv-iN9.title" = "Loading...";
13
 
15
 
14
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
16
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
15
 "oyC-3G-WEc.title" = "Quit";
17
 "oyC-3G-WEc.title" = "Quit";
18
+

+ 6
- 3
RedditBarTests/en.lproj/MainMenu.strings View File

1
-
2
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
1
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
3
 "1lW-9C-xt6.title" = "Preferences...";
2
 "1lW-9C-xt6.title" = "Preferences...";
4
 
3
 
5
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6
 "4ah-qP-9eP.title" = "About RedditBar";
5
 "4ah-qP-9eP.title" = "About RedditBar";
7
 
6
 
8
-/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "e8u-nc-P6x"; */
9
-"e8u-nc-P6x.title" = "Reload";
7
+/* Class = "NSMenuItem"; title = "Reload"; ObjectID = "bQG-wq-9Zw"; */
8
+"bQG-wq-9Zw.title" = "Reload";
9
+
10
+/* Class = "NSMenuItem"; title = "Load next"; ObjectID = "e8u-nc-P6x"; */
11
+"e8u-nc-P6x.title" = "Load next";
10
 
12
 
11
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12
 "jfb-mv-iN9.title" = "Loading...";
14
 "jfb-mv-iN9.title" = "Loading...";
13
 
15
 
14
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
16
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
15
 "oyC-3G-WEc.title" = "Quit";
17
 "oyC-3G-WEc.title" = "Quit";
18
+

Loading…
Cancel
Save