MCPcopy Create free account
hub / github.com/baumgarr/nixnote2 / resizeColumns

Method resizeColumns

gui/ntableview.cpp:1256–1305  ·  view source on GitHub ↗

Change the size of the columns (used after restarting)

Source from the content-addressed store, hash-verified

1254
1255// Change the size of the columns (used after restarting)
1256void NTableView::resizeColumns() {
1257 int width = global.getColumnWidth("noteTableAltitudePosition");
1258 if (width>0) setColumnWidth(NOTE_TABLE_ALTITUDE_POSITION, width);
1259 width = global.getColumnWidth("noteTableAuthorPosition");
1260 if (width>0) setColumnWidth(NOTE_TABLE_AUTHOR_POSITION, width);
1261 width = global.getColumnWidth("noteTableDateCreatedPosition");
1262 if (width>0) setColumnWidth(NOTE_TABLE_DATE_CREATED_POSITION, width);
1263 width = global.getColumnWidth("noteTableDateDeletedPosition");
1264 if (width>0) setColumnWidth(NOTE_TABLE_DATE_DELETED_POSITION, width);
1265 width = global.getColumnWidth("noteTableDateSubjectPosition");
1266 if (width>0) setColumnWidth(NOTE_TABLE_DATE_SUBJECT_POSITION, width);
1267 width = global.getColumnWidth("noteTableDateUpdatedPosition");
1268 if (width>0) setColumnWidth(NOTE_TABLE_DATE_UPDATED_POSITION, width);
1269 width = global.getColumnWidth("noteTableHasEncryptionPosition");
1270 if (width>0) setColumnWidth(NOTE_TABLE_HAS_ENCRYPTION_POSITION, width);
1271 width = global.getColumnWidth("noteTableTodoPosition");
1272 if (width>0) setColumnWidth(NOTE_TABLE_HAS_TODO_POSITION, width);
1273 width = global.getColumnWidth("noteTableIsDirtyPosition");
1274 if (width>0) setColumnWidth(NOTE_TABLE_IS_DIRTY_POSITION, width);
1275 width = global.getColumnWidth("noteTableLatitudePosition");
1276 if (width>0) setColumnWidth(NOTE_TABLE_LATITUDE_POSITION, width);
1277 width = global.getColumnWidth("noteTableLidPosition");
1278 if (width>0) setColumnWidth(NOTE_TABLE_LID_POSITION, width);
1279 width = global.getColumnWidth("noteTableLongitudePosition");
1280 if (width>0) setColumnWidth(NOTE_TABLE_LONGITUDE_POSITION, width);
1281 width = global.getColumnWidth("noteTableNotebookLidPosition");
1282 if (width>0) setColumnWidth(NOTE_TABLE_NOTEBOOK_LID_POSITION, width);
1283 width = global.getColumnWidth("noteTableNotebookPosition");
1284 if (width>0) setColumnWidth(NOTE_TABLE_NOTEBOOK_POSITION, width);
1285 width = global.getColumnWidth("noteTableSizePosition");
1286 if (width>0) setColumnWidth(NOTE_TABLE_SIZE_POSITION, width);
1287 width = global.getColumnWidth("noteTableSourceApplicationPosition");
1288 if (width>0) setColumnWidth(NOTE_TABLE_SOURCE_APPLICATION_POSITION, width);
1289 width = global.getColumnWidth("noteTableSourcePosition");
1290 if (width>0) setColumnWidth(NOTE_TABLE_SOURCE_POSITION, width);
1291 width = global.getColumnWidth("noteTableSourceUrlPosition");
1292 if (width>0) setColumnWidth(NOTE_TABLE_SOURCE_URL_POSITION, width);
1293 width = global.getColumnWidth("noteTableTagsPosition");
1294 if (width>0) setColumnWidth(NOTE_TABLE_TAGS_POSITION, width);
1295 width = global.getColumnWidth("noteTableTitlePosition");
1296 if (width>0) setColumnWidth(NOTE_TABLE_TITLE_POSITION, width);
1297 width = global.getColumnWidth("noteTableThumbnailPosition");
1298 if (width>0) setColumnWidth(NOTE_TABLE_THUMBNAIL_POSITION, width);
1299 width = global.getColumnWidth("noteTableReminderTimePosition");
1300 if (width>0) setColumnWidth(NOTE_TABLE_REMINDER_TIME_POSITION, width);
1301 width = global.getColumnWidth("noteTableReminderTimeDonePosition");
1302 if (width>0) setColumnWidth(NOTE_TABLE_REMINDER_TIME_DONE_POSITION, width);
1303 width = global.getColumnWidth("noteTableReminderOrderPosition");
1304 if (width>0) setColumnWidth(NOTE_TABLE_REMINDER_ORDER_POSITION, width);
1305}
1306
1307
1308

Callers 2

viewNoteListWideMethod · 0.80
viewNoteListNarrowMethod · 0.80

Calls 1

getColumnWidthMethod · 0.80

Tested by

no test coverage detected