Commit Graph

2841 Commits

Author SHA1 Message Date
David Capello
057532e7d7 Cache RSS news file 2015-03-04 19:24:37 -03:00
David Capello
200e612670 Simplify Workspace implementation removing the possibility to split views/tabs
It's confusing to see two tabs when we split the view. In the future we
should be able to move tabs to create a split view.
2015-03-04 17:23:40 -03:00
David Capello
b7f69186bb Add Widget::removeAllChildren() member function 2015-03-04 16:38:01 -03:00
David Capello
952e98dcae Fix tab selection after closing a reordered tab 2015-03-03 09:33:59 -03:00
David Capello
4690844d60 Fix crash closing the program when there is no tab (introduced in 1087cb84cf) 2015-03-03 09:26:24 -03:00
David Capello
a2e0be19d8 Tabs: Fix drawing of m_removedTab 2015-03-03 09:25:18 -03:00
David Capello
122bf1dd1c Clip tab icon on Tabs::drawTab() 2015-03-03 09:11:37 -03:00
David Capello
1087cb84cf Don't shrink Tabs area until the last tab animation ends 2015-03-03 09:07:49 -03:00
David Capello
4c8ef458c9 Load news in background thread 2015-03-03 08:56:44 -03:00
David Capello
37781c99ea Show blog posts in NewsListBox 2015-03-02 19:54:24 -03:00
David Capello
8f8291a39b Hide colorbar and toolbar when we're in Home tab 2015-03-02 14:43:44 -03:00
David Capello
6862e02805 Add list of recent files and folders in Home tab
* Add LinkLabel::onClick()
* Use Widget instead of ListItem in ListBox API
* Add TextRule::padding() and use it to calculate the preferred size
  for a skin::Style's rules
2015-03-02 11:18:33 -03:00
David Capello
6c826a6281 Support floating point number of days to wait for next "check updates" 2015-02-28 11:43:11 -03:00
David Capello
bf27db12e6 Make the "new update" link more noticeable (using a special style) 2015-02-27 20:45:15 -03:00
David Capello
35623cae88 Move "new update" notification from menu bar to HomeView 2015-02-26 12:28:26 -03:00
David Capello
ccb86ff08b Fix execution of commands in HomeView
Without this change, OpenFile command will open the latest opened file
when we click "Open File..." link again.
2015-02-26 11:08:23 -03:00
David Capello
59d10f590e Fix bug in WidgetLoader::fillWidgetWithXmlElementAttributes() 2015-02-26 11:05:52 -03:00
David Capello
f3aa6bc2ae Fix the DevConsole view style 2015-02-26 10:01:53 -03:00
David Capello
660b23e471 Remove "notification area" from StatusBar (the "donate" link) 2015-02-26 10:01:04 -03:00
David Capello
8eb8122bc0 Add widgets to HomeView (icon, new file, open file, and list boxes)
* Add widgets/home_view.xml
* Add possibility to specify style="..." and border="..." in XML widgets
* Add SkinStyleProperty
* Remove Label::get/setTextColor() (replaced with styles)
* Add <image> widget in WidgetLoader
* Paint labels, link labels, and views with styles
2015-02-26 09:53:19 -03:00
David Capello
c396f271c8 Fix problem changing tabs with the mouse wheel 2015-02-25 09:00:19 -03:00
David Capello
7839a6761a Minor fix in Tabs::calculateHot() detecting the area to close a tab 2015-02-24 20:21:29 -03:00
David Capello
8c6f55cc41 Add support to reorder tabs (close #118) 2015-02-24 20:10:22 -03:00
David Capello
2d64c55661 Minor fixes in click on tabs behavior 2015-02-23 10:52:04 -03:00
David Capello
ff66ea025c Add support to close Home tab with middle mouse button or right-click popup menu 2015-02-22 21:18:53 -03:00
David Capello
926e714f74 Don't show close buttons for small tabs
Only the selected tab has a visible close button regardless of its size.
2015-02-22 13:06:22 -03:00
David Capello
8fa97cba32 Animate all tabs when a tab is added or removed
As now there is no scroll in Tabs widget, and the width of all tabs might
vary when a new one is added/removed (e.g. when there is not enough space),
we've to animated them all.

Removed ANI_SMOOTH_SCROLL_TICKS animation, now all animations are
controlled in the same way using a Tabs::Tab::oldX/oldWidth/x/width fields.
2015-02-21 20:06:35 -03:00
David Capello
b52bcd8c95 Fix close icon style after clicking tabs 2015-02-20 08:53:52 -03:00
David Capello
6064debe13 Add support to close any kind of WorkspaceView (HomeView and DevConsoleView)
* Add WorkspaceView::onCloseView() member function
* Now DevConsoleView is inside MainWindow (just like HomeView)
2015-02-19 22:14:06 -03:00
David Capello
e850c8dbb0 Add an icon to "Home" tab 2015-02-19 21:44:22 -03:00
David Capello
c704d20534 Rename StartView -> HomeView 2015-02-19 20:28:47 -03:00
David Capello
f4e01345c6 Add close/modified icon to tabs 2015-02-19 13:13:25 -03:00
David Capello
13611eb23e White text in Start tab 2015-02-17 16:28:53 -03:00
David Capello
de3e46d879 Draw Tabs widget using styles.
* Add background-repeat style rule to specify how to repeat the
  background image
* Remove PART_TAB_* skin parts from skin_parts.h
2015-02-17 16:03:00 -03:00
David Capello
11386543c8 Add <dimensions> to skin.xml 2015-02-17 12:22:46 -03:00
David Capello
ebdc2700c1 Replace app::skin::get_style() with SkinTheme::Styles 2015-02-17 11:43:25 -03:00
David Capello
1805d56733 Generate list of skin styles in SkinFile::Styles subclass 2015-02-17 11:10:43 -03:00
David Capello
881667f01b Replaced app::skin::ThemeColor with app::gen::SkinTheme::Colors
Generate app::gen::SkinFile class from skin.xml to automate creation
of ID references.
2015-02-15 15:29:16 -03:00
David Capello
c473c99525 Simplify Tabs::m_list iterations 2015-02-15 11:45:23 -03:00
David Capello
5a5c0424e7 Show a StartView when the program starts 2015-02-15 11:42:35 -03:00
David Capello
1a74326536 Add possibility to reset grid document preferences to global preferences 2015-02-15 09:59:11 -03:00
David Capello
69ac11eea2 Remove IDocumentSettings and DocumentSettingsObserver
Document user options are completely replaced with DocumentPreferences.
2015-02-15 09:48:38 -03:00
David Capello
869b6606b2 New documents get the global grid settings 2015-02-14 23:41:10 -03:00
David Capello
b12a2b5193 Add scope combo for Grid options in Preferences dialog
With this we make it clear what settings we're modifying: the global ones
or the active document ones.
2015-02-14 23:31:11 -03:00
David Capello
8387c7ba3e Fix XML error in pref.xml 2015-02-14 23:20:59 -03:00
David Capello
2e90eb8d4c Load document and tool preferences (fix #596) 2015-02-14 23:20:45 -03:00
David Capello
14cd8576f4 Move "center on zoom" option from General to Editor tab 2015-02-14 22:45:45 -03:00
David Capello
8f61302f7d Keep last selected section in Preferences dialog 2015-02-14 22:43:21 -03:00
David Capello
f3974002d5 Fix int <-> double <-> float casts
It looks like allegro includes several implicit conversions between
float and double.
2015-02-14 22:37:56 -03:00
David Capello
35be72833b Don't redefine ASSERT/TRACE in allegro/debug.h 2015-02-14 22:09:07 -03:00