snappier thumbnail opening

This commit is contained in:
Andrey Skvortsov 2010-09-22 21:58:58 -07:00
parent 833c8b10a5
commit 4dafe3efb5
2 changed files with 9 additions and 9 deletions

View File

@ -66,7 +66,7 @@ class CropWindow : public LWButtonListener, public CropHandlerListener {
int xpos, ypos, width, height; int xpos, ypos, width, height;
// image handling // image handling
CropHandler cropHandler;
ImageArea* iarea; ImageArea* iarea;
int cropZoom; // *1000 int cropZoom; // *1000
@ -88,6 +88,7 @@ class CropWindow : public LWButtonListener, public CropHandlerListener {
void getObservedFrameArea(int& x, int& y, int& w, int& h); void getObservedFrameArea(int& x, int& y, int& w, int& h);
public: public:
CropHandler cropHandler;
CropWindow (ImageArea* parent, rtengine::StagedImageProcessor* ipc_); CropWindow (ImageArea* parent, rtengine::StagedImageProcessor* ipc_);
~CropWindow (); ~CropWindow ();

View File

@ -323,12 +323,11 @@ void EditorPanel::open (Thumbnail* tmb, rtengine::InitialImage* isrc) {
beforeAfterToggled(); beforeAfterToggled();
} }
Gtk::Allocation r; if (iarea->imageArea->mainCropWindow)
iarea->imageArea->on_resized(r); {
//iarea->show_all(); iarea->imageArea->mainCropWindow->cropHandler.newImage(ipc);
//hpanedl->show_all(); iarea->imageArea->mainCropWindow->initialImageArrived();
//show_all(); }
} }
void EditorPanel::close () { void EditorPanel::close () {
@ -351,8 +350,8 @@ void EditorPanel::close () {
// delete beforePreviewHandler; // delete beforePreviewHandler;
// beforePreviewHandler = NULL; // beforePreviewHandler = NULL;
delete iarea->imageArea->mainCropWindow; // delete iarea->imageArea->mainCropWindow;
iarea->imageArea->mainCropWindow = NULL; // iarea->imageArea->mainCropWindow = NULL;
rtengine::StagedImageProcessor::destroy (ipc); rtengine::StagedImageProcessor::destroy (ipc);
ipc = NULL; ipc = NULL;