Changeset 359
- Timestamp:
- 08/26/10 06:32:00 (18 months ago)
- Location:
- trunk
- Files:
-
- 12 edited
-
colorer.h (modified) (1 diff)
-
form_main.cpp (modified) (3 diffs)
-
form_main.h (modified) (1 diff)
-
form_main_ui.cpp (modified) (2 diffs)
-
form_main_ui.h (modified) (2 diffs)
-
global.cpp (modified) (1 diff)
-
global.h (modified) (2 diffs)
-
message_tree.cpp (modified) (6 diffs)
-
message_tree.h (modified) (2 diffs)
-
spell_edit.cpp (modified) (3 diffs)
-
spell_edit.h (modified) (2 diffs)
-
version.h (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/colorer.h
r331 r359 55 55 #define COLORER_DEFAULT_NAME COLORER_HIGHLIGHT_JS_NAME 56 56 57 #endif 57 #endif // _avalon_colorer_h_ -
trunk/form_main.cpp
r358 r359 106 106 connect(&m_timer, SIGNAL(timeout()), this, SLOT(timer_on_timer())); 107 107 108 int interval = AGlobal::getInstance()->SynchronizeInterval * 1000 * 60;108 int interval = synchronizeInterval(); 109 109 110 110 if (interval > 0) … … 750 750 751 751 // таймер синхронизации 752 int interval = AGlobal::getInstance()->SynchronizeInterval * 1000 * 60; 752 QSettings settings; 753 754 int interval = synchronizeInterval(); 753 755 754 756 if (interval > 0) … … 1024 1026 } 1025 1027 //---------------------------------------------------------------------------------------------- 1028 1029 int AFormMain::synchronizeInterval () 1030 { 1031 return QSettings().value("ui/synchronize_interval", "0").toUInt() * 1000 * 60; 1032 } 1033 //---------------------------------------------------------------------------------------------- -
trunk/form_main.h
r358 r359 40 40 */ 41 41 void setDefaultStatus (); 42 43 /*! 44 * \brief Получение интервала периодической синхронизации 45 * \return число ms между синхронизациями 46 */ 47 int synchronizeInterval (); 42 48 43 49 private slots: -
trunk/form_main_ui.cpp
r337 r359 101 101 m_menu_service_settings->setMenuRole(QAction::PreferencesRole); 102 102 103 #ifdef AVALON_USE_ZLIB103 #ifdef AVALON_USE_ZLIB 104 104 m_menu_service->addSeparator(); 105 105 … … 112 112 m_menu_service_storage_uncompress = m_menu_service_storage->addAction(QString::fromUtf8("Распаковать тела сообщений")); 113 113 m_menu_service_storage_uncompress->setIcon(QIcon(":/icons/compress16.png")); 114 #endif114 #endif 115 115 116 116 // меню "?" -
trunk/form_main_ui.h
r246 r359 71 71 QAction* m_menu_service_subscribe; /*!< \brief Сервис / Подписка на форумы */ 72 72 QAction* m_menu_service_settings; /*!< \brief Сервис / Настройка */ 73 #ifdef AVALON_USE_ZLIB73 #ifdef AVALON_USE_ZLIB 74 74 QMenu* m_menu_service_storage; /*!< \brief Сервис / Хранилище */ 75 75 QAction* m_menu_service_storage_compress; /*!< \brief Сервис / Хранилище / Упаковать */ 76 76 QAction* m_menu_service_storage_uncompress; /*!< \brief Сервис / Хранилище / Распаковать */ 77 #endif77 #endif 78 78 QMenu* m_menu_q; /*!< \brief ? / ... */ 79 79 QAction* m_menu_q_yandex_url; /*!< \brief ? / URL Яндекс */ … … 107 107 }; 108 108 109 #endif 109 #endif // _avalon_form_main_ui_h_ -
trunk/global.cpp
r358 r359 46 46 QSettings settings; 47 47 48 // простые настройки 49 MarkAsReadTimer = settings.value("ui/mark_as_read_timer", "1500").toUInt(); 50 MaxTopicToShow = settings.value("ui/max_topic_to_show", "0" ).toUInt(); 51 SynchronizeInterval = settings.value("ui/synchronize_interval", "0" ).toUInt(); 52 53 #ifdef AVALON_USE_ZLIB 54 Compression = settings.value("storage/compression", false).toInt(); 55 #endif 56 57 #ifdef AVALON_USE_ASPELL 58 SpellChecker = settings.value("ui/spellchecker", true).toInt(); 59 #endif 48 #ifdef AVALON_USE_ZLIB 49 Compression = settings.value("storage/compression", false).toInt(); 50 #endif 60 51 61 52 // установка колорера для подсветки синтаксиса 62 QString colorer = settings.value("ui/colorer", COLORER_ GNU_SOURCE_HIGHLIGHT_NAME).toString();53 QString colorer = settings.value("ui/colorer", COLORER_DEFAULT_NAME).toString(); 63 54 64 55 if (colorer == COLORER_ENSCRIPT_NAME) -
trunk/global.h
r304 r359 38 38 void reload (); 39 39 40 int MarkAsReadTimer; /*!< \brief Время на пометку сообщения как прочитанного (ms) */ 41 int MaxTopicToShow; /*!< \brief Максимальное количество топиков для отображения */ 42 int SynchronizeInterval; /*!< \brief Интервал синхронизации (минут) */ 43 AColorer Colorer; /*!< \brief Движок подсветки синтаксиса */ 40 // 41 // Общие переменные 42 // 44 43 45 #ifdef AVALON_USE_ZLIB 46 bool Compression; /*!< \brief Сжатие тел сообщений */ 47 #endif 48 49 #ifdef AVALON_USE_ASPELL 50 bool SpellChecker; /*!< \brief Проверка орфографии */ 51 #endif 52 53 AUserInfo Me; /*!< \brief Текущий пользователь avalon */ 44 AUserInfo Me; /*!< \brief Текущий пользователь avalon */ 45 AColorer Colorer; /*!< \brief Движок подсветки синтаксиса */ 46 #ifdef AVALON_USE_ZLIB 47 bool Compression; /*!< \brief Сжатие тел сообщений */ 48 #endif 54 49 55 50 // 56 // Константы 51 // Константы форматирования 57 52 // 58 53 … … 71 66 }; 72 67 73 #endif 68 #endif // _avalon_global_h_ -
trunk/message_tree.cpp
r348 r359 46 46 m_current_forum.RateLimit = 0; 47 47 48 m_max_topic_to_show = 0; 49 m_mark_as_read_timer = 500; 50 48 51 // 49 52 // инициализация GUI виджета 50 53 // 51 54 52 #ifndef Q_WS_WIN53 setFrameShadow(QFrame::Plain);54 #endif55 #ifndef Q_WS_WIN 56 setFrameShadow(QFrame::Plain); 57 #endif 55 58 56 59 setHorizontalScrollBarPolicy(Qt::ScrollBarAlwaysOff); … … 325 328 { 326 329 // 330 // перезагрузка настроек 331 // 332 QSettings settings; 333 334 m_max_topic_to_show = settings.value("ui/max_topic_to_show", "0").toUInt(); 335 m_mark_as_read_timer = settings.value("ui/mark_as_read_timer", "500").toUInt(); 336 337 // 327 338 // базовая очистка 328 339 // … … 396 407 QList<int> topic_list; 397 408 398 if (storage->getForumTopicList(m_current_forum.ID, AGlobal::getInstance()->MaxTopicToShow, topic_list, NULL) == false)409 if (storage->getForumTopicList(m_current_forum.ID, m_max_topic_to_show, topic_list, NULL) == false) 399 410 { 400 411 storage->showError(m_parent); … … 859 870 if (info->IsRead == false) 860 871 { 861 int interval = AGlobal::getInstance()->MarkAsReadTimer; 862 863 if (interval > 0) 864 m_timer.start(interval); 872 if (m_mark_as_read_timer > 0) 873 m_timer.start(m_mark_as_read_timer); 865 874 else 866 875 m_timer.stop(); … … 1898 1907 QList<int> list; 1899 1908 1900 if (storage->getMyMessageList(AGlobal::getInstance()->Me.ID, AGlobal::getInstance()->MaxTopicToShow, list, NULL) == false)1909 if (storage->getMyMessageList(AGlobal::getInstance()->Me.ID, m_max_topic_to_show, list, NULL) == false) 1901 1910 { 1902 1911 storage->showError(m_parent); … … 1931 1940 } 1932 1941 1942 1933 1943 QList<int> list; 1934 1944 1935 if (storage->getAnswers2MeList(AGlobal::getInstance()->Me.ID, AGlobal::getInstance()->MaxTopicToShow, list, NULL) == false)1945 if (storage->getAnswers2MeList(AGlobal::getInstance()->Me.ID, m_max_topic_to_show, list, NULL) == false) 1936 1946 { 1937 1947 storage->showError(m_parent); -
trunk/message_tree.h
r272 r359 137 137 // 138 138 139 AForumInfo m_current_forum; /*!< \brief Текущий отображаемый форум */ 140 141 QList<int> m_history; /*!< \brief Список с ID просмотренных сообщений для навигации вперед/назад */ 142 int m_history_index; /*!< \brief Текущий индекс в списке истории */ 139 AForumInfo m_current_forum; /*!< \brief Текущий отображаемый форум */ 140 141 QList<int> m_history; /*!< \brief Список с ID просмотренных сообщений для навигации вперед/назад */ 142 int m_history_index; /*!< \brief Текущий индекс в списке истории */ 143 144 int m_max_topic_to_show; /*!< \brief Максимальное количество топиков для отображения */ 145 int m_mark_as_read_timer; /*!< \brief Время на пометку сообщения как прочитанного (ms) */ 143 146 144 147 /*! … … 310 313 }; 311 314 312 #endif 315 #endif // _avalon_message_tree_h_ -
trunk/spell_edit.cpp
r267 r359 5 5 // $URL$ 6 6 //---------------------------------------------------------------------------------------------- 7 #include "global.h"8 7 #include "spell_edit.h" 9 8 //---------------------------------------------------------------------------------------------- … … 15 14 m_spellchecker = NULL; 16 15 17 if ( AGlobal::getInstance()->SpellChecker== true)16 if (QSettings().value("ui/spellchecker", true).toInt() == true) 18 17 m_spellchecker = new ASpellChecker(document()); 19 18 } … … 82 81 } 83 82 //---------------------------------------------------------------------------------------------- 84 #endif // AVALON_USE_ASPELL83 #endif // AVALON_USE_ASPELL 85 84 //---------------------------------------------------------------------------------------------- -
trunk/spell_edit.h
r267 r359 64 64 }; 65 65 66 #else // AVALON_USE_ASPELL66 #else // AVALON_USE_ASPELL 67 67 68 68 /*! … … 71 71 typedef QTextEdit ASpellTextEdit; 72 72 73 #endif // AVALON_USE_ASPELL73 #endif // AVALON_USE_ASPELL 74 74 75 #endif 75 #endif // _avalon_spell_edit_h_ -
trunk/version.h
r357 r359 20 20 * \brief Дата билда (заменяется автоматически при каждом билде в version.h, что и приводит к смене номера ревизии) 21 21 */ 22 #define AVALON_DATE " Срд Авг 25 23:50:56MSD 2010"22 #define AVALON_DATE "Чтв Авг 26 06:28:22 MSD 2010" 23 23 24 24 #endif
Note: See TracChangeset
for help on using the changeset viewer.
