Changeset 766


Ignore:
Timestamp:
01/28/14 16:46:08 (10 years ago)
Author:
csl14
Message:

Added Exploratory Search settings package; can now specify height and width or fullscreen mode for JfxBrowser and specify whitespace margins

Location:
trunk/src/org/expeditee
Files:
3 added
6 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/expeditee/actions/JfxBrowserActions.java

    r748 r766  
    2525        /**
    2626         * Launches items.widgets.JfxBrowser and uses Text item as URL.
    27          * Note: currently doesn't work
    2827         * @param text Text item which passes contents as URL for browser.
    2928         * @throws Exception
     
    5958        /**
    6059         * Text item becomes link to new frame containing items.widgets.JfxBrowser and uses Text item as URL for browser.
    61          * Note: currently doesn't work
    6260         * @param text Text item which passes contents as URL for browser and becomes link to the browser's new frame.
    6361         * @throws Exception
     
    8684                // Create widget via text annotation
    8785                Text wt = frame.addText(0, JfxBrowser.VERT_OFFSET, "@iw: org.expeditee.items.widgets.JfxBrowser "+ (Browser._theBrowser.getWidth() - JfxBrowser.HORZ_CROP)+
    88                                  " " + (Browser._theBrowser.getHeight() - JfxBrowser.VERT_CROP) + " : ".concat(text.getText()), null);
     86                                 " " + (Browser._theBrowser.getHeight() - JfxBrowser.VERT_CROP - JfxBrowser.VERT_OFFSET) + " : ".concat(text.getText()), null);
    8987                InteractiveWidget.createWidget(wt);
    9088               
     
    111109        }
    112110       
    113         /**
    114          * Adds a text item to the cursor which is linked to a new frame with the web browser active overlay and a JavaFX browser.
    115          * @param text The text item attached to the cursor.
    116          */
    117         public static void startBrowserSession(Text text) {
    118                 try {
    119                         if (!(text instanceof Text)) {
    120                                 MessageBay.errorMessage("Must be a text item.");
    121                                 return;
    122                         }
    123                        
    124                         if(text.getLink() != null) {                                            // text item can't already have a link
    125                                 MessageBay.errorMessage("Text item already has link.");
    126                                 return;
    127                         }
    128                        
    129                         String url = "";
    130                        
    131                         // If no text with url is passed to action create a new text item
    132                         if(!FreeItems.textOnlyAttachedToCursor()) {
    133                                 url = NetworkSettings.HomePage.get();                                   // use home page specified by settings
    134                                 text = DisplayIO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(),
    135                                                 "Web Browser Session", null);
    136                                 text.setParent(DisplayIO.getCurrentFrame());
    137                                 FrameMouseActions.pickup(text);
    138                         } else {
    139                                 url = text.getText();                                                   // get url from text attached to cursor if possible
    140                         }
    141                        
    142                         // Set text to session id. TODO: set session id.
    143                         text.setText("Web Browser Session");
    144                        
    145                         // Create new frame
    146                         Frame frame = FrameIO.CreateNewFrame(text);
    147                         text.setLink("" + frame.getNumber());                           // link this text item to new frame
    148                        
    149                         // Remove everything from new page
    150                         frame.removeAllItems(frame.getItems());
    151                        
    152                         // Add web browser active overlay
    153                         frame.addText(1100, 50, "@ao: 2", null, "overlayset2");
    154                         // Add @old
    155                         frame.addText(1100, 20, "@old", null);
    156                        
    157                         // Create widget via text annotation
    158                         Text wt = frame.addText(0, 80, "@iw: org.expeditee.items.widgets.JfxBrowser "+ (Browser._theBrowser.getWidth() - JfxBrowser.HORZ_CROP)+
    159                                          " " + (Browser._theBrowser.getHeight() - JfxBrowser.VERT_CROP) + " : ".concat(url), null);
    160                         InteractiveWidget.createWidget(wt);
    161                        
    162                         FrameIO.SaveFrame(frame);                                                       // save frame to disk
    163                 } catch(Exception e) {
    164                         e.printStackTrace();
    165                 }
    166         }
    167        
    168111        public static void gotoURL(Text link, String URL) {
    169112                Frame frame = FrameIO.CreateNewFrame(link);
  • trunk/src/org/expeditee/actions/Misc.java

    r748 r766  
    11771177                FrameUtils.CreateDefaultProfile(UserSettings.UserName.get(), homeFrame);
    11781178        }
    1179 
    1180         /**
    1181          * Adds a text item to the cursor which is linked to a new frame with the mindmap active overlay.
    1182          */
    1183         public static void startMindmapSession() {
    1184                 // Replace any text item on cursor with link to a new mindmap
    1185                 FreeItems.getInstance().clear();
    1186                 Text text = DisplayIO.getCurrentFrame().addText(FrameMouseActions.getX(), FrameMouseActions.getY(), "Mindmap Session", null);
    1187                 text.setParent(DisplayIO.getCurrentFrame());
    1188                 FrameMouseActions.pickup(text);
    1189                 Frame frame = FrameIO.CreateNewFrame(text);
    1190                 text.setLink("" + frame.getNumber());
    1191                
    1192                 // Clear new frame and add active overlay and @old
    1193                 frame.removeAllItems(frame.getItems());
    1194                 frame.addText(1100, 50, "@ao: 2", null, "overlayset3");
    1195                 frame.addText(1100, 20, "@old", null);
    1196                
    1197                 FrameIO.SaveFrame(frame);
    1198         }
    11991179       
    12001180        /**
  • trunk/src/org/expeditee/assets/resources/framesets/overlayset/1.exp

    r716 r766  
    1 V 56
     1V 81
    22U csl14A
    33D 12Dec2013[10:13]
    44M csl14A
    5 d 17Jan2014[16:57]
     5d 28Jan2014[16:27]
    66Z
    77
     
    124124T @i: home.png 36
    125125X GoToHome
     126x F
    126127Q 0
    127128o csl14A
     
    140141T @i: leftArrow.png 32
    141142X Back
     143x F
    142144Q 0
    143145o csl14A
     
    155157T @i: rightArrow.png 32
    156158X Forward
     159x F
    157160Q 0
    158161o csl14A
     
    169172T HELP
    170173F Documentation1
    171 Q 0
    172 o csl14A
     174x F
     175Q 0
     176o csl14A
     177n F
    173178v S
    174179f sr25
     
    310315Z
    311316
    312 ActiveTime:00:29:42
     317ActiveTime:00:33:05
    313318DarkTime:00:19:19
    314 57:08:244 1403 242 kRight
     31927:52:056 760 512 Rd
     32027:52:080 760 512 Md
     32127:52:576 670 587 Rd
     32227:52:625 695 594 Ru
     32327:53:016 902 689 Md
     32427:53:091 897 686 Mu
     32527:53:305 867 648 Rd
     32627:53:336 867 648 Md
     32727:54:037 678 617 kRight
  • trunk/src/org/expeditee/assets/resources/framesets/overlayset/2.exp

    r716 r766  
    1 V 77
     1V 88
    22U csl14A
    33D 12Dec2013[10:14]
    44M csl14A
    5 d 17Jan2014[17:02]
     5d 28Jan2014[16:30]
    66Z
    77
     
    152152T @i: home.png 36
    153153X GoToHome
     154x F
    154155Q 0
    155156o csl14A
     
    169170T @i: rightArrow.png 32
    170171X Forward
     172x F
    171173Q 0
    172174o csl14A
     
    185187T @i: leftArrow.png 32
    186188X Back
     189x F
    187190Q 0
    188191o csl14A
     
    262265Q 0
    263266o csl14A
     267n F
    264268v S
    265269f sr25
     
    311315s 13Dec2013[15:28.40]
    312316P 388 63
    313 T getframe
     317T convert
    314318Q 0
    315319o csl14A
     
    9981002Z
    9991003
    1000 ActiveTime:00:35:23
     1004ActiveTime:00:40:58
    10011005DarkTime:00:10:14
    1002 02:17:459 1342 394 Rd
    1003 02:17:463 1342 394 Md
    1004 02:18:263 1311 317 kRight
     100630:05:613 435 57 kRight
     100730:05:925 442 63 kRight
     100830:06:813 451 63 kShift
     100930:07:313 451 63 kShift
     101030:07:346 451 63 kShift
     101130:07:379 451 63 kShift
     101230:07:412 451 63 kShift
     101330:07:421 451 63 kC
     101430:08:597 463 63 kBackspace
     101530:08:789 451 63 kC
     101630:09:525 459 63 kO
     101730:10:021 468 63 kN
     101830:10:301 477 63 kV
     101930:10:381 485 63 kE
     102030:10:509 494 63 kR
     102130:10:637 499 63 kT
     102230:11:213 504 63 kLeft
     102330:11:381 499 63 kLeft
     102430:11:525 494 63 kLeft
     102530:11:677 485 63 kLeft
     102630:11:829 477 63 kLeft
     102730:11:981 468 63 kLeft
     102830:12:533 459 63 kLeft
     102930:12:909 451 63 kBackspace
     103030:13:197 442 63 kBackspace
     103130:13:332 429 63 kBackspace
     103230:13:476 420 63 kBackspace
     103330:13:620 415 63 kBackspace
     103430:13:868 410 63 kBackspace
     103530:14:124 406 63 kBackspace
     103630:14:468 397 63 kBackspace
     103730:39:405 535 174 Ld
     103830:39:501 535 174 Lu
  • trunk/src/org/expeditee/assets/resources/framesets/overlayset/3.exp

    r716 r766  
    1 V 72
     1V 74
    22U csl14A
    33D 12Dec2013[10:15]
    44M csl14A
    5 d 17Jan2014[17:02]
     5d 28Jan2014[16:28]
    66Z
    77
     
    5656T @i: home.png 36
    5757X GoToHome
     58x F
    5859Q 0
    5960o csl14A
     
    7374T @i: rightArrow.png 32
    7475X Forward
     76x F
    7577Q 0
    7678o csl14A
     
    8991T @i: leftArrow.png 32
    9092X Back
     93x F
    9194Q 0
    9295o csl14A
     
    181184Q 0
    182185o csl14A
     186n F
    183187v S
    184188f sr25
     
    280284Z
    281285
    282 ActiveTime:00:28:31
     286ActiveTime:00:28:44
    283287DarkTime:00:00:00
    284 01:48:457 1407 133 Md
    285 01:48:568 1407 133 Mu
    286 01:51:734 1303 220 kF10
    287 01:52:946 1319 282 Rd
    288 01:53:025 1319 282 Ru
    289 01:53:672 1444 108 Md
    290 01:53:768 1444 108 Mu
    291 01:54:246 1364 179 kF10
    292 01:55:623 1380 186 kF10
    293 01:56:751 1460 176 kF10
    294 02:00:362 1547 59 Md
    295 02:00:481 1547 59 Mu
    296 02:01:401 1356 149 Md
    297 02:01:521 1356 149 Mu
    298 02:02:254 1281 168 kF10
    299 02:03:314 1156 283 Rd
    300 02:03:377 1156 283 Ru
    301 02:04:249 1384 101 Md
    302 02:04:336 1384 101 Mu
    303 02:04:975 1386 163 kF10
    304 02:06:067 1516 54 Rd
    305 02:06:074 1516 54 Ld
    306 02:07:601 1149 123 Rd
    307 02:07:609 1149 123 Md
    308 02:11:626 1163 313 Rd
    309 02:11:706 1163 313 Ru
    310 02:12:674 1514 43 Md
    311 02:12:762 1514 43 Mu
    312 02:15:707 1107 247 Md
    313 02:15:714 1107 247 Rd
    314 02:16:663 1485 326 kLeft
     28828:13:823 1404 128 Rd
     28928:13:886 1404 128 Ru
     29028:16:079 1465 48 Rd
     29128:16:135 1465 48 Ru
     29228:16:479 1516 47 Rd
     29328:16:555 1518 47 Ru
     29428:16:959 1567 45 Md
     29528:17:031 1567 45 Mu
     29628:18:126 1442 107 Md
     29728:18:222 1442 107 Mu
     29828:18:871 1629 44 Md
     29928:18:991 1629 44 Mu
     30028:19:750 1429 135 Rd
     30128:19:774 1429 135 Md
     30228:23:300 1191 164 kLeft
  • trunk/src/org/expeditee/items/widgets/JfxBrowser.java

    r748 r766  
    6666        private static final String FORWARD = "forward";
    6767        private static final String REFRESH = "refresh";
    68         private static final String GETFRAME = "getframe";
    69        
    70         public static final int VERT_OFFSET = 50;
    71         public static final int VERT_CROP = 88;
    72         public static final int HORZ_CROP = 15;
     68        private static final String CONVERT = "convert";
     69       
     70        public static final int VERT_OFFSET = 70;
     71        public static final int VERT_CROP = 38;
     72        public static final int HORZ_CROP = 16;
    7373       
    7474        private WebBrowserPanel _browser;
     
    563563                } else if(carried.getText().toLowerCase().equals(REFRESH)) {
    564564                        refresh();
    565                 } else if(carried.getText().toLowerCase().equals(GETFRAME)) {
     565                } else if(carried.getText().toLowerCase().equals(CONVERT)) {
    566566                        getFrame();
    567567                } else {
Note: See TracChangeset for help on using the changeset viewer.