summaryrefslogtreecommitdiff
path: root/bin/count-todo-dialogs
blob: 09f85c90dbd4fb3f94c7c65e4cd607137b8253fb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
#!/bin/sh
#
# This file is part of the LibreOffice project.
#
# This Source Code Form is subject to the terms of the Mozilla Public
# License, v. 2.0. If a copy of the MPL was not distributed with this
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
# Run this from the source root dir to count:
# a) the number of .ui files
# b) the estimated amount of additional .ui files required

converted=`ls */uiconfig/ui/*.ui */uiconfig/*/ui/*.ui|wc -l`
echo $converted .ui files currently exist

dialogs=0
tabpages=0
errorboxes=0
infoboxes=0
queryboxes=0
warningboxes=0
msgboxes=0
floatingwindows=0
dockingwindows=`git grep -h DockingWindow -- *.src|grep -v HelpID|grep -v hrc|cut -d' ' -f2- |sort|uniq|wc -l`

echo There are $dialogs unconverted dialogs
echo There are $tabpages unconverted tabpages
echo There are $errorboxes unconverted errorboxes
echo There are $infoboxes unconverted infoboxes
echo There are $queryboxes unconverted queryboxes
echo There are $warningboxes unconverted warningboxes
echo There are $msgboxes unconverted msgboxes
echo There are $floatingwindows unconverted floatingwindows
echo There are $dockingwindows unconverted dockingwindows

num=$dockingwindows
echo An estimated additional $num .ui are required

percent=$(($converted * 100 / ($num + $converted)))
echo We are $percent% of the way through the .ui conversion.

r> 2013-03-14remove legacy build.pl prj/build.lst files.Michael Meeks 2013-03-06fdo#60724 change spelling error REMOVEABLE -> REMOVABLEKenneth Beck 2013-02-28remove all d.lstMichael Stahl 2013-02-06remove obsolete no_localization filesAndras Timar 2013-01-26gbuild: do not copy boost headers aroundMichael Stahl 2013-01-21Replaced O[U]String::valueOf( static_cast<> ) with O[U]String::number()Jean-Noël Rouvignac 2012-12-20Partially reverted 786f15e605867668d88ab23d66cabb18f18bdcf9Cédric Bosdonnat 2012-12-20Removed File > Templates > Address Book Source... menu entry and its codeCédric Bosdonnat 2012-12-11rtl:: prefix removal from configmgrRadu Ioan 2012-11-30c++ API: use css alias in generated headers, adds global css declThorsten Behrens 2012-11-29Support optional dependencies among .xcd filesStephan Bergmann 2012-11-06fdo#55138: Do not double-expand bootstrap variablesStephan Bergmann 2012-10-31Some more configuration::theDefaultProvider simplificationsStephan Bergmann 2012-09-28gbuild: invert handling of standard system libraries:Michael Stahl 2012-09-28gbuild: replace direct gb_STDLIBS use with ...Michael Stahl 2012-09-28gbuild: split uwinapi out of gb_STDLIBSMichael Stahl 2012-09-18deprecate oustringostreaminserter.hxxNorbert Thiebaud 2012-09-17Require XComponentContext.getServiceManager to throw instead of returning nullStephan Bergmann 2012-09-17migrate some of the biggest consumer of osl_*InterlockedCount to osl_atomicNorbert Thiebaud 2012-08-17gbuild: register all jarsMichael Stahl 2012-07-25Make comphelper/configuration.hxx work for localized propertiesStephan Bergmann 2012-07-16the unknwon typo is surprisingly popularLuboš Luňák 2012-07-16Unused includeStephan Bergmann 2012-07-02targetted improvement of UNO API includes / usageMichael Meeks 2012-06-26re-base on ALv2 code.Michael Meeks 2012-06-22.xcd files don't need executable bitsMichael Stahl 2012-06-20removed unused forward declarations of classTakeshi Abe 2012-06-15added zoom submenu to ViewTim Hardeck 2012-06-12re-base on ALv2 code.Michael Meeks 2012-06-01nuke unused namespaceTakeshi Abe 2012-04-29make gbuild the default assumption of build.plBjoern Michaelsen 2012-04-08gbuild: "use" vs. "add":Michael Stahl 2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi 2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi 2012-04-06Replaced equalsAsciiL(RTL_CONSTASCII_STRINGPARAM(...)) with == operatorSzabolcs Dezsi