namespace gallery { namespace { namespace impl {
- constexpr auto UNIQUE_PATH_RESERVE = 10;
-
int MEDIA_DB_CONNECTION_COUNTER = 0;
}}}
if (!m_win->isVisible()) {
DLOG("Show the window.");
+ m_win->resizeToScreen();
show(*m_win);
}
Builder &setName(std::string value);
Builder &setTitle(std::string value);
- Builder &setSetIndicatorVisible(bool value);
+ Builder &setIndicatorVisible(bool value);
Builder &setRotations(std::vector<int> value);
Builder &setIsOwner(bool value);
bool isRotationsSupported() const;
void setRotations(const std::vector<int> &value);
+ void resizeToScreen();
void lower();
private:
return *this;
}
- inline Window::Builder &Window::Builder::setSetIndicatorVisible(
+ inline Window::Builder &Window::Builder::setIndicatorVisible(
const bool value)
{
m_isIndicatorVisible = value;
return result;
}
+
+ // Window //
+
+ void Window::resizeToScreen()
+ {
+ int w = 0;
+ int h = 0;
+ getScreenSize(&w, &h);
+ if ((w > 0) && (h > 0)) {
+ setGeometry(0, 0, w, h);
+ m_conform.setGeometry(0, 0, w, h);
+ }
+ }
}