- Add a verbose flag and put debugging output being it ("-v" || " --verbose")
- In verbose mode draw a thumbnail of the source image in the bottom left of the window - Add support for long options in the command line parsing - Add a "stretch" argument that will stretch the aspect axis to fit the window when set. For example, in landscape mode the drawn picture will be as wide as the window, cropping the top and bottom
This commit is contained in:
@@ -14,12 +14,14 @@ public:
|
||||
ImageSelector(std::unique_ptr<PathTraverser>& pathTraverser, char aspect);
|
||||
virtual ~ImageSelector();
|
||||
virtual std::string getNextImage() = 0;
|
||||
void setDebugMode(bool debugMode) { _debugMode = debugMode;}
|
||||
|
||||
protected:
|
||||
int getImageRotation(const std::string &fileName);
|
||||
bool imageValidForAspect(const std::string &fileName);
|
||||
std::unique_ptr<PathTraverser>& pathTraverser;
|
||||
char _aspect;
|
||||
bool _debugMode = false;
|
||||
};
|
||||
|
||||
class RandomImageSelector : public ImageSelector
|
||||
|
||||
Reference in New Issue
Block a user