Commit ed80db30 authored by Hartmut Kuhse's avatar Hartmut Kuhse

plug-ins: convert win-snap to screenshot

works as win-snap, lots of optimizing work to be done.
parent ad25307a
......@@ -10,11 +10,7 @@ libgimpmath = $(top_builddir)/libgimpmath/libgimpmath-$(GIMP_API_VERSION).la
if OS_WIN32
mwindows = -mwindows
endif
if HAVE_WINDRES
include $(top_srcdir)/build/windows/gimprc-plug-ins.rule
screenshot_RC = screenshot.rc.o
screenshot_RC = screenshot-win32res.o
endif
AM_LDFLAGS = $(mwindows)
......@@ -57,5 +53,18 @@ screenshot_SOURCES = \
screenshot-osx.h \
screenshot-x11.c \
screenshot-x11.h \
screenshot-win32.rc \
screenshot-win32.c \
screenshot-win32.h
if OS_WIN32
EXTRA_DIST = \
resource.h \
select.cur \
small.ico \
screenshot-win32.ico \
screenshot-win32.rc
screenshot-win32res.o: screenshot-win32.rc select.cur small.ico screenshot-win32.ico
$(WINDRES) $(srcdir)/screenshot-win32.rc screenshot-win32res.o
endif
/* {{NO_DEPENDENCIES}}
Microsoft Developer Studio generated include file.
Used by snappy.rc
*/
#define IDM_CAPTURE 100
#define IDM_EXIT 101
#define IDC_SELECT 102
#define IDD_SELECT 103
#define IDC_TEXT 1000
#define IDC_GROUP 1001
#define IDM_CAPTUREFULL 40003
#define IDM_HOOK 40004
#define IDM_UNHOOK 40005
/* Next default values for new objects */
#ifdef APSTUDIO_INVOKED
#ifndef APSTUDIO_READONLY_SYMBOLS
#define _APS_NO_MFC 1
#define _APS_NEXT_RESOURCE_VALUE 104
#define _APS_NEXT_COMMAND_VALUE 40006
#define _APS_NEXT_CONTROL_VALUE 1002
#define _APS_NEXT_SYMED_VALUE 101
#endif
#endif
This diff is collapsed.
......@@ -21,6 +21,14 @@
#ifdef G_OS_WIN32
#define IDC_STATIC -1
#define IDS_APP_TITLE 500
#define IDS_DISPLAYCHANGED 501
#define IDS_VER_INFO_LANG 502
#define IDS_VERSION_ERROR 503
#define IDS_NO_HELP 504
gboolean screenshot_win32_available (void);
ScreenshotCapabilities screenshot_win32_get_capabilities (void);
......
//Microsoft Developer Studio generated resource script.
//
#include "resource.h"
#define APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 2 resource.
//
#define APSTUDIO_HIDDEN_SYMBOLS
#include "windows.h"
#undef APSTUDIO_HIDDEN_SYMBOLS
#include "screenshot-win32.h"
#include "winver.h"
/////////////////////////////////////////////////////////////////////////////
#undef APSTUDIO_READONLY_SYMBOLS
/////////////////////////////////////////////////////////////////////////////
// English (U.S.) resources
#if !defined(AFX_RESOURCE_DLL) || defined(AFX_TARG_ENU)
#ifdef _WIN32
LANGUAGE LANG_ENGLISH, SUBLANG_ENGLISH_US
#pragma code_page(1252)
#endif //_WIN32
/////////////////////////////////////////////////////////////////////////////
//
// Icon
//
// Icon with lowest ID value placed first to ensure application icon
// remains consistent on all systems.
SNAPPY ICON DISCARDABLE "screenshot-win32.ico"
SMALL ICON DISCARDABLE "small.ico"
/////////////////////////////////////////////////////////////////////////////
//
// Menu
//
SNAPPY MENU DISCARDABLE
BEGIN
POPUP "&File"
BEGIN
MENUITEM "&Capture", IDM_CAPTURE
MENUITEM "Capture Fullscreen", IDM_CAPTUREFULL
MENUITEM SEPARATOR
MENUITEM "Begin Hook", IDM_HOOK
MENUITEM "End Hook", IDM_UNHOOK
MENUITEM SEPARATOR
MENUITEM "E&xit", IDM_EXIT
END
END
#ifdef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// TEXTINCLUDE
//
1 TEXTINCLUDE DISCARDABLE
BEGIN
"resource.h\0"
END
2 TEXTINCLUDE DISCARDABLE
BEGIN
"#define APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""windows.h""\r\n"
"#undef APSTUDIO_HIDDEN_SYMBOLS\r\n"
"#include ""screenshot-win32.h""\r\n"
"#include ""winver.h""\r\n"
"\0"
END
3 TEXTINCLUDE DISCARDABLE
BEGIN
"\r\n"
"\0"
END
#endif // APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Cursor
//
IDC_SELECT CURSOR DISCARDABLE "select.cur"
#ifndef _MAC
/////////////////////////////////////////////////////////////////////////////
//
// Version
//
VS_VERSION_INFO VERSIONINFO
FILEVERSION 1,0,0,1
PRODUCTVERSION 1,0,0,1
FILEFLAGSMASK 0x3fL
#ifdef _DEBUG
FILEFLAGS 0x1L
#else
FILEFLAGS 0x0L
#endif
FILEOS 0x40004L
FILETYPE 0x1L
FILESUBTYPE 0x0L
BEGIN
BLOCK "StringFileInfo"
BEGIN
BLOCK "000004b0"
BEGIN
VALUE "Comments", "\0"
VALUE "CompanyName", "SeteraSoft\0"
VALUE "FileDescription", "snappy\0"
VALUE "FileVersion", "1, 0, 0, 1\0"
VALUE "InternalName", "snappy\0"
VALUE "LegalCopyright", "Copyright 1999\0"
VALUE "LegalTrademarks", "\0"
VALUE "OriginalFilename", "snappy.exe\0"
VALUE "PrivateBuild", "\0"
VALUE "ProductName", "SeteraSoft snappy\0"
VALUE "ProductVersion", "1, 0, 0, 1\0"
VALUE "SpecialBuild", "\0"
END
END
BLOCK "VarFileInfo"
BEGIN
VALUE "Translation", 0x0, 1200
END
END
#endif // !_MAC
/////////////////////////////////////////////////////////////////////////////
//
// Dialog
//
IDD_SELECT DIALOG DISCARDABLE 0, 0, 141, 95
STYLE DS_MODALFRAME | WS_POPUP | WS_CAPTION | WS_SYSMENU
CAPTION "Select Window"
FONT 8, "MS Sans Serif"
BEGIN
PUSHBUTTON "Cancel",IDCANCEL,44,74,50,14
CTEXT "Drag crosshair to select window",IDC_TEXT,7,7,127,8
GROUPBOX "",IDC_GROUP,51,25,37,37,NOT WS_VISIBLE
END
/////////////////////////////////////////////////////////////////////////////
//
// DESIGNINFO
//
#ifdef APSTUDIO_INVOKED
GUIDELINES DESIGNINFO DISCARDABLE
BEGIN
IDD_SELECT, DIALOG
BEGIN
LEFTMARGIN, 7
RIGHTMARGIN, 134
TOPMARGIN, 7
BOTTOMMARGIN, 88
END
END
#endif // APSTUDIO_INVOKED
#endif // English (U.S.) resources
/////////////////////////////////////////////////////////////////////////////
#ifndef APSTUDIO_INVOKED
/////////////////////////////////////////////////////////////////////////////
//
// Generated from the TEXTINCLUDE 3 resource.
//
/////////////////////////////////////////////////////////////////////////////
#endif // not APSTUDIO_INVOKED
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment