OSDN Git Service

Altered so changing title color & pinned will mark a note as unsynchronized.
authorRandy Baumgarte <randy@fbn.cx>
Sun, 28 Aug 2011 12:58:54 +0000 (08:58 -0400)
committerRandy Baumgarte <randy@fbn.cx>
Sun, 28 Aug 2011 12:58:54 +0000 (08:58 -0400)
src/cx/fbn/nevernote/NeverNote.java
src/cx/fbn/nevernote/gui/TableView.java
src/cx/fbn/nevernote/gui/TableViewHeader.java

index 7566f00..708ff36 100644 (file)
@@ -4044,6 +4044,7 @@ public class NeverNote extends QMainWindow{
        private void titleColorChanged(Integer color) {
        logger.log(logger.HIGH, "Entering NeverNote.titleColorChanged");
 
+       setNoteDirty();
        QColor backgroundColor = new QColor();
                QColor foregroundColor = new QColor(QColor.black);
                backgroundColor.setRgb(color);
@@ -4077,6 +4078,7 @@ public class NeverNote extends QMainWindow{
        @SuppressWarnings("unused")
        private void notePinned() {
                logger.log(logger.EXTREME, "Entering NeverNote.notePinned()");
+               setNoteDirty();
 
        for (int j=0; j<selectedNoteGUIDs.size(); j++) {
                NoteMetadata meta = listManager.getNoteMetadata().get(selectedNoteGUIDs.get(j));
index 3255221..ac4f571 100644 (file)
@@ -114,7 +114,7 @@ public class TableView extends QTableView {
         runner.getNoteTableModel().setHeaderData(Global.noteTableAuthorPosition, Qt.Orientation.Horizontal, tr("Author"), Qt.ItemDataRole.DisplayRole);\r
         runner.getNoteTableModel().setHeaderData(Global.noteTableSourceUrlPosition, Qt.Orientation.Horizontal, tr("Source Url"), Qt.ItemDataRole.DisplayRole);\r
         runner.getNoteTableModel().setHeaderData(Global.noteTableSubjectDatePosition, Qt.Orientation.Horizontal, tr("Subject Date"), Qt.ItemDataRole.DisplayRole);\r
-        runner.getNoteTableModel().setHeaderData(Global.noteTableSynchronizedPosition, Qt.Orientation.Horizontal, tr("Synchronized"), Qt.ItemDataRole.DisplayRole);\r
+        runner.getNoteTableModel().setHeaderData(Global.noteTableSynchronizedPosition, Qt.Orientation.Horizontal, tr("Sync"), Qt.ItemDataRole.DisplayRole);\r
         runner.getNoteTableModel().setHeaderData(Global.noteTablePinnedPosition, Qt.Orientation.Horizontal, tr("Pinned"), Qt.ItemDataRole.DisplayRole);\r
         runner.getNoteTableModel().setHeaderData(Global.noteTableThumbnailPosition, Qt.Orientation.Horizontal, tr("Thumbnail"), Qt.ItemDataRole.DisplayRole);\r
         header.sortIndicatorChanged.connect(this, "resetViewport()");\r
index dc24a01..3e34673 100644 (file)
@@ -66,7 +66,7 @@ public class TableViewHeader extends QHeaderView {
                contextMenu.addAction(notebookAction);\r
                \r
                synchronizedAction = new QAction(this);\r
-               synchronizedAction.setText(tr("Synchronized"));\r
+               synchronizedAction.setText(tr("Sync"));\r
                synchronizedAction.setCheckable(true);\r
                contextMenu.addAction(synchronizedAction);\r
                \r