| 140 | |
| 141 | |
| 142 | CsvWindow::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 |
nothing calls this directly
no outgoing calls
no test coverage detected