MCPcopy Create free account
hub / github.com/DreamSourceLab/DSView / writeSettings

Method writeSettings

DSView/pv/mainframe.cpp:629–646  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

627}
628
629void MainFrame::writeSettings()
630{
631 AppConfig &app = AppConfig::Instance();
632 app.frameOptions.isMax = IsMaxsized();
633 app.frameOptions.displayName = windowHandle()->screen()->name();
634
635 if (IsNormalsized() && isVisible()){
636 saveNormalRegion();
637 }
638 app.SaveFrame();
639
640 int x = app.frameOptions.x;
641 int y = app.frameOptions.y;
642 int w = app.frameOptions.right - app.frameOptions.left;
643 int h = app.frameOptions.bottom - app.frameOptions.top;
644
645 dsv_info("Save form, x:%d, y:%d, w:%d, h:%d", x, y, w, h);
646}
647
648void MainFrame::ShowFormInit()
649{

Callers

nothing calls this directly

Calls 2

nameMethod · 0.80
SaveFrameMethod · 0.80

Tested by

no test coverage detected