mirror of
				https://github.com/YACReader/yacreader
				synced 2025-10-30 15:54:27 -04:00 
			
		
		
		
	add drag and drop onto app icon (dock etc.) support for MacOS platform.
This commit is contained in:
		
							
								
								
									
										22
									
								
								common/pdf_comic.h
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										22
									
								
								common/pdf_comic.h
									
									
									
									
									
										Normal file
									
								
							| @ -0,0 +1,22 @@ | ||||
| #ifndef PDF_COMIC_H | ||||
| #define PDF_COMIC_H | ||||
|  | ||||
| #include <QObject> | ||||
| #include <QImage> | ||||
|  | ||||
| class MacOSXPDFComic | ||||
| { | ||||
| public: | ||||
|     MacOSXPDFComic(); | ||||
|     ~MacOSXPDFComic(); | ||||
|     bool openComic(const QString & path); | ||||
|     void closeComic(); | ||||
|     unsigned int numPages(); | ||||
|     QImage getPage(const int page); | ||||
|     void releaseLastPageData(); | ||||
| private: | ||||
|     void * document; | ||||
|     void * lastPageData; | ||||
| }; | ||||
|  | ||||
| #endif // PDF_COMIC_H | ||||
		Reference in New Issue
	
	Block a user