I've set up a Cloud9 instance from AWS, but I like having the minimap (the view of the entire file in small at the right).
Is there a way to enable it on Cloud9? Maybe under a different name?
Related
I'm trying to work with creating a web map in QGIS Cloud Free using QGIS 3.28.2 (Firenze). Trouble is, I cannot figure out how to show a full list of attributes when I click on a feature and open the popup window. In my layer's properties under Display, I can decide what single attribute will show up as the title of the popup, but that isn't enough. I want to see the full list of attributes for that feature. This should be super straightforward but it isn't.
How do I configure my map to show a list of attributes in QGIS Cloud? (I know you can set information in the HTML Map Tip, but that's not the same as the popup. If I'm on a mobile device, I can't access the map tip).
Currently I am adding forge to an internal company website where we can view all of the machines we have built or are building. The website works like this: The user selects a machine number and all the information about the machine will pop up. This includes stations within the machine, as well as all the individual parts within each station. My task was to add autodesk-forge to the website. Currently I have successfully used the autodesk-forge viewer so that whenever a machine is picked, the user can press a button, and the model of the entire machine will pop up to be viewed. The next step is to have the viewer be controlled by external buttons on the website. We want it to work as such:
A machine is picked by the user. After this all the information such as stations, and parts within each station in the machine will pop up (this is completed).
The user clicks a "view model" button which will use the forge viewer to make the machine pop up on the website (This has been completed by me).
Once the forge viewer with the model is on the screen, we want the viewer to be able to be controlled by external buttons already on the site.
For example, if there is a machine with name MC-000, and in that machine there is a station named ST010, within that station there are many parts, for example a gear. When the machine MC-000 is being viewed by the user, we want to be able to click an external button which is already made (for example ST010) and the viewer will automatically zoom in and highlight that station within the machine. We also want the same for parts within the machine. When a machine is picked, its stations, as well as the parts within the stations are already printed out within our website. We now want to be able to click the stations, or parts and have the viewer automatically zoom into that part# or station#. I have found a similar code sample here. In this example, parts of the viewer are controlled by buttons not within the viewer. For example, when the 'engine' button is clicked, the viewer will automatically zoom into the engine. The problem with this example, is that all of the positions are hard-coded into the code, meaning that the position of the engine is already within the code. I cannot do this as we have many different machines with thousands of parts, so it would be impossible for me to hard-code them all in. Is something like this possible to do with autodesk-forge viewer. Any help or guidance would be greatly appreciated. Cheers!
EDIT**
Any guidance at all on how I can change where the viewer zooms into would be much appreciated and would help a lot. Currently, I have methods go get both the dbid, and the external objectId from the GET :urn/metadata/:guid http request. Thanks again!
It seems you do have the specified engine dbid and you have a way to link viewer functions with your outside code. The default doubleclick behaviour of the viewer is to select the item the mousepointer collides with. The camera then zooms in (or out) to that item to fit it into the view.
You can use:
select
And
fitToView
To achieve a simular interaction.
For example in Typescript:
// Your dbid is for example 1234
this.viewer.select(1234);
this.viewer.fitToView([1234]);
viewer.select(dbid);
viewer.utilities.fitToView();
Example: https://github.com/Autodesk-Forge/forge-extensions/tree/master/public/extensions/IconMarkupExtension
Does anyone know how to highlight the current file in the project navigator, or a hotkey to expand folders to the active file?
I have looked around and couldn't find anything that points to this as an option.
Here is a nice feature: Autoscroll to Source and Autoscroll from Source.
It is available in all IntelliJ products .
On Demand
Should be used if you do not like when your Project View panel gets changed/moves without your consent.
Navigate | Select in... | Project View
Alt+F1, 1 for Windows/Linux
⌥+F1, 1 (or fn+⌥ Opt+F1, 1) for Mac OS
You may also click on "target like" icon on actual Project View panel with your mouse:
If you wish to use shorter/single shortcut instead of standard 2-step shortcut:
install "Extra Actions" plugin
assign custom shortcut to newly provided "Select in Project" action
As of some 2017.x version (or maybe even 2016.x) the IDE has own dedicated Select in Project View action (so no need for additional plugin). You can find it in Keymap under the Other branch (hint: use search box to narrow the list).
Automatically
Can be used if you do not mind (or even want) to have Project View panel keep focused on currently edited file (so it scrolls/moves up and down/expands when needed).
NOTE: with frequently switching between the files (e.g. CSS & HTML) when you have a lot of files in your project such "scrolling" may become quite annoying pretty fast (especially if such files are located in the invisible-right-now part of the project tree).
Activate Autoscroll from Source option in Project View panel (right click on tool window header bar/title or use menu under "gear" icon):
In modern versions (2020.3 and newer) that option was renamed and is now called Always Select Opened File:
Just click the circular icon (with tooltip Scroll from Source) to navigate in the project directory tree and highlight the corresponding active file in the PhpStorm editor.
On PhpStorm 2020.3 you have to click the cog icon in the project pane and select Always Select Opened Files:
The above answers are all valid but unfortunately you'll have to enable them for each project.
There's a plugin from Jetbrains that will enable this behaviour by default for all new projects.
http://plugins.jetbrains.com/plugin/7575?pr=
I'm developing a WP8 app, and I'm wondering what's the correct way to implement color themes for my app.
Currently, I'm changing the phone's theme resources described here, however I'm wondering, whether that has any side-effects I should know of?
For instance: if I change the color of PhoneBackgroundBrush, will that mean that I'll change the bg color of every app and the phone itself? Or, will the change be only current-app-wide?
I change theme resources like so:
(App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush).Color = Colors.White;
Imagine the consequences if a single instance of these were shared across applications, you could do some real damage with something like that...
You're only changing the resource for the current app. You're sandboxed and safe
The Code that you used
(App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush).Color = Colors.White;
Will change the default color of the pages and controls of your app. Not any other app .
These settings get applied to the Application when it is activated. So every app by default has a PhoneBackgroundBrush which is the default theme for the Phone.
But if your app contains Multiple pages with different color then it is always favorable to go by individual Grid
<Grid x:Name="LayoutRoot" Background="Red"></Grid>
Along with providing
App.Current.Resources["PhoneBackgroundBrush"] as SolidColorBrush).Color = Colors.White
For a common application background color :)
All the Properties mentioned in Themes for windows phone
are meant for a particular application. And you can select any of the following for a global application background color/theme from them.
In FF when I do right-click on canvas and select "Save Image As ..." the offered name is canvas.png always. Could't I change it?
I'm not sure what you're using to get that right-click functionality (unless its built into a particular browser), but either way the answer is "no" unless you are going to generate a new file on your server to put as a glass-pane over the canvas for right-click purposes.
Or a little more simply, you can't define in JavaScript the name of any particular file, it has to be decided on the server or not at all.