Browse Source

Added load next button. Not yet implemented.

Thomas Buck 10 years ago
parent
commit
c2e4c0a6e5

+ 1
- 0
RedditBar/AppDelegate.h View File

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

+ 9
- 0
RedditBar/AppDelegate.m View File

@@ -138,6 +138,15 @@
138 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 150
 -(IBAction)linkToOpen:(id)sender {
142 151
     NSString *title = [(NSMenuItem *)sender title];
143 152
     if ([title isEqualToString:NSLocalizedString(@"Link...", nil)]) {

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

@@ -5,8 +5,11 @@
5 5
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6 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 14
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12 15
 "jfb-mv-iN9.title" = "Loading...";

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

@@ -26,10 +26,16 @@
26 26
                     <modifierMask key="keyEquivalentModifierMask"/>
27 27
                 </menuItem>
28 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 30
                     <modifierMask key="keyEquivalentModifierMask"/>
31 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 39
                     </connections>
34 40
                 </menuItem>
35 41
                 <menuItem isSeparatorItem="YES" id="w4G-0W-l5l"/>

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

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

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

@@ -4,8 +4,11 @@
4 4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
5 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 13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
11 14
 "jfb-mv-iN9.title" = "Lade...";

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

@@ -1,15 +1,18 @@
1
-
2 1
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
3 2
 "1lW-9C-xt6.title" = "Preferences...";
4 3
 
5 4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6 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 13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12 14
 "jfb-mv-iN9.title" = "Loading...";
13 15
 
14 16
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
15 17
 "oyC-3G-WEc.title" = "Quit";
18
+

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

@@ -1,15 +1,18 @@
1
-
2 1
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
3 2
 "1lW-9C-xt6.title" = "Preferences...";
4 3
 
5 4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6 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 13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12 14
 "jfb-mv-iN9.title" = "Loading...";
13 15
 
14 16
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
15 17
 "oyC-3G-WEc.title" = "Quit";
18
+

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

@@ -1,15 +1,18 @@
1
-
2 1
 /* Class = "NSMenuItem"; title = "Preferences..."; ObjectID = "1lW-9C-xt6"; */
3 2
 "1lW-9C-xt6.title" = "Preferences...";
4 3
 
5 4
 /* Class = "NSMenuItem"; title = "About RedditBar"; ObjectID = "4ah-qP-9eP"; */
6 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 13
 /* Class = "NSMenuItem"; title = "Loading..."; ObjectID = "jfb-mv-iN9"; */
12 14
 "jfb-mv-iN9.title" = "Loading...";
13 15
 
14 16
 /* Class = "NSMenuItem"; title = "Quit"; ObjectID = "oyC-3G-WEc"; */
15 17
 "oyC-3G-WEc.title" = "Quit";
18
+

Loading…
Cancel
Save