I am working on a project to display a list of formulas in the ui. I snipped all the formulas in image form and saved them in .png format. Then I stored the name of the images and their path in a mysql database.
Here's an example of what my table looks like.
I tried using listWidget but the formulas could be dragged across ui.
So what would be a better way to display these formulas in an organized manner
Here's what it looks like right now using listWidgets:
Related
I am looking to replicate the look of the TableView presented in this picture using Qt. The one in the picture looks to be created with Windows Forms. The main part I'm wondering about is how the different items have different categories kind of (with each section having a header).
Is it possible to do this in a Qt TableView, or do I need to use a TreeView?
First this is not a replica of How do i rename a Layer using python-fu .
In the linked example the OP asked for a created image. In my case I don't create an image. Instead I want to rename layers of an exisiting Image. My Problem is following: I now the pdb procedures to select and rename the layer, but the procedures accept an image as argument. With gimp.image_list() I get the "Names" of my current open Images but I have no Idea how to create a image variable at this point.
I'm using sitecore 8.1, I have a template contains field of type "Rich Text", I'm creating items based on this template and storing HTML contents inside this field. All HTML tags and everything works properly except the images which included inside the HTML content (in src attribute), and I've tried all below scenarios but all fail:
Note: All the following scenarios' results are showing the image properly inside the Rich Text Editor inside sitecore CMS but when trying to render the HTML in a mobile web view or any browser, the HTML looks properly but just images are empty.
And there is only one way I've tried and it worked but doesn't
meet my requirements which is by mention an external URL inside src like:
src="http://i.telegraph.co.uk/multimedia/archive/03589/Wellcome_Image_Awa_3589699k.jpg"
Scenarios:
Upload images inside media library and use Image Map Editor (called from Rich text editor) to reference the uploaded images, so the src attribute of image contains value like src="-/media/5EA5C007FFFF4688A0B7E6F58B79D2E8.ashx?h=183&w=250"
Here also I tried to change the extension from ashx to the original one and remove the postfix params but without result.
Specify the image url inside the media library explicitly inside src attribute like
src="/-/media/Contents/Images/foobar" And also here I tried to change add the original extension but without result.
Use this solution but it has currupted all my media files, also after I upload new files, still can't see images inside HTML web view or browser.
Add the original images inside sitecore website directory like \website\contents\images and reference it like any normal image reference through HTML like
src="/contents/images/foobar.jpg" and like src="~/contents/images/foobar.jpg" but without any result or change.
I prefer sure to avoid the last scenario by using Sitecore's Media Library
Instead of using the ashx extension, you can use the sitecore path of the image directly in the rich text as shown below:
src="~/media/path/to/image/logo.jpg"
Then as you provided above, you retrieve the value from the Rich Text as below:
var richTextValue = item.Fields["Body"].Value;
Thanks
Working on a project for a client. They have a PDF that has been broken into separate pages as images, and they want to have each of those images appear on a single page - at least 40 images for this one page alone.
So far, I've just been placing them individually. Each time you go to place an image using the rich editor, you start at the media root - and the way the media library has been structured, these images are buried very deep within subfolders. So it takes about 20 seconds of clicking, scrolling, and reading to find each image to place it.
These images are sequential and placed in order in the media library. Is there a way I can select a group of images and just drop them in? There are going to be literally hundreds of these, and it's a huge waste of my (and my client's) time placing images one-by-one.
Going along the lines of what TwentyGotoTen has said, I would:
Structure your images in the Media Library within folders (if you haven't already done so)
Create a sublayout/xsl rendering that contains a repeater to render the images
Add the control to the layout and set the DataSource of that control to the Media Folder
The code should then retrieve all child items from that folder and render as necessary.
You may need the use of the Sublayout Parameter Helper to access the datasource from ascx codebehind.
I'm assuming you just want the images to appear one after the other with nothing else inbetween. Rather than embedding images in rich-text perhaps you should consider creating a multilist field for the images in the template and create a rendering / sublayout to render them.
You can set a more suitable source for the multilist than the media root. This should make it a lot easier to select the images.
Mark van Aalst has created a custom image field that allows to do this a bit easier as well.
Have a read through this. This is also available on Sitecore's Marketplace: Multiple Images Selector
It will allow you to select your images through a multilist field, but it'll show the images as an image field with multiple images.
I think this is pretty much the solution TwentyGotoTen is talking about as well, but shows the thumbnail of the selected images as well.
could you please point c++ code example to display videos and images thumbnails in listview?
I can help with images, but not videos:
http://www.codeproject.com/KB/GDI-plus/GdiPThumbnailsViewer.aspx
Basically you use a normal list control and add the images to an associated image list. There are some gotchas though - looks like you have to use the CImageView::ReplaceImage instead of CImageView::AddImage, else the images don't appear correctly. Masking the image may also require some work.