MCPcopy Create free account
hub / github.com/Tablecruncher/tablecruncher / CsvWindow

Method CsvWindow

src/csvwindow.cpp:142–164  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

140
141
142CsvWindow::CsvWindow() {
143 // Set initial window size to 60%, or to 85% for smaller screens
144 double factor = 0.6;
145 if( Fl::w() < 1800 ) {
146 factor = 0.7;
147 }
148 if( Fl::w() < 1500 ) {
149 factor = 0.85;
150 }
151 width = std::ceil(Fl::w() * factor);
152 height = std::ceil(Fl::h() * factor);
153 #ifdef DEBUG
154 printf("Screen width: %d\n", Fl::w());
155 #endif
156
157
158 typeButtonString = "UTF-8\nCOMMA";
159 // macroButtonString = "Macro";
160 path = "";
161 name = "";
162 // pasteMode = SFCSV_DEFAULT_PASTE_MODE;
163
164}
165
166
167

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected